edu.stanford.nlp.parser.lexparser
Class MLEDependencyGrammarExtractor
java.lang.Object
edu.stanford.nlp.parser.lexparser.AbstractTreeExtractor
edu.stanford.nlp.parser.lexparser.MLEDependencyGrammarExtractor
- All Implemented Interfaces:
- Extractor
public class MLEDependencyGrammarExtractor
- extends AbstractTreeExtractor
Gathers statistics on tree dependencies and then passes them to an
MLEDependencyGrammar for dependency grammar construction
- Author:
- Dan Klein
Methods inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreeExtractor |
extract, extract, extract, extract, tallyInternalNode, tallyLeaf, tallyLocalTree, tallyPreTerminal, tallyTree, tallyTreeIterator, tallyTrees |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wordNumberer
protected Numberer wordNumberer
tagNumberer
protected Numberer tagNumberer
dependencyCounter
protected Counter<IntDependency> dependencyCounter
- This is where all dependencies are stored (using full tag space).
tlpParams
protected TreebankLangParserParams tlpParams
directional
protected boolean directional
- Whether left and right is distinguished.
useDistance
protected boolean useDistance
- Whether dependent distance from head is distinguished.
useCoarseDistance
protected boolean useCoarseDistance
- Whether dependent distance is distinguished more coarsely.
MLEDependencyGrammarExtractor
public MLEDependencyGrammarExtractor(Options op)
tallyRoot
protected void tallyRoot(Tree lt)
- Overrides:
tallyRoot
in class AbstractTreeExtractor
formResult
public Object formResult()
- Overrides:
formResult
in class AbstractTreeExtractor
Stanford NLP Group