public class LabeledScoredConstituent extends LabeledConstituent
LabeledScoredConstituent object defines an edge in a graph
with a label and a score.| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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
|
label, setFromString, setLabelend, setEnd, setStart, startpublic 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 edgepublic 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()