|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object opennlp.tools.parser.Constituent
public class Constituent
Class used to hold constituents when reading parses.
Constructor Summary | |
---|---|
Constituent(String label,
Span span)
|
Method Summary | |
---|---|
String |
getLabel()
Returns the label of the constituent. |
Span |
getSpan()
Returns the span of the constituent. |
void |
setLabel(String label)
Assigns the label to the constituent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Constituent(String label, Span span)
Method Detail |
---|
public String getLabel()
public void setLabel(String label)
label
- The label to set.public Span getSpan()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |