<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/18/2013 8:38 AM, MATHUR, Prashant
wrote:<br>
</div>
<blockquote
cite="mid:6507F4CC05459348A4F0D2F41256C11E2B7DBB3F@engins.xrce.xeroxlabs.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">Hi,
<br>
<br>
<font size="2">I wanted to know how do I do linear interpolation
of several models given their weights?
<br>
Also, can I interpolated more than 10 models at once? <br>
<br>
I tried several hit/trials so far. Nothing seems to work for
me. <br>
<br>
</font><font size="2">$ngram -lm small.lm.1 -lambda 0.7 -mix-lm
big.lm.1 -unk <br>
It doesn't throw any output or error. <br>
<br>
when I try -write option <br>
</font><font size="2"><font size="2">$ngram -lm small.lm.1
-lambda 0.7 -mix-lm big.lm.1 -unk -write-lm mixed.lm.1<br>
write() method not implemented<br>
error writing mixed.lm.1<br>
</font></font></div>
</blockquote>
<font size="2">The above command should work, unless you are not
giving the complete command line in your example (if you add the
-bayes option then you will see the "not implemented" error).<br>
<br>
<br>
</font>
<blockquote
cite="mid:6507F4CC05459348A4F0D2F41256C11E2B7DBB3F@engins.xrce.xeroxlabs.com"
type="cite">
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;"><font size="2"><font size="2">
<br>
but when I try </font></font><br>
<font size="2"><font size="2"><font size="2"><font size="2">$ngram
-lm small.lm.1 -lambda 0.7 -mix-lm2 big.lm.1
-mix-lambda2 0.3 -unk -write-lm mixed.lm.1<br>
Then the mixed.lm.1 file is the same as small.lm.1<br>
</font></font></font></font><br>
<font size="2"><font size="2"><font size="2"><font size="2"><font
size="2"><font size="2"><font size="2">My
</font>SRILM version is 1.5.3.<br>
</font></font>I read that there are many ways of
interpolation such as count-based and log-linear
interpolation.
<br>
I tried the options -count-lm (throws a format error),
-loglinear-mix (didn't do anything)<br>
<br>
I am out of options. Please help!<br>
</font></font></font></font></div>
</blockquote>
<br>
<font size="2">You are using a very old version of SRILM. Please
get the latest stable version (1.7.0).<br>
<br>
If you want to try the current beta version (1.7.1) you will find
a new option (ngram -read-mix-lms) that allows you to specify the
mixture component LMs in a separate file, and also allows an arbitrary
number of components.<br>
<br>
Andreas<br>
<br>
</font><br>
</body>
</html>