|
|||||||||
| 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
public class SimpleConstituent
A SimpleConstituent object defines a generic edge in a graph.
The SimpleConstituent records only the endpoints of the
Constituent, as two integers.
It doesn't label the edges.
(It doesn't implement equals() since this actually decreases
performance on a non-final class (requires dynamic resolution of which
to call).)
| Constructor Summary | |
|---|---|
SimpleConstituent()
Create an empty SimpleConstituent object. |
|
SimpleConstituent(int start,
int end)
Create a SimpleConstituent object with given values. |
|
| Method Summary | |
|---|---|
ConstituentFactory |
constituentFactory()
Return a factory for this kind of constituent. |
int |
end()
access end node. |
static ConstituentFactory |
factory()
Return a factory for this kind of constituent. |
LabelFactory |
labelFactory()
Return a factory for this kind of label. |
void |
setEnd(int end)
set end node. |
void |
setStart(int start)
set start node. |
int |
start()
access start node. |
| Methods inherited from class edu.stanford.nlp.trees.Constituent |
|---|
contains, crosses, crosses, equals, hashCode, label, labels, score, setFromString, setLabel, 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 SimpleConstituent()
SimpleConstituent object.
public SimpleConstituent(int start,
int end)
SimpleConstituent object with given values.
start - start node of edgeend - end node of edge| Method Detail |
|---|
public int start()
start in class Constituentpublic void setStart(int start)
setStart in class Constituentpublic int end()
end in class Constituentpublic void setEnd(int end)
setEnd in class Constituentpublic LabelFactory labelFactory()
public ConstituentFactory constituentFactory()
public static ConstituentFactory factory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||