本文整理匯總了Java中edu.berkeley.nlp.discPCFG.Linearizer類的典型用法代碼示例。如果您正苦於以下問題:Java Linearizer類的具體用法?Java Linearizer怎麽用?Java Linearizer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Linearizer類屬於edu.berkeley.nlp.discPCFG包,在下文中一共展示了Linearizer類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: incrementExpectedGoldCounts
import edu.berkeley.nlp.discPCFG.Linearizer; //導入依賴的package包/類
public void incrementExpectedGoldCounts(Linearizer linearizer,
double[] probs, Tree<StateSet> tree) {
double tree_score = tree.getLabel().getIScore(0);
int tree_scale = tree.getLabel().getIScale();
incrementExpectedGoldCounts(linearizer, probs, tree, tree_score,
tree_scale);
}
示例2: newParsingObjectiveFunction
import edu.berkeley.nlp.discPCFG.Linearizer; //導入依賴的package包/類
public ParsingObjectiveFunction newParsingObjectiveFunction(
Options opts, String outFileName, Linearizer linearizer,
StateSetTreeList trainStateSetTrees, int regularize,
double newSigma) {
return ConditionalTrainer.newParsingObjectiveFunction(opts,
outFileName, linearizer, trainStateSetTrees, regularize,
newSigma);
}
示例3: incrementExpectedGoldCounts
import edu.berkeley.nlp.discPCFG.Linearizer; //導入依賴的package包/類
@Override
public void incrementExpectedGoldCounts(Linearizer linearizer,
double[] probs, Tree<StateSet> tree) {
if (ConditionalTrainer.Options.lockGrammar)
return;
incrementExpectedGoldCounts(linearizer, probs, tree, tree.getLabel()
.getIScore(0), tree.getLabel().getIScale());
}