<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 6/11/2014 6:00 AM, kamel nebhi
wrote:<br>
</div>
<blockquote
cite="mid:CAG66Y3etSVtXOvQ43tdZzW7zWUGVQgGO_KqkHt+u_L=Ge1nSzA@mail.gmail.com"
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>
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
cite="mid:CAG66Y3etSVtXOvQ43tdZzW7zWUGVQgGO_KqkHt+u_L=Ge1nSzA@mail.gmail.com"
type="cite">
<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 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>