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); }
void CacheBasedLanguageModel::EvaluateChart(const ChartBasedFeatureContext& context, ScoreComponentCollection* accumulator) const { const TargetPhrase& tp = context.GetTargetPhrase(); Evaluate(tp, accumulator); }
void HyperParameterAsWeight::EvaluateChart(const ChartBasedFeatureContext& context, ScoreComponentCollection* accumulator) const { const TargetPhrase& tp = context.GetTargetPhrase(); Evaluate(tp, accumulator); }