edu.stanford.nlp.parser.lexparser
Class MLEDependencyGrammarExtractor

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.AbstractTreeExtractor
      extended by 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

Field Summary
protected  ClassicCounter<IntDependency> dependencyCounter
          This is where all dependencies are stored (using full tag space).
protected  boolean directional
          Whether left and right is distinguished.
protected  Numberer tagNumberer
           
protected  TreebankLangParserParams tlpParams
           
protected  boolean useCoarseDistance
          Whether dependent distance is distinguished more coarsely.
protected  boolean useDistance
          Whether dependent distance from head is distinguished.
protected  Numberer wordNumberer
           
 
Fields inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreeExtractor
weight
 
Constructor Summary
MLEDependencyGrammarExtractor(Options op)
           
 
Method Summary
 Object formResult()
           
protected  void tallyRoot(Tree lt)
           
 
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
 

Field Detail

wordNumberer

protected Numberer wordNumberer

tagNumberer

protected Numberer tagNumberer

dependencyCounter

protected ClassicCounter<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.

Constructor Detail

MLEDependencyGrammarExtractor

public MLEDependencyGrammarExtractor(Options op)
Method Detail

tallyRoot

protected void tallyRoot(Tree lt)
Overrides:
tallyRoot in class AbstractTreeExtractor

formResult

public Object formResult()
Overrides:
formResult in class AbstractTreeExtractor


Stanford NLP Group