GATE
Version 3.1-2270

gate.util
Interface AnnotationDiffer.Pairing

All Known Implementing Classes:
AnnotationDiffer.PairingImpl
Enclosing class:
AnnotationDiffer

public static interface AnnotationDiffer.Pairing

Interface representing a pairing between a key annotation and a response one.


Method Summary
 Annotation getKey()
          Gets the key annotation of the pairing.
 Annotation getResponse()
          Gets the response annotation of the pairing.
 int getType()
          Gets the type of the pairing, one of AnnotationDiffer.CORRECT_TYPE, AnnotationDiffer.PARTIALLY_CORRECT_TYPE, AnnotationDiffer.SPURIOUS_TYPE or AnnotationDiffer.MISSING_TYPE,
 

Method Detail

getKey

Annotation getKey()
Gets the key annotation of the pairing. Can be null (for spurious matches).

Returns:
an Annotation object.

getResponse

Annotation getResponse()
Gets the response annotation of the pairing. Can be null (for missing matches).

Returns:
an Annotation object.

getType

int getType()
Gets the type of the pairing, one of AnnotationDiffer.CORRECT_TYPE, AnnotationDiffer.PARTIALLY_CORRECT_TYPE, AnnotationDiffer.SPURIOUS_TYPE or AnnotationDiffer.MISSING_TYPE,

Returns:
an int value.

GATE
Version 3.1-2270