Example usage for Java edu.stanford.nlp.ling CoreLabel fields, constructors, methods, implement or subclass
The text is from its open source code.
Map | genericValues |
String | TAG_SEPARATOR Tag separator to use by default |
CoreLabel() Default constructor, calls super() | |
CoreLabel(int capacity) Initializes this CoreLabel, pre-allocating arrays to hold up to capacity key,value pairs. | |
CoreLabel(CoreLabel label) Returns a new CoreLabel instance based on the contents of the given CoreLabel. | |
CoreLabel(CoreMap label) Returns a new CoreLabel instance based on the contents of the given CoreMap. | |
CoreLabel(Label label) Returns a new CoreLabel instance based on the contents of the given label. | |
CoreLabel(String[] keys, String[] values) This constructor attempts to parse the String keys into Class keys. | |
CoreLabel(Class[] keys, String[] values) This constructor attempts uses preparsed Class keys. |
int | beginPosition() |
boolean | containsKey(Class extends Key |
int | endPosition() |
boolean | equals(Object obj) Two CoreMaps are equal iff all keys and values are .equal. |
LabelFactory | factory() Return a factory for this kind of label |
VALUE | get(Class extends Key |
String | getString(Class |
int | index() |
Set | keySet() |
String | lemma() |
String | ner() |
String | originalText() |
VALUE | remove(Class extends Key |
int | sentIndex() |
VALUE | set(Class extends Key |
void | setBeginPosition(int beginPos) |
void | setDocID(String docID) |
void | setEndPosition(int endPos) |
void | setIndex(int index) |
void | setLemma(String lemma) |
void | setNER(String ner) |
void | setOriginalText(String originalText) |
void | setSentIndex(int sentIndex) |
void | setTag(String tag) |
void | setValue(String value) |
void | setWord(String word) Set the word value for the label. |
String | tag() |
String | toShorterString(String... what) |
String | toString() |
String | toString(OutputFormat format) Returns a formatted string representing this label. |
String | value() |
String | word() |