<div dir="ltr">Thanks Andreas, it works. But it's very slow. <div>But it seems that the STDIN argument is slower than File argument...</div><div>Is it just an feeling or is there anything to do to solve it ?<br><div><br>
</div></div><div>Best</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-11 17:11 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 bgcolor="#FFFFFF" text="#000000"><div class="">
<div>On 6/11/2014 6:00 AM, kamel nebhi
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello,</span>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">I'm
trying to use the disambig tool but instead of having a file
as an argument, i need to send string to STDIN. I try this but
it doesn't work:</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<p><i>cat <<< "hello" | disambig -lm
/Users/home/Truecaser_Joshua/model/lm/training.5gram.europarl.lm
-keep-unk -order 5 -map /Users/</i><i>home</i><i>/Truecaser_Joshua/model/lm/true-case.map </i></p>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">and </div>
<div style="font-family:arial,sans-serif;font-size:13px"><i><br>
</i></div>
<div style="font-family:arial,sans-serif;font-size:13px"><i>echo
"hello" | disambig -lm
/Users/home/Truecaser_Joshua/model/lm/training.5gram.europarl.lm
-keep-unk -order 5 -map
/Users/home/Truecaser_Joshua/model/lm/true-case.map</i><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">How can
i do ?</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
</div>
</blockquote></div>
You need use "-" as the argument to the option for specifying the
input file:<br>
<br>
echo hello | disambig -text - [other options ...]<br>
<br>
Andreas<br>
<br>
<blockquote type="cite"><div class="">
<div dir="ltr">
<div style="font-family:arial,sans-serif;font-size:13px">
Best</div>
<div><br>
</div>
-- <br>
<div dir="ltr">
<pre style="white-space:pre-wrap" cols="72"><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
</font></pre>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div><pre>_______________________________________________
SRILM-User site list
<a href="mailto:SRILM-User@speech.sri.com" target="_blank">SRILM-User@speech.sri.com</a>
<a href="http://www.speech.sri.com/mailman/listinfo/srilm-user" target="_blank">http://www.speech.sri.com/mailman/listinfo/srilm-user</a></pre>
</blockquote>
<br>
</div>
</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>