edu.stanford.nlp.parser.lexparser
Class BinaryGrammarExtractor

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.AbstractTreeExtractor
      extended by edu.stanford.nlp.parser.lexparser.BinaryGrammarExtractor
All Implemented Interfaces:
Extractor

public class BinaryGrammarExtractor
extends AbstractTreeExtractor


Field Summary
protected  Numberer stateNumberer
           
 
Fields inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreeExtractor
weight
 
Constructor Summary
BinaryGrammarExtractor()
           
 
Method Summary
 Object formResult()
           
protected  void tallyInternalNode(Tree lt)
           
protected  void tallyRule(Rule r, double score)
           
 
Methods inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreeExtractor
extract, extract, extract, extract, tallyLeaf, tallyLocalTree, tallyPreTerminal, tallyRoot, tallyTree, tallyTreeIterator, tallyTrees
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stateNumberer

protected Numberer stateNumberer
Constructor Detail

BinaryGrammarExtractor

public BinaryGrammarExtractor()
Method Detail

tallyRule

protected void tallyRule(Rule r,
                         double score)

tallyInternalNode

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

formResult

public Object formResult()
Overrides:
formResult in class AbstractTreeExtractor


Stanford NLP Group