Hi, unfortunately, the interpolation of language models requires two pieces of code that only exist in SRILM: The EM training method to find weights for the language models, and the linear interpolation of the language models.
Maybe Ken and Lane can weigh in, if/when a replacement in KENLM will be available. -phi On Tue, Jun 28, 2016 at 10:10 AM, Mathias Müller <mathias.muel...@uzh.ch> wrote: > Hi all > > I have trained several language models and would like to combine them with > interpolate-lm.perl: > > > https://github.com/moses-smt/mosesdecoder/blob/master/scripts/ems/support/interpolate-lm.perl > > As the language model tool, I always use KenLM, but looking at the code of > interpolate-lm.perl, it seems that the use of SRILM is hard-coded in the > script. I would like to avoid SRILM because, if I understand correctly, its > license does not permit use in commercial products. > > My question is: > > Can I simply replace the call to SRILM with KenLM in my copy of > interpolate-lm.perl? Does KenLM have the functionality necessary for > language model combination, e.g. a substitute for SRILM's > "compute-best-mix"? > > Thanks for your help. > Mathias > > — > > Mathias Müller > AND-2-20 > Institute of Computational Linguistics > University of Zurich > +41 44 635 75 81 > mathias.muel...@uzh.ch > > _______________________________________________ > Moses-support mailing list > Moses-support@mit.edu > http://mailman.mit.edu/mailman/listinfo/moses-support > >
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support