|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.parser.lexparser.AbstractTreeExtractor<DependencyGrammar>
edu.stanford.nlp.parser.lexparser.MLEDependencyGrammarExtractor
public class MLEDependencyGrammarExtractor
Gathers statistics on tree dependencies and then passes them to an MLEDependencyGrammar for dependency grammar construction.
Field Summary | |
---|---|
protected boolean |
basicCategoryTagsInDependencyGrammar
Whether basic category tags are in the dependency grammar. |
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 Index<String> |
tagIndex
|
protected TreebankLangParserParams |
tlpParams
|
protected boolean |
useCoarseDistance
Whether dependent distance is distinguished more coarsely. |
protected boolean |
useDistance
Whether dependent distance from head is distinguished. |
protected Index<String> |
wordIndex
|
Fields inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreeExtractor |
---|
op |
Constructor Summary | |
---|---|
MLEDependencyGrammarExtractor(Options op,
Index<String> wordIndex,
Index<String> tagIndex)
|
Method Summary | |
---|---|
DependencyGrammar |
formResult()
|
protected void |
tallyRoot(Tree lt,
double weight)
|
Methods inherited from class edu.stanford.nlp.parser.lexparser.AbstractTreeExtractor |
---|
extract, 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 |
---|
protected final Index<String> wordIndex
protected final Index<String> tagIndex
protected ClassicCounter<IntDependency> dependencyCounter
protected TreebankLangParserParams tlpParams
protected boolean directional
protected boolean useDistance
protected boolean useCoarseDistance
protected final boolean basicCategoryTagsInDependencyGrammar
Constructor Detail |
---|
public MLEDependencyGrammarExtractor(Options op, Index<String> wordIndex, Index<String> tagIndex)
Method Detail |
---|
protected void tallyRoot(Tree lt, double weight)
tallyRoot
in class AbstractTreeExtractor<DependencyGrammar>
public DependencyGrammar formResult()
formResult
in class AbstractTreeExtractor<DependencyGrammar>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |