hi kenneth, m not getting what u said about to use socat..... is there any moses api libraries available so that we can run moses and its command through C program or through shell script...
my problem is i am not getting how to redirect translated output to text file...i have been working on this problem from last 4 days still not getting any way to generate output txt file to further integrate this output text file as ip to my next design.... i know tthis command moses -f moses.ini <ip_file> op_file... plz tell me other than this... plzz helpp...and reply on same id... [email protected] On Thu, Oct 15, 2015 at 9:31 PM, <[email protected]> wrote: > Send Moses-support mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.mit.edu/mailman/listinfo/moses-support > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Moses-support digest..." > > > Today's Topics: > > 1. how to copy output of moses.ini into text output file... > (Apurva Joshi) > 2. Re: how to copy output of moses.ini into text output file... > (Kenneth Heafield) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 15 Oct 2015 18:24:39 +0530 > From: Apurva Joshi <[email protected]> > Subject: [Moses-support] how to copy output of moses.ini into text > output file... > To: [email protected] > Message-ID: > <CAMfCXbUKQ+NDc-oLZoTphOo5_h7yaZ3LSpm64Gb4bmFvsy0y= > [email protected]> > Content-Type: text/plain; charset="utf-8" > > my logic is > > load moses.ini > give input word (eg "hello") through stdin > redirect translated op from stdout to txt file... > again user ask wanna continue?? if yes...gv ip...and above process repeats > ...otherwise...stop > > > > how can i write this through shell script.... > > pllzzzzz help > and > reply on same id > > [email protected] > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mailman.mit.edu/mailman/private/moses-support/attachments/20151015/ed5a72ca/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Thu, 15 Oct 2015 14:16:04 +0100 > From: Kenneth Heafield <[email protected]> > Subject: Re: [Moses-support] how to copy output of moses.ini into text > output file... > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=windows-1252 > > Hi, > > You can implement this (and much much more) by reading: > > - http://www.dest-unreach.org/socat/ > > - man bash > > In the UNIX philosophy, it's Moses's responsibility to be awesome at > going from stdin to stdout, some other tool's responsibility to do > things with stdin and stdout, and your responsibility to mix them. > > Read up on socat and you can make Moses be a TCP server or UNIX socket > server. Read man bash and you can do everything you're asking for. > > Kenneth > > On 10/15/2015 01:54 PM, Apurva Joshi wrote: > > my logic is > > > > load moses.ini > > give input word (eg "hello") through stdin > > redirect translated op from stdout to txt file... > > again user ask wanna continue?? if yes...gv ip...and above process > > repeats ...otherwise...stop > > > > > > > > how can i write this through shell script.... > > > > pllzzzzz help > > and > > reply on same id > > > > [email protected] <mailto:[email protected]> > > > > > > _______________________________________________ > > 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 > > > End of Moses-support Digest, Vol 108, Issue 52 > ********************************************** >
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
