[SRILM User List] stdin and disambig tool

kamel nebhi k.nebhi at sheffield.ac.uk
Wed Jun 11 11:07:13 PDT 2014


Thanks Andreas, it works. But it's very slow.
But it seems that the STDIN argument is slower than File argument...
Is it just an feeling or is there anything to do to solve it ?

Best


2014-06-11 17:11 GMT+01:00 Andreas Stolcke <stolcke at icsi.berkeley.edu>:

>  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 NebhiVisiting Academics - PhD studentRoom G35Department of Computer Science
> University of Sheffield
> UK
>
>
>
>
> _______________________________________________
> SRILM-User site listSRILM-User at speech.sri.comhttp://www.speech.sri.com/mailman/listinfo/srilm-user
>
>
>


-- 

Kamel NebhiVisiting Academics - PhD studentRoom G35Department of
Computer Science
University of Sheffield
UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20140611/eebb07f7/attachment.html>


More information about the SRILM-User mailing list