<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 7/26/2012 2:00 PM, xinrui yu wrote:<br>
</div>
<blockquote
cite="mid:CAA7LVm_fT-mgtVt_49jnAKEotuKmS8JBQMOdXWxN06ohrymXNw@mail.gmail.com"
type="cite">Hi All,<br>
I'm new to srilm and I have some questions about finding nbest
result by using srilm.<br>
I try Srilm by the command "./lattice-tool -read-htk -in-lattice
test.lat -nbest-decode 10 -out-nbest-dir my_nbest_dir". I indeed
get 10 results. But are the result placed in order? I read from
manual page said that they are placed in order by default, I think
they should placed according to the score (combine the acoustic
and lm score) in front of it. But from what i have get, it's not.
Am I misunderstanding something? <br>
</blockquote>
The output is sorted by score. You are probably not considering
the way that the combined score is computed.<br>
You need to take the acoustic score, and added the weighted LM score
and word insertion penalty. The LM weight and insertion penalties
might have default values encoded in the lattices. You can override
them on the command line. <br>
You might get the output you expect by using -htk-lm-scale 1 and
-htk-wdpenalty 0, but that will probably not be the best result in
terms of word error. <br>
<br>
<blockquote
cite="mid:CAA7LVm_fT-mgtVt_49jnAKEotuKmS8JBQMOdXWxN06ohrymXNw@mail.gmail.com"
type="cite">
<br>
I also notice that there are another command callled
"nbest-lattice". I try to use it as well but it seems it does not
accept HTK lattice. So could it be used to find nbest result. And
what's the different bettwen lattice-tool and nbest-lattice? How
to decide which one should be used?<br>
</blockquote>
nbest-lattice takes nbest lists as INPUT and constructs a special
type of lattice representing word posterior probabilities.<br>
So it is not what you need.<br>
<blockquote
cite="mid:CAA7LVm_fT-mgtVt_49jnAKEotuKmS8JBQMOdXWxN06ohrymXNw@mail.gmail.com"
type="cite">
<br>
Another question is that I read from manual page there is one
option called <b>-nbest-backtrace </b>which could preserve
word-level timemarks and scores. Is there similar option for
lattice tool? What if I want to keep those information while using
lattice-tool?<br>
</blockquote>
No, sorry.<br>
<br>
Andreas<br>
<br>
<blockquote
cite="mid:CAA7LVm_fT-mgtVt_49jnAKEotuKmS8JBQMOdXWxN06ohrymXNw@mail.gmail.com"
type="cite">
<br>
Thanks!<br>
<br>
Liz<br>
<br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SRILM-User site list
<a class="moz-txt-link-abbreviated" href="mailto:SRILM-User@speech.sri.com">SRILM-User@speech.sri.com</a>
<a class="moz-txt-link-freetext" href="http://www.speech.sri.com/mailman/listinfo/srilm-user">http://www.speech.sri.com/mailman/listinfo/srilm-user</a></pre>
</blockquote>
<br>
</body>
</html>