mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-02 17:09:36 +03:00
minor renaming
This commit is contained in:
parent
d65687e76f
commit
ec48a33b7c
@ -211,15 +211,15 @@ void KENLM::EvaluateWhenApplied(const Manager &mgr,
|
||||
const Model::State *state0 = stateCast.state;
|
||||
const Model::State *state1 = &aux_state;
|
||||
|
||||
const LMCacheValue &val0 = ScoreAndCache(mgr, *in_state, TranslateID(hypo.GetWord(position)));
|
||||
float score = val0.first;
|
||||
state0 = val0.second;
|
||||
const LMCacheValue &val = ScoreAndCache(mgr, *in_state, TranslateID(hypo.GetWord(position)));
|
||||
float score = val.first;
|
||||
state0 = val.second;
|
||||
|
||||
++position;
|
||||
for (; position < adjust_end; ++position) {
|
||||
const LMCacheValue &val1 = ScoreAndCache(mgr, *state0, TranslateID(hypo.GetWord(position)));
|
||||
score += val1.first;
|
||||
state1 = val1.second;
|
||||
const LMCacheValue &val = ScoreAndCache(mgr, *state0, TranslateID(hypo.GetWord(position)));
|
||||
score += val.first;
|
||||
state1 = val.second;
|
||||
|
||||
std::swap(state0, state1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user