edu.stanford.nlp.trees
Class ChineseHeadFinder
java.lang.Object
edu.stanford.nlp.trees.ChineseHeadFinder
- All Implemented Interfaces:
- HeadFinder
- public class ChineseHeadFinder
- extends Object
- implements HeadFinder
HeadFinder for the Penn Chinese Treebank. Adapted from
CollinsHeadFinder.
- Author:
- Roger Levy
Method Summary |
Tree |
determineHead(Tree t)
Determine which daughter of the current parse tree is the head. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChineseHeadFinder
public ChineseHeadFinder()
ChineseHeadFinder
public ChineseHeadFinder(TreebankLanguagePack tlp)
determineHead
public Tree determineHead(Tree t)
- Determine which daughter of the current parse tree is the head.
It assumes that the daughters already have had their heads
determined. Another method has to do the tree walking.
- Specified by:
determineHead
in interface HeadFinder
- Parameters:
t
- The parse tree to examine the daughters of
- Returns:
- The parse tree that is the head
Stanford NLP Group