edu.stanford.nlp.trees.international.negra
Class NegraHeadFinder

java.lang.Object
  extended byedu.stanford.nlp.trees.international.negra.NegraHeadFinder
All Implemented Interfaces:
HeadFinder

public class NegraHeadFinder
extends Object
implements HeadFinder

HeadFinder for the Negra Treebank. Adapted from CollinsHeadFinder.

Author:
Roger Levy

Constructor Summary
NegraHeadFinder()
           
NegraHeadFinder(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

NegraHeadFinder

public NegraHeadFinder()

NegraHeadFinder

public NegraHeadFinder(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 da ughters of
Returns:
The parse tree that is the head


Stanford NLP Group