AlvisNLP

corpus processing engine

AnnotationComparator

Synopsis

Converts into an annotation comparison function.

String conversion

Accepted values:

By prepending reverse- , the comparison is reversed.

A composite comparator may be specified by separating multiple values with commas (“,”). In this case the first comparator is used, if annotations are equal, then the second is used, etc. The order comparator is thus equivalent to start,reverse-end .

XML conversion

<param value="COMPARATOR"/>

or

<param comparator="COMPARATOR"/>

or

<param>COMPARATOR</param>

COMPARATOR is converted into an annotation comparator as specified by the string conversion.