edu.stanford.nlp.trees
Class SepHeadFinder

java.lang.Object
  |
  +--edu.stanford.nlp.trees.SepHeadFinder
All Implemented Interfaces:
HeadFinder

public class SepHeadFinder
extends Object
implements HeadFinder

Exactly the same as CollinsHeadFinder, except it allows for NP-SBJ tags.


Constructor Summary
SepHeadFinder()
           
 
Method Summary
 Tree determineHead(Tree t)
          Determine which daughter of the current parse tree is the head.
static void main(String[] args)
          Go through trees and determine their heads and print them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SepHeadFinder

public SepHeadFinder()
Method Detail

determineHead

public Tree determineHead(Tree t)
Determine which daughter of the current parse tree is the head. It assumes that the daughters alread have had their heads determined. It assumes that category Strings were interned. It assumes that labels are a CategoryWordTag

Specified by:
determineHead in interface HeadFinder
Parameters:
t - The parse tree to examine the daughters of
Returns:
The parse tree that is the head

main

public static void main(String[] args)
Go through trees and determine their heads and print them. Just for debuggin' Use: java CollinsHeadFinder /wsj/07



Stanford NLP Group