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

Find the head of an Arabic tree, using the usual kind of heuristic head finding rules.

Implementation notes. TO DO: make sure that -PRD marked elements are always chosen as heads. (Has this now been successfully done or not??)

Mona: I added the 8 new Nonterm for the merged DT with its following category as a rule the DT nonterm is right headed, the 8 new nonterm DTs are: DTCD, DTRB, DTRP, DTJJ, DTNN, DTNNS, DTNNP, DTNNPS. This was added Dec 7th, 2004.

Author:
Roger Levy, Mona Diab, Christopher Manning (added new stuff for ATBp3v3
See Also:
Serialized Form

Nested Class Summary
static class ArabicHeadFinder.TagSet
           
 
Field Summary
protected  ArabicHeadFinder.TagSet tagSet
           
 
Fields inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder
defaultRule, nonTerminalInfo, tlp
 
Constructor Summary
  ArabicHeadFinder()
           
  ArabicHeadFinder(ArabicHeadFinder.TagSet tagSet)
           
  ArabicHeadFinder(java.lang.String tagSet)
          Construct an ArabicHeadFinder with a String parameter corresponding to the tagset in use.
  ArabicHeadFinder(TreebankLanguagePack tlp)
           
protected ArabicHeadFinder(TreebankLanguagePack tlp, ArabicHeadFinder.TagSet tagSet)
           
 
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, determineHead, determineNonTrivialHead, postOperationFix, traverseLocate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tagSet

protected ArabicHeadFinder.TagSet tagSet
Constructor Detail

ArabicHeadFinder

public ArabicHeadFinder()

ArabicHeadFinder

public ArabicHeadFinder(java.lang.String tagSet)
Construct an ArabicHeadFinder with a String parameter corresponding to the tagset in use.

Parameters:
tagSet - Either "ORIGINAL" or "BIES_COLLAPSED"

ArabicHeadFinder

public ArabicHeadFinder(ArabicHeadFinder.TagSet tagSet)

ArabicHeadFinder

public ArabicHeadFinder(TreebankLanguagePack tlp)

ArabicHeadFinder

protected ArabicHeadFinder(TreebankLanguagePack tlp,
                           ArabicHeadFinder.TagSet tagSet)
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


Stanford NLP Group