public class ChineseSimWordAvgDepGrammar extends MLEDependencyGrammar
argCounter, interp, MIN_PROBABILITY, numWordTokens, smooth_aPTW_aPT, smooth_aT_hTd, smooth_aT_hTWd, smooth_aTW_aT, smooth_aTW_hTd, smooth_aTW_hTWd, smooth_stop, stopCounter, tagITWList
coarseDistanceBins, directional, expandDependencyMap, itwInterner, lex, numTagBins, op, regDistanceBins, stopTW, tagBin, tagIndex, tagProjection, tlp, useCoarseDistance, useDistance, wildTW, wordIndex
Constructor and Description |
---|
ChineseSimWordAvgDepGrammar(TreebankLangParserParams tlpParams,
boolean directional,
boolean distance,
boolean coarseDistance,
boolean basicCategoryTagsInDependencyGrammar,
Options op,
Index<String> wordIndex,
Index<String> tagIndex) |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
Map<Pair<Integer,String>,List<Triple<Integer,String,Double>>> |
getMap(String filename) |
double |
scoreTB(IntDependency dependency)
Score a tag binned dependency.
|
void |
setLex(Lexicon lex) |
addRule, countHistory, dumpSizes, expandDependency, getStopProb, probTB, pruneTW, readData, scoreAll, toString, treeToDependencyHelper, treeToDependencyList, tune, writeData
coarseDistanceBin, distanceBin, initTagBins, intern, numDistBins, numTagBins, regDistanceBin, rootTW, score, score, scoreTB, setLexicon, tagBin, valenceBin
public double scoreTB(IntDependency dependency)
MLEDependencyGrammar
scoreTB
in interface DependencyGrammar
scoreTB
in class MLEDependencyGrammar
dependency
- The dependency object to be scored, where the tags in
the dependency have already been mapped to a reduced space by a
tagProjection function.public void setLex(Lexicon lex)