|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.LeftHeadFinder
public class LeftHeadFinder
HeadFinder that always returns the leftmost daughter as head. For testing purposes.
Constructor Summary | |
---|---|
LeftHeadFinder()
|
Method Summary | |
---|---|
Tree |
determineHead(Tree t)
Determine which daughter of the current parse tree is the head. |
Tree |
determineHead(Tree t,
Tree parent)
Determine which daughter of the current parse tree is the head given the parent of the tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LeftHeadFinder()
Method Detail |
---|
public Tree determineHead(Tree t)
HeadFinder
determineHead
in interface HeadFinder
t
- The parse tree to examine the daughters of
public Tree determineHead(Tree t, Tree parent)
HeadFinder
determineHead
in interface HeadFinder
t
- The parse tree to examine the daughters ofparent
- The parent of tree t
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |