|
|||||||||
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 edgepublic LabeledScoredConstituent(int start, int end, Label label, double score)
LabeledScoredConstituent
object with given
values.
start
- start node of edgeend
- end node of edgeMethod Detail |
---|
public double score()
score
in interface Scored
score
in class Constituent
public void setScore(double score)
setScore
in class Constituent
public LabelFactory labelFactory()
labelFactory
in interface Label
labelFactory
in class LabeledConstituent
public ConstituentFactory constituentFactory()
constituentFactory
in class LabeledConstituent
public static ConstituentFactory factory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |