public static class CoreAnnotations.EndIndexAnnotation
This indexes the end of a span of words, e.g., a constituent in a
tree. See Tree.indexSpans(int). This annotation
counts tokens. It standardly indexes from 1 (like IndexAnnotation).
The end index is not a fencepost: its value is equal to the
IndexAnnotation of the last word in the span.
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.