Moses-support Digest, Vol 108, Issue 52

Send Moses-support mailing list submissions to
moses-support@mit.edu

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
moses-support-request@mit.edu

You can reach the person managing the list at
moses-support-owner@mit.edu

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 <apurvajoshi1992@gmail.com>
Subject: [Moses-support] how to copy output of moses.ini into text
output file...
To: moses-support@mit.edu
Message-ID:
<CAMfCXbUKQ+NDc-oLZoTphOo5_h7yaZ3LSpm64Gb4bmFvsy0y=g@mail.gmail.com>
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

apurvajoshi1992@gmail.com
-------------- 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 <moses@kheafield.com>
Subject: Re: [Moses-support] how to copy output of moses.ini into text
output file...
To: moses-support@mit.edu
Message-ID: <561FA714.50304@kheafield.com>
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
>
> apurvajoshi1992@gmail.com <mailto:apurvajoshi1992@gmail.com>
>
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support
>


------------------------------

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


End of Moses-support Digest, Vol 108, Issue 52
**********************************************

0 Response to "Moses-support Digest, Vol 108, Issue 52"

Post a Comment