edu.stanford.nlp.trees.international.arabic
Class ArabicHeadFinder

java.lang.Object
  extended by edu.stanford.nlp.trees.AbstractCollinsHeadFinder
      extended by edu.stanford.nlp.trees.international.arabic.ArabicHeadFinder
All Implemented Interfaces:
HeadFinder, java.io.Serializable

public class ArabicHeadFinder
extends AbstractCollinsHeadFinder

Right now, just returns the first child of a tree as the head. TO DO: make sure that -PRD marked elements are always chosen as heads.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder
defaultRule, nonTerminalInfo, tlp
 
Constructor Summary
  ArabicHeadFinder()
           
protected ArabicHeadFinder(TreebankLanguagePack tlp)
           
 
Method Summary
protected  Tree findMarkedHead(Tree t)
          Predicatively marked elements in a sentence should be noted as heads
 
Methods inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder
determineHead, determineNonTrivialHead, main, postOperationFix, traverseLocate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArabicHeadFinder

public ArabicHeadFinder()

ArabicHeadFinder

protected ArabicHeadFinder(TreebankLanguagePack tlp)
Method Detail

findMarkedHead

protected Tree findMarkedHead(Tree t)
Predicatively marked elements in a sentence should be noted as heads

Overrides:
findMarkedHead in class AbstractCollinsHeadFinder
Parameters:
t - a tree to find the head of
Returns:
the marked head-- null if no marked head