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