<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>52nlp&#039;s Learning Notes &#187; language model</title>
	<atom:link href="http://www.52nlp.com/tag/language-model/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.52nlp.com</link>
	<description>Natural Language Processing, Machine Learning, Programming Skill, Mathematics</description>
	<lastBuildDate>Sat, 23 Apr 2011 05:17:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Moses Support Digest:Tuning failure with Language model type unknown</title>
		<link>http://www.52nlp.com/moses-support-digest-tuning-failure-with-language-model-type-unknown/</link>
		<comments>http://www.52nlp.com/moses-support-digest-tuning-failure-with-language-model-type-unknown/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 12:41:13 +0000</pubDate>
		<dc:creator>52nlp</dc:creator>
				<category><![CDATA[Moses]]></category>
		<category><![CDATA[SMT]]></category>
		<category><![CDATA[language model]]></category>
		<category><![CDATA[moses]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://www.52nlp.com/?p=255</guid>
		<description><![CDATA[[Moses-support] Tuning failure with &#8220;Language model type unknown.&#8221; Hello, I am currently trying to train a Moses system, which goes fine until the tuning step. I get the following error : Creating lexical reordering&#8230; weights: 0.111111 0.111111 0.111111 0.111111 0.111111 &#8230; <a href="http://www.52nlp.com/moses-support-digest-tuning-failure-with-language-model-type-unknown/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://www.52nlp.com/moses-support-digest-tuning-tree-based-models/' rel='bookmark' title='Permanent Link: Moses Support Digest:tuning tree-based models'>Moses Support Digest:tuning tree-based models</a></li>
<li><a href='http://www.52nlp.com/moses-digest-building-pos-language-model-with-srilm/' rel='bookmark' title='Permanent Link: Moses Support Digest:Building POS language model with SRILM'>Moses Support Digest:Building POS language model with SRILM</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-seems-to-hang/' rel='bookmark' title='Permanent Link: Moses Support Digest: Moses seems to hang'>Moses Support Digest: Moses seems to hang</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-confusionnet-getsubstring-error-when-using-lattice-with-utf8-input/' rel='bookmark' title='Permanent Link: Moses Support Digest:ConfusionNet GetSubString error when using lattice with UTF8 input'>Moses Support Digest:ConfusionNet GetSubString error when using lattice with UTF8 input</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-irstlm-memory-racing-with-5-gram-lm/' rel='bookmark' title='Permanent Link: Moses Support Digest:  moses-irstlm memory racing with 5-gram lm'>Moses Support Digest:  moses-irstlm memory racing with 5-gram lm</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-threads-compilation-problem-with-randlm/' rel='bookmark' title='Permanent Link: Moses Support Digest:moses threads compilation problem with RandLM'>Moses Support Digest:moses threads compilation problem with RandLM</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-giza-error/' rel='bookmark' title='Permanent Link: Moses Support Digest:GIZA++ error'>Moses Support Digest:GIZA++ error</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest/' rel='bookmark' title='Permanent Link: Moses Support Digest: moses install on 64-bit'>Moses Support Digest: moses install on 64-bit</a></li>
<li><a href='http://www.52nlp.com/cannot-find-loolm/' rel='bookmark' title='Permanent Link: Moses Support Digest: cannot find -loolm'>Moses Support Digest: cannot find -loolm</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-error-compiling-on-linux/' rel='bookmark' title='Permanent Link: Moses Support Digest:Error compiling on Linux'>Moses Support Digest:Error compiling on Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>[Moses-support] Tuning failure with &#8220;Language model type unknown.&#8221;</strong></p>
<p>Hello,<br />
I am currently trying to train a Moses system, which goes fine until the tuning step. I get the following error :</p>
<p>            Creating lexical reordering&#8230;<br />
            weights: 0.111111 0.111111 0.111111 0.111111 0.111111 0.111111<br />
            binary file loaded, default OFF_T: -1<br />
            Created lexical orientation reordering<br />
            ERROR:Language model type unknown. Probably not compiled<br />
into library<br />
            ERROR:no LM created. We probably don&#8217;t have it compiled<br />
            Exit code: 1<br />
            The decoder died. CONFIG WAS -w 0.000000 -lm 0.111111 -d<br />
0.111111 0.111111 0.111111 0.111111 0.111111 0.111111 0.111111 -tm<br />
0.033333 0.022222 0.033333 0.022222 0.000000</p>
<p>I have checked the archives of the mailing list, and couldn&#8217;t find anything to resolve the problem.<br />
The language model line in the run1.moses.ini is the following<br />
            # language models: type(srilm/irstlm), factors, order, file<br />
            [lmodel-file]<br />
            1 0 5 /home/s0678231/disk1/mt-system/lm/europarl.binlm.1</p>
<p>Is anyone able to help with this ?</p>
<p>Thanks in advance,<br />
Ronan<br />
<span id="more-255"></span><br />
<!--adsense--><br />
<strong>Re:[Moses-support] Tuning failure with &#8220;Language model type unknown.&#8221;</strong></p>
<p>Hi Ronan</p>
<p>This is the problem:</p>
<p>>             ERROR:Language model type unknown. Probably not compiled<br />
> into library</p>
<p>You need to compile with irstlm in order to use a binarised language model.</p>
<p>See here for instructions:</p>
<p>http://www.statmt.org/moses/?n=Development.GetStarted</p>
<p>regards<br />
Barry</p>
<p><strong>Re:[Moses-support] Tuning failure with &#8220;Language model type unknown.&#8221;</strong></p>
<p>Hi,<br />
It was resolved by removing the lm-binarizer option in the config file.<br />
Thanks for your answer,</p>
<p>Ronan</p>
<p><em>NOTICE:This is digested from the Moses-support mailing list, which supports for the moses SMT decoder.</em></p>


<p>Related posts:<ol><li><a href='http://www.52nlp.com/moses-support-digest-tuning-tree-based-models/' rel='bookmark' title='Permanent Link: Moses Support Digest:tuning tree-based models'>Moses Support Digest:tuning tree-based models</a></li>
<li><a href='http://www.52nlp.com/moses-digest-building-pos-language-model-with-srilm/' rel='bookmark' title='Permanent Link: Moses Support Digest:Building POS language model with SRILM'>Moses Support Digest:Building POS language model with SRILM</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-seems-to-hang/' rel='bookmark' title='Permanent Link: Moses Support Digest: Moses seems to hang'>Moses Support Digest: Moses seems to hang</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-confusionnet-getsubstring-error-when-using-lattice-with-utf8-input/' rel='bookmark' title='Permanent Link: Moses Support Digest:ConfusionNet GetSubString error when using lattice with UTF8 input'>Moses Support Digest:ConfusionNet GetSubString error when using lattice with UTF8 input</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-irstlm-memory-racing-with-5-gram-lm/' rel='bookmark' title='Permanent Link: Moses Support Digest:  moses-irstlm memory racing with 5-gram lm'>Moses Support Digest:  moses-irstlm memory racing with 5-gram lm</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-threads-compilation-problem-with-randlm/' rel='bookmark' title='Permanent Link: Moses Support Digest:moses threads compilation problem with RandLM'>Moses Support Digest:moses threads compilation problem with RandLM</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-giza-error/' rel='bookmark' title='Permanent Link: Moses Support Digest:GIZA++ error'>Moses Support Digest:GIZA++ error</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest/' rel='bookmark' title='Permanent Link: Moses Support Digest: moses install on 64-bit'>Moses Support Digest: moses install on 64-bit</a></li>
<li><a href='http://www.52nlp.com/cannot-find-loolm/' rel='bookmark' title='Permanent Link: Moses Support Digest: cannot find -loolm'>Moses Support Digest: cannot find -loolm</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-error-compiling-on-linux/' rel='bookmark' title='Permanent Link: Moses Support Digest:Error compiling on Linux'>Moses Support Digest:Error compiling on Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.52nlp.com/moses-support-digest-tuning-failure-with-language-model-type-unknown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moses Support Digest:Building POS language model with SRILM</title>
		<link>http://www.52nlp.com/moses-digest-building-pos-language-model-with-srilm/</link>
		<comments>http://www.52nlp.com/moses-digest-building-pos-language-model-with-srilm/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 12:52:10 +0000</pubDate>
		<dc:creator>52nlp</dc:creator>
				<category><![CDATA[Moses]]></category>
		<category><![CDATA[SMT]]></category>
		<category><![CDATA[language model]]></category>
		<category><![CDATA[moses]]></category>
		<category><![CDATA[POS]]></category>
		<category><![CDATA[SRILM]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://www.52nlp.com/?p=83</guid>
		<description><![CDATA[[Moses-support] Building POS language model with SRILM Hi, The Moses manual recommends using the following switches when building a language model with SRILM: 　　-interpolate -kndiscount I assume this recommendation applies specifically to surface-string language models. For a part-of-speech language model, &#8230; <a href="http://www.52nlp.com/moses-digest-building-pos-language-model-with-srilm/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://www.52nlp.com/moses-support-digest-pos-lm/' rel='bookmark' title='Permanent Link: Moses Support Digest:POS LM'>Moses Support Digest:POS LM</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-tuning-failure-with-language-model-type-unknown/' rel='bookmark' title='Permanent Link: Moses Support Digest:Tuning failure with Language model type unknown'>Moses Support Digest:Tuning failure with Language model type unknown</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-binarized-srilm/' rel='bookmark' title='Permanent Link: Moses Support Digest:Binarized SRILM'>Moses Support Digest:Binarized SRILM</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-about-the-hierarchical-model-of-moses/' rel='bookmark' title='Permanent Link: Moses Support Digest:About the hierarchical model of Moses'>Moses Support Digest:About the hierarchical model of Moses</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-srilm-installation-problem/' rel='bookmark' title='Permanent Link: Moses Support Digest:SRILM installation problem'>Moses Support Digest:SRILM installation problem</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-aligned-phrase-counts/' rel='bookmark' title='Permanent Link: Moses Support Digest:Aligned phrase counts'>Moses Support Digest:Aligned phrase counts</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-different-bleu-scores-from-nist-and-moses-scripts/' rel='bookmark' title='Permanent Link: Moses Support Digest: different bleu scores from nist and moses scripts'>Moses Support Digest: different bleu scores from nist and moses scripts</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-translation-from-english-to-foreign-language/' rel='bookmark' title='Permanent Link: Moses Support Digest:Translation from English to Foreign Language'>Moses Support Digest:Translation from English to Foreign Language</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-is-reordering-model-a-must-be-used-component-to-use/' rel='bookmark' title='Permanent Link: Moses Support Digest:Is reordering model a must-be-used component to use?'>Moses Support Digest:Is reordering model a must-be-used component to use?</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-seems-to-hang/' rel='bookmark' title='Permanent Link: Moses Support Digest: Moses seems to hang'>Moses Support Digest: Moses seems to hang</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>[Moses-support] Building POS language model with SRILM </strong><br />
Hi,<br />
The Moses manual recommends using the following switches when building a language model with SRILM:<br />
  　　-interpolate -kndiscount<br />
I assume this recommendation applies specifically to surface-string language models.  For a part-of-speech language model, KN-discounting is inappropriate because it is based on counts-of-counts, and the counts-of-counts for POSes are odd in that there are very few POSes that occur only once or twice in a given corpus.<br />
Are there particular switches that are recommended for building a POS<br />
language model with SRILM?<br />
Regards,<br />
Ben Gottesman<br />
<span id="more-83"></span><br />
<!--adsense--><br />
<strong>Re: [Moses-support] Building POS language model with SRILM </strong></p>
<p>Hi,<br />
you are correct that for POS LMs the lower order n-gram counts are very different and smoothing is less relevant.<br />
You could train a 7-gram LM with Good Turing smoothing for the lower order n-grams and Kneser-Ney for the higher order n-grams.<br />
I have done this occasionally.</p>
<p>-phi</p>
<p>NOTICE:This is digested from the Moses-support mailing list, which supports for the moses SMT decoder.</p>


<p>Related posts:<ol><li><a href='http://www.52nlp.com/moses-support-digest-pos-lm/' rel='bookmark' title='Permanent Link: Moses Support Digest:POS LM'>Moses Support Digest:POS LM</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-tuning-failure-with-language-model-type-unknown/' rel='bookmark' title='Permanent Link: Moses Support Digest:Tuning failure with Language model type unknown'>Moses Support Digest:Tuning failure with Language model type unknown</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-binarized-srilm/' rel='bookmark' title='Permanent Link: Moses Support Digest:Binarized SRILM'>Moses Support Digest:Binarized SRILM</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-about-the-hierarchical-model-of-moses/' rel='bookmark' title='Permanent Link: Moses Support Digest:About the hierarchical model of Moses'>Moses Support Digest:About the hierarchical model of Moses</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-srilm-installation-problem/' rel='bookmark' title='Permanent Link: Moses Support Digest:SRILM installation problem'>Moses Support Digest:SRILM installation problem</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-aligned-phrase-counts/' rel='bookmark' title='Permanent Link: Moses Support Digest:Aligned phrase counts'>Moses Support Digest:Aligned phrase counts</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-different-bleu-scores-from-nist-and-moses-scripts/' rel='bookmark' title='Permanent Link: Moses Support Digest: different bleu scores from nist and moses scripts'>Moses Support Digest: different bleu scores from nist and moses scripts</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-translation-from-english-to-foreign-language/' rel='bookmark' title='Permanent Link: Moses Support Digest:Translation from English to Foreign Language'>Moses Support Digest:Translation from English to Foreign Language</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-is-reordering-model-a-must-be-used-component-to-use/' rel='bookmark' title='Permanent Link: Moses Support Digest:Is reordering model a must-be-used component to use?'>Moses Support Digest:Is reordering model a must-be-used component to use?</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-seems-to-hang/' rel='bookmark' title='Permanent Link: Moses Support Digest: Moses seems to hang'>Moses Support Digest: Moses seems to hang</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.52nlp.com/moses-digest-building-pos-language-model-with-srilm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

