public class MLEDependencyGrammarExtractor extends AbstractTreeExtractor<DependencyGrammar>
Modifier and Type | Field and Description |
---|---|
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 |
op
Constructor and Description |
---|
MLEDependencyGrammarExtractor(Options op,
Index<String> wordIndex,
Index<String> tagIndex) |
Modifier and Type | Method and Description |
---|---|
DependencyGrammar |
formResult() |
protected void |
tallyRoot(Tree lt,
double weight) |
extract, extract, extract, extract, extract, tallyInternalNode, tallyLeaf, tallyLocalTree, tallyPreTerminal, tallyTree, tallyTreeIterator, tallyTrees
protected ClassicCounter<IntDependency> dependencyCounter
protected TreebankLangParserParams tlpParams
protected boolean directional
protected boolean useDistance
protected boolean useCoarseDistance
protected final boolean basicCategoryTagsInDependencyGrammar
protected void tallyRoot(Tree lt, double weight)
tallyRoot
in class AbstractTreeExtractor<DependencyGrammar>
public DependencyGrammar formResult()
formResult
in class AbstractTreeExtractor<DependencyGrammar>