The CoreMap key for getting the tokens (can be words, phrases or anything that are of type CoreMap) contained by an annotation.
This key should be set for any annotation that contains tokens (words, phrases etc). It can be
done without much memory overhead using List.subList.

Constructor Detail

GenericTokensAnnotation

Method Detail

getType

Returns the type associated with this annotation. This method must
return the same class type as its value type parameter. It feels like
one should be able to get away without this method, but because Java
erases the generic type signature, that info disappears at runtime.