[SRILM User List] stdin and disambig tool

Andreas Stolcke stolcke at icsi.berkeley.edu
Wed Jun 11 09:11:57 PDT 2014


On 6/11/2014 6:00 AM, kamel nebhi wrote:
> Hello,
>
> 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:
>
> /cat <<< "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 /
>
> and
> /
> /
> /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/
>
> How can i do  ?
>
You need use "-"  as the argument to the option for specifying the input 
file:

     echo hello | disambig -text -  [other options ...]

Andreas

> Best
>
> -- 
> Kamel Nebhi
> Visiting Academics - PhD student
> Room G35
> Department of Computer Science
> University of Sheffield
> UK
>
>
>
> _______________________________________________
> SRILM-User site list
> SRILM-User at speech.sri.com
> http://www.speech.sri.com/mailman/listinfo/srilm-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20140611/c7d20046/attachment.html>


More information about the SRILM-User mailing list