|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<Tree>
edu.stanford.nlp.trees.Tree
edu.stanford.nlp.trees.LabeledScoredTreeLeaf
edu.stanford.nlp.movetrees.EmptyTreeLeaf<EmptyType>
EmptyType
- public class EmptyTreeLeaf<EmptyType>
Field Summary |
---|
Fields inherited from class edu.stanford.nlp.trees.Tree |
---|
DISPLAY_SCORES, EMPTY_TREE_ARRAY |
Constructor Summary | |
---|---|
EmptyTreeLeaf(Label label,
EmptyType type)
Create a leaf parse tree with given word. |
|
EmptyTreeLeaf(Label label,
EmptyType type,
Tree t)
Create a leaf parse tree with given word. |
Method Summary | ||
---|---|---|
EmptyType |
emptyType()
|
|
List<LabeledWord> |
labeledYield(List<LabeledWord> y)
A EmptyTreeLeaf is invisible in the tagged yield |
|
void |
setEmptyType(EmptyType o)
|
|
void |
setTraceTo(Tree t)
|
|
String |
toString()
prints the trace, plus the label and the yield of the pointed-to constituent |
|
Tree |
traceTo()
|
|
TreeFactory |
treeFactory()
major yuk here. |
|
|
yield(List<T> y)
A EmptyTreeLeaf is invisible in the yield |
Methods inherited from class edu.stanford.nlp.trees.LabeledScoredTreeLeaf |
---|
addChild, addChild, children, factory, factory, insertDtr, isLeaf, label, score, setChild, setChildren, setLabel, setScore, toStringBuilder |
Methods inherited from class java.util.AbstractCollection |
---|
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmptyTreeLeaf(Label label, EmptyType type, Tree t)
label
- the Label
representing the word for
this new tree leaf.t
- the antecedent returned by traceTo()
public EmptyTreeLeaf(Label label, EmptyType type)
label
- the Label
representing the word for
this new tree leaf.Method Detail |
---|
public EmptyType emptyType()
public void setEmptyType(EmptyType o)
public Tree traceTo()
public void setTraceTo(Tree t)
public <T> List<T> yield(List<T> y)
EmptyTreeLeaf
is invisible in the yield
yield
in class Tree
y
- The list in which the yield of the tree will be placed.
Normally, this will be empty when the routine is called, but
if not, the new yield is added to the end of the list.
List
of the data in the tree's leaves.public List<LabeledWord> labeledYield(List<LabeledWord> y)
EmptyTreeLeaf
is invisible in the tagged yield
labeledYield
in class Tree
public String toString()
toString
in interface Label
toString
in class LabeledScoredTreeLeaf
public TreeFactory treeFactory()
treeFactory
in class LabeledScoredTreeLeaf
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |