|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.stanford.nlp.trees.Constituent
|
+--edu.stanford.nlp.trees.SimpleConstituent
|
+--edu.stanford.nlp.trees.LabeledConstituent
A LabeledConstituent object represents a single bracketing in
a derivation, including start and end points and Label
information, but excluding probabilistic information. It is used
to represent the basic information that is accumulated in exploring parses.
| Constructor Summary | |
LabeledConstituent()
Create an empty LabeledConstituent object. |
|
LabeledConstituent(int start,
int end)
Create a LabeledConstituent object with given
values. |
|
LabeledConstituent(int start,
int end,
Label label)
Create a LabeledConstituent object with given values. |
|
| Method Summary | |
ConstituentFactory |
constituentFactory()
Return a factory for this kind of constituent. |
static ConstituentFactory |
factory()
Return a factory for this kind of constituent. |
Label |
label()
access label |
LabelFactory |
labelFactory()
Return a factory for this kind of label. |
void |
setLabel(Label label)
Sets the label associated with the current Constituent, if there is one. |
| Methods inherited from class edu.stanford.nlp.trees.SimpleConstituent |
end, setEnd, setStart, start |
| Methods inherited from class edu.stanford.nlp.trees.Constituent |
compareTo, equals, hashCode, labels, score, setFromString, setLabels, setScore, setValue, size, toSentenceString, toString, value |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LabeledConstituent()
LabeledConstituent object.
public LabeledConstituent(int start,
int end)
LabeledConstituent object with given
values.
start - Start node of edgeend - End node of edge
public LabeledConstituent(int start,
int end,
Label label)
LabeledConstituent object with given values.
start - Start node of edgeend - End node of edgelabel - The label of the Constituent| Method Detail |
public Label label()
Constituent
label in interface Labeledlabel in class Constituentpublic void setLabel(Label label)
Constituent
setLabel in interface LabeledsetLabel in class Constituentpublic LabelFactory labelFactory()
labelFactory in interface LabellabelFactory in class SimpleConstituentpublic ConstituentFactory constituentFactory()
constituentFactory in class SimpleConstituentpublic static ConstituentFactory factory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||