You want to embed the input in a shell script, and feed it to stdin of
moses?
moses -f ... <<EOF
hello
EOF
http://stackoverflow.com/questions/2500436/how-does-cat-eof-work-in-bash#2500451
On 09.10.2015 06:57, Apurva Joshi wrote:
> hello guyzz...i have designed SMT using moses for English-hindi ....i
> use following command to run this...
>
> ~/mosesdecoder-RELEASE-3.0/bin/moses -f ~/working/train/model/moses.ini
>
> after running above command...my LM, TM starts loading...
> and then i type english word...and i get corresponding op hindi
> translation...
>
> and it continously remains in that mode...means it does not go back to
> linux prompt '$' ....
> m attaching snapshot of op when i run above command...
>
> but then it continuously remain into it..so if i write following
> script pgm...then....
>
> #!/bin/bash
> ~/mosesdecoder-RELEASE-3.0/bin/moses -f ~/working/train/model/moses.ini
> hello
>
>
>
> in above script it runs fst moses command....but then scrpit cant
> accept hello as input for hindi conversion....
>
>
> plzzz tell me how to solve this pbm...i hv one command which takes
> english file as input and gives hindi op file...
> but evry time it loads LM ,TM like above..and gives file as op...
>
> but i want to run my fst initially above mentioned command so that
> after i should be able to give ip at any no of time...it should not
> load LM,TM for each ip....
>
>
> plzzz help...and plzz reply on same email id...
>
> [email protected] <mailto:[email protected]>
>
> guyzz m really waiting for ur help....
>
>
>
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support