public static class CoreAnnotations.BeginIndexAnnotation extends Object implements CoreAnnotation<Integer>
Tree.indexSpans(int).
This annotation counts tokens.
It standardly indexes from 1 (like IndexAnnotation). The reasons for
this are: (i) Talking about the first word of a sentence is kind of
natural, and (ii) We use index 0 to refer to an imaginary root in
dependency output.| Constructor and Description |
|---|
BeginIndexAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
Class<Integer> |
getType()
Returns the type associated with this annotation.
|
public Class<Integer> getType()
CoreAnnotationgetType in interface CoreAnnotation<Integer>