當前位置: 首頁>>代碼示例>>Java>>正文


Java Linearizer類代碼示例

本文整理匯總了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);
}
 
開發者ID:text-machine-lab,項目名稱:CliRel,代碼行數:8,代碼來源:ArrayParser.java

示例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);
}
 
開發者ID:text-machine-lab,項目名稱:CliRel,代碼行數:9,代碼來源:ConditionalTrainer.java

示例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());
}
 
開發者ID:text-machine-lab,項目名稱:CliRel,代碼行數:10,代碼來源:ConstrainedHierarchicalTwoChartParser.java


注:本文中的edu.berkeley.nlp.discPCFG.Linearizer類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。