|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.ling.CoreAnnotations.BeginIndexAnnotation
public static class CoreAnnotations.BeginIndexAnnotation
This indexes the beginning 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 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 Summary | |
---|---|
CoreAnnotations.BeginIndexAnnotation()
|
Method Summary | |
---|---|
java.lang.Class<java.lang.Integer> |
getType()
Returns the type associated with this annotation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoreAnnotations.BeginIndexAnnotation()
Method Detail |
---|
public java.lang.Class<java.lang.Integer> getType()
CoreAnnotation
getType
in interface CoreAnnotation<java.lang.Integer>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |