I am integrating my LM in mosesdecoder. I started by looking into the
Skeleton files, and the SRI code. Things are clear except for these lines
in SRI.cpp which I cannot wrap my head around them:

ngram[count] = Vocab_None;
....
  if (finalState) {
    ngram[0] = lmId;
    unsigned int dummy;
    *finalState = m_srilmModel-

assuming that lmId is the id of the last word of the sequence, I don't
understand the functionality of finalState (probably because I lack the MT
background). I wonder if you could kindly clarify these things if you are
familiar with LM integration, or SRI integration in specific:

*1) why are we adding ngram[count] = Vocab_None*

*2) what is being checked in the if-condition if(finalState),*
*3) what is happenning in:         *finalState =
m_srilmModel->contextID(ngram, dummy);*

Thank you!
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to