|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.AbstractCollinsHeadFinder
edu.stanford.nlp.trees.CollinsHeadFinder
public class CollinsHeadFinder
Implements the HeadFinder found in Michael Collins' 1999 thesis. Except: we've added a head rule for NX (returns rightmost), whereas no rule for the head of NX is found in any of the versions of Collins' head table that we have (did he perhaps use the NP rules for NX?). These rules are suitable for the Penn Treebank.
May 2004: Added support for AUX and AUXG to the VP rules; these cause no interference in Penn Treebank parsing, but means that these rules also work for the BLLIP corpus (or Charniak parser output in general).
Field Summary |
---|
Fields inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder |
---|
defaultRule, nonTerminalInfo, tlp |
Constructor Summary | |
---|---|
CollinsHeadFinder()
|
|
CollinsHeadFinder(TreebankLanguagePack tlp)
|
Method Summary | |
---|---|
protected int |
postOperationFix(int headIdx,
Tree[] daughterTrees)
A way for subclasses to fix any heads under special conditions The default does nothing. |
Methods inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder |
---|
determineHead, determineNonTrivialHead, findMarkedHead, main, traverseLocate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollinsHeadFinder()
public CollinsHeadFinder(TreebankLanguagePack tlp)
Method Detail |
---|
protected int postOperationFix(int headIdx, Tree[] daughterTrees)
AbstractCollinsHeadFinder
postOperationFix
in class AbstractCollinsHeadFinder
headIdx
- the index of the proposed headdaughterTrees
- the array of daughter trees
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |