|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.trees.Constituent
edu.stanford.nlp.trees.SimpleConstituent
edu.stanford.nlp.trees.LabeledConstituent
edu.stanford.nlp.trees.LabeledScoredConstituent
public class LabeledScoredConstituent
A LabeledScoredConstituent object defines an edge in a graph
with a label and a score.
| Constructor Summary | |
|---|---|
LabeledScoredConstituent()
Create an empty LabeledScoredConstituent object. |
|
LabeledScoredConstituent(int start,
int end)
Create a LabeledScoredConstituent object with given
values. |
|
LabeledScoredConstituent(int start,
int end,
Label label,
double score)
Create a LabeledScoredConstituent 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. |
LabelFactory |
labelFactory()
Return a factory for this kind of label. |
double |
score()
Returns the score associated with the current node, or Nan if there is no score |
void |
setScore(double score)
Sets the score associated with the current node, if there is one |
| Methods inherited from class edu.stanford.nlp.trees.LabeledConstituent |
|---|
label, setFromString, setLabel |
| Methods inherited from class edu.stanford.nlp.trees.SimpleConstituent |
|---|
end, setEnd, setStart, start |
| Methods inherited from class edu.stanford.nlp.trees.Constituent |
|---|
contains, crosses, crosses, equals, hashCode, labels, setLabels, setValue, size, toSentenceString, toString, value |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LabeledScoredConstituent()
LabeledScoredConstituent object.
public LabeledScoredConstituent(int start,
int end)
LabeledScoredConstituent object with given
values.
start - start node of edgeend - end node of edge
public LabeledScoredConstituent(int start,
int end,
Label label,
double score)
LabeledScoredConstituent object with given
values.
start - start node of edgeend - end node of edge| Method Detail |
|---|
public double score()
score in interface Scoredscore in class Constituentpublic void setScore(double score)
setScore in class Constituentpublic LabelFactory labelFactory()
labelFactory in interface LabellabelFactory in class LabeledConstituentpublic ConstituentFactory constituentFactory()
constituentFactory in class LabeledConstituentpublic static ConstituentFactory factory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||