Search SRILM-USER Archives

Match: Format: Sort by:
Search:

About -bayes option in "ngram" command

From: "Xiaolong Li" <xlm7b at ADDRESS HIDDEN>
Date: Mon, 3 Mar 2003 22:56:00 -0800

This is a multi-part message in MIME format.

------=_NextPart_000_0238_01C2E1D8.0F8E8860
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

Hi,
    I met a problem in using "-bayes" option of "ngram" command when I =
want to interpolate two LM models (using posterier mixture weights). The =
below command doesn't work with an error message as "write() method not =
implemented".

ngram -lm LM1 -mix-lm LM2 -bayes 0 -write-lm MIX_LM=20

but it works when I use a priori mixture weights (without -bayes option)

    Could you help me? Thanks a lot.

Hans Li

------=_NextPart_000_0238_01C2E1D8.0F8E8860
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>    I met a problem in =
using=20
"-bayes" option of "ngram" command when I want to interpolate two LM =
models=20
(using posterier mixture weights). The below command doesn't work with =
an error=20
message as "write() method not implemented".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>ngram -lm LM1 -mix-lm LM2 -bayes 0 =
-write-lm MIX_LM=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>but it works when I use a =
priori mixture=20
weights (without -bayes option)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>    Could you help me? =
Thanks a=20
lot.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Hans =
Li</FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0238_01C2E1D8.0F8E8860--

Click here to go to the SRILM home page.