edu.stanford.nlp.parser.lexparser
Class AbstractTreeExtractor
java.lang.Object
edu.stanford.nlp.parser.lexparser.AbstractTreeExtractor
- All Implemented Interfaces:
- Extractor
- Direct Known Subclasses:
- BinaryGrammarExtractor, MLEDependencyGrammarExtractor
public abstract class AbstractTreeExtractor
- extends Object
- implements Extractor
Field Summary |
protected double |
weight
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
weight
protected double weight
AbstractTreeExtractor
public AbstractTreeExtractor()
tallyLeaf
protected void tallyLeaf(Tree lt)
tallyPreTerminal
protected void tallyPreTerminal(Tree lt)
tallyInternalNode
protected void tallyInternalNode(Tree lt)
tallyRoot
protected void tallyRoot(Tree lt)
formResult
public Object formResult()
tallyLocalTree
protected void tallyLocalTree(Tree lt)
tallyTree
public void tallyTree(Tree t)
tallyTrees
protected void tallyTrees(Collection<Tree> trees)
tallyTreeIterator
protected void tallyTreeIterator(Iterator<Tree> treeIterator,
Function<Tree,Tree> f)
extract
public Object extract()
extract
public Object extract(Collection<Tree> treeList)
- Specified by:
extract
in interface Extractor
extract
public Object extract(Collection<Tree> trees1,
Collection<Tree> trees2,
double weight)
extract
public Object extract(Iterator<Tree> treeIterator,
Function<Tree,Tree> f)
- Specified by:
extract
in interface Extractor
Stanford NLP Group