mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-02 17:09:36 +03:00
parent
50abed8499
commit
3767d161c1
@ -206,8 +206,9 @@ void KENLM::EvaluateWhenApplied(const Manager &mgr,
|
||||
const std::size_t adjust_end = std::min(end, begin + m_ngram->Order() - 1);
|
||||
|
||||
std::size_t position = begin;
|
||||
typename Model::State aux_state;
|
||||
const Model::State *state0 = stateCast.state;
|
||||
const Model::State *state1;
|
||||
const Model::State *state1 = &aux_state;
|
||||
|
||||
const LMCacheValue &val = ScoreAndCache(mgr, *in_state, TranslateID(hypo.GetWord(position)));
|
||||
float score = val.first;
|
||||
|
Loading…
Reference in New Issue
Block a user