|
|||||||||
| 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
edu.stanford.nlp.trees.ModCollinsHeadFinder
edu.stanford.nlp.ie.machinereading.common.NoPunctuationHeadFinder
public class NoPunctuationHeadFinder
Simple variant of the ModCollinsHeadFinder avoids supplying punctuation tags as heads whenever possible.
| Field Summary |
|---|
| Fields inherited from class edu.stanford.nlp.trees.AbstractCollinsHeadFinder |
|---|
defaultRule, nonTerminalInfo, tlp |
| Constructor Summary | |
|---|---|
NoPunctuationHeadFinder()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
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, determineHead, determineNonTrivialHead, findMarkedHead, setCategoriesToAvoid, traverseLocate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoPunctuationHeadFinder()
| Method Detail |
|---|
protected int postOperationFix(int headIdx,
Tree[] daughterTrees)
AbstractCollinsHeadFinder
postOperationFix in class CollinsHeadFinderheadIdx - the index of the proposed headdaughterTrees - the array of daughter trees
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||