mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
figure out which feature function to apply at which decode step. Book-keeping
This commit is contained in:
parent
f9d6528088
commit
9c81696143
@ -148,6 +148,8 @@ void DecodeStepGeneration::Process(const TranslationOption &inputPartialTranslOp
|
||||
outPhrase.GetScoreBreakdown().PlusEquals(generationScore);
|
||||
|
||||
outPhrase.MergeFactors(genPhrase, m_newOutputFactors);
|
||||
outPhrase.Evaluate(src, m_featuresToApply);
|
||||
|
||||
const WordsRange &sourceWordsRange = inputPartialTranslOpt.GetSourceWordsRange();
|
||||
|
||||
TranslationOption *newTransOpt = new TranslationOption(sourceWordsRange, outPhrase);
|
||||
|
@ -807,8 +807,8 @@ void FVector::merge(const FVector &other)
|
||||
{
|
||||
// dense
|
||||
for (size_t i = 0; i < m_coreFeatures.size(); ++i) {
|
||||
FValue thisVal = m_coreFeatures[i];
|
||||
FValue otherVal = other.m_coreFeatures[i];
|
||||
FValue &thisVal = m_coreFeatures[i];
|
||||
const FValue otherVal = other.m_coreFeatures[i];
|
||||
|
||||
if (otherVal) {
|
||||
CHECK(thisVal == 0 || thisVal == otherVal);
|
||||
|
Loading…
Reference in New Issue
Block a user