コード例 #1
0
void SourceWordDeletionFeature::EvaluateChart(
            const ChartBasedFeatureContext& context,
		 	 	 	 	ScoreComponentCollection* accumulator) const
{
	const AlignmentInfo &alignmentInfo = context.GetTargetPhrase().GetAlignTerm();
	ComputeFeatures(context.GetTargetPhrase(), accumulator, alignmentInfo);
}
void TargetWordInsertionFeature::EvaluateChart(
            const ChartBasedFeatureContext& context,
						ScoreComponentCollection* accumulator) const
{
	const TargetPhrase& targetPhrase = context.GetTargetPhrase();
	const AlignmentInfo &alignmentInfo = context.GetTargetPhrase().GetAlignTerm();
	ComputeFeatures(targetPhrase, accumulator, alignmentInfo);
}
コード例 #3
0
	void CacheBasedLanguageModel::EvaluateChart(const ChartBasedFeatureContext& context, ScoreComponentCollection* accumulator) const
	{
		const TargetPhrase& tp = context.GetTargetPhrase();
		Evaluate(tp, accumulator);
	}
コード例 #4
0
  void HyperParameterAsWeight::EvaluateChart(const ChartBasedFeatureContext& context, ScoreComponentCollection* accumulator) const {
	  const TargetPhrase& tp = context.GetTargetPhrase();
	  Evaluate(tp, accumulator);
  }