<div dir="ltr">Thanks a lot Andreas. It's very clear.<div><br></div><div>Best</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-11 19:23 GMT+01:00 Andreas Stolcke <span dir="ltr"><<a href="mailto:stolcke@icsi.berkeley.edu" target="_blank">stolcke@icsi.berkeley.edu</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 6/11/2014 11:07 AM, kamel nebhi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Andreas, it works. But it's very slow.<br>
But it seems that the STDIN argument is slower than File argument...<br>
Is it just an feeling or is there anything to do to solve it ?<br>
</blockquote></div>
There is no reason it should be slower.<br>
<br>
Of course if you invoke the disambig tool for every line of input then you're going to incur startup overhead (reading the LM for one thing) over and over, and that's going to make it slow.<br>
<br>
If you want to generate input lines with "echo" then you need to take care to invoke disamig only once, e.g.,<br>
<br>
while true<br>
do<br>
echo "a line of input"<br>
<br>
# check whether to break the loop etc.<br>
<br>
done | disambig -text - other options ....<br>
<br>
Hope this helps,<br>
<br>
Andreas<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><pre cols="72" style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Kamel Nebhi
<span style="color:rgb(0,0,0);font-size:12px;white-space:normal">Visiting Academics - PhD student</span>
<span style="color:rgb(0,0,0);font-size:12px;white-space:normal">Room G35</span>
<span style="color:rgb(0,0,0);font-size:12px;white-space:normal">Department of Computer Science</span>
University of Sheffield
UK
<br></font></pre></div>
</div>