edu.stanford.nlp.trees.international.arabic
Class ArabicHeadFinder
java.lang.Object
edu.stanford.nlp.trees.AbstractCollinsHeadFinder
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
Method Summary |
protected Tree |
findMarkedHead(Tree t)
Predicatively marked elements in a sentence should be noted as heads |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tagSet
protected ArabicHeadFinder.TagSet tagSet
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)
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