Hi all,
I'm integrating my LM in Mosesdecoder. I followed the SRI.cpp and
NeuralLMWrapper.cpp. I don't know how to assign value for *finalState
variable. Could you explain for me how does it affect when decoding? I
logged out the context when the system call "GetValue" function in my LM and
in SRILM LM, the number of contexts were different.
LMResult LanguageModelSRI::GetValue(VocabIndex wordId, VocabIndex *context)
const
{
LMResult ret;
ret.score = FloorScore(TransformLMScore(m_srilmModel->wordProb( wordId,
context)));
ret.unknown = (wordId == m_unknownId);
return ret;
}
Which is value of ret.score? Log Probability or Probability?
Best Regards,
Huyen.
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support