edu.stanford.nlp.trees
Class ChineseHeadFinder

java.lang.Object
  extended byedu.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

Constructor Summary
ChineseHeadFinder()
           
ChineseHeadFinder(TreebankLanguagePack tlp)
           
 
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
 

Constructor Detail

ChineseHeadFinder

public ChineseHeadFinder()

ChineseHeadFinder

public ChineseHeadFinder(TreebankLanguagePack tlp)
Method Detail

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