Thank You<br><br><br><div class="gmail_quote">On Wed, Jun 6, 2012 at 11:27 PM, Andreas Stolcke <span dir="ltr"><<a href="mailto:stolcke@icsi.berkeley.edu" target="_blank">stolcke@icsi.berkeley.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 6/6/2012 3:36 AM, Shammur Absar Chowdhury wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank You sir for your help.<br>
<br>
I have actually another very silly question.<br>
After I get the probability distribution over word, I build another language model and when I try to find difference between my previous LM (where I used my class definition with no [p] value) and my recently created LM , I found no difference.<br>

<br>
I might have a understanding problem in basic theory [as just read about it in books] or am I doing anything wrong in the step.<br>
<br>
My recent steps that I am following:<br>
<br>
[1] replace-words-with-classes classes=atis_sphinx.def addone=1 normalize=1 outfile=countExpansion compound_LM.txt<br>
<br>
[2] replace-words-with-classes classes=countExpansion compound_LM.txt > output_text_with_classes<br>
</blockquote></div>
Verify the output of these two steps.   Do the class definitions and modified text look okay?<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
[3] ngram-count  -text output_text_with_classes classes=countExpansion   -lm class_based_model_2.lm<br>
<br>
also tried  ngram-count  -text output_text_with_classes   -lm class_based_model_2.lm<br>
</blockquote></div>
The second form is correct.   There is no need to specify the class definitions with ngram-count.<br>
<br>
You should be able to use the final LM using<br>
<br>
    ngram -lm class_based_model_2.lm -classes countExpansion  (...other options ...)<span class="HOEnZb"><font color="#888888"><br>
<br>
Andreas<br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Shammur Absar Chowdhury<br><br>