Moses-support Digest, Vol 108, Issue 50

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. Re: how to run moses through shell script in linux (Hieu Hoang)
2. Re: how to run moses through shell script in linux (Anoop (?????))
3. Re: how to run moses through shell script in linux
(njoshi.in@gmail.com)


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

Message: 1
Date: Wed, 14 Oct 2015 11:57:36 +0100
From: Hieu Hoang <hieuhoang@gmail.com>
Subject: Re: [Moses-support] how to run moses through shell script in
linux
To: Apurva Joshi <apurvajoshi1992@gmail.com>
Cc: moses-support <moses-support@mit.edu>, Philipp Koehn <phi@jhu.edu>
Message-ID:
<CAEKMkbimWikBms9vsDSN54XC5Hpi4Afk=_Y_vvv6ZuD9uE7+3Q@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

You need a named pipe.
mkfifo np
tail -f np | .../moses -f moses.ini

To translate in another window
echo "bonjour" > np
echo "une autre fois" > np

ps. this is not safe for many concurrent users


Hieu Hoang
http://www.hoang.co.uk/hieu

On 14 October 2015 at 10:06, Apurva Joshi <apurvajoshi1992@gmail.com> wrote:

> hi philipp
>
> i already knw above command...i executed this command through shell
> script...but if i use file....then moses will converts only those words
> which are in file....but in real time when i want to input any no of
> english words...then in that case file is not good option....in my previous
> posts...i have mentioned that when i run moses.ini....it loads its big
> table....after loading , my linux prompt goes out..(it enters into
> moses...)....it asks for input from user...we give it...nd moses gives us
> translation...again it waits for next ip....this process conitinues till i
> press control + c to quit it and go back to my linux prompt...
>
> in file case...using above command, it will give translation of only words
> in file...then it will quit...and i come back to my linux prompt...bcoz it
> doesnt waits for next ip conitnously....nw suppose i created another txt
> file for new more words....then again...it will loads...and translate only
> words in file....so guyzzz
>
>
> finally.....what i have decided is....to use multi threading concept.....
>
> i will write following logic in script file
>
> generate new terminal ...load moses.ini...===> ..after this new terminal
> will be generated and moses will load there and then linux prompt will
> gone...as i said above this moses will waits for ip word(eg "hello")....
>
> now i will give this "hello" from parent terminal to child terminal ....so
> scenario is m giving ip words from parent ...and child is accepting it in
> real time nd will gv conversion.....
>
>
> in short...i want to avoid loading of moses for each file....
>
> plzz guyzz help....
>
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20151014/ac665abd/attachment-0001.html

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

Message: 2
Date: Wed, 14 Oct 2015 16:36:57 +0530
From: Anoop (?????) <anoop.kunchukuttan@gmail.com>
Subject: Re: [Moses-support] how to run moses through shell script in
linux
To: Apurva Joshi <apurvajoshi1992@gmail.com>
Cc: moses-support <moses-support@mit.edu>
Message-ID:
<CADXxMYcQ0kcF1NtTsRu5DddidBREPBoaMYy6x5BoyW6Q7ng+pQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

If the input doesn't necessarily have to be through files, you can use the
*mosesserver*, where you can get translations via a XML-RPC call

Regards
Anoop

On Wed, Oct 14, 2015 at 4:27 PM, Hieu Hoang <hieuhoang@gmail.com> wrote:

> You need a named pipe.
> mkfifo np
> tail -f np | .../moses -f moses.ini
>
> To translate in another window
> echo "bonjour" > np
> echo "une autre fois" > np
>
> ps. this is not safe for many concurrent users
>
>
> Hieu Hoang
> http://www.hoang.co.uk/hieu
>
> On 14 October 2015 at 10:06, Apurva Joshi <apurvajoshi1992@gmail.com>
> wrote:
>
>> hi philipp
>>
>> i already knw above command...i executed this command through shell
>> script...but if i use file....then moses will converts only those words
>> which are in file....but in real time when i want to input any no of
>> english words...then in that case file is not good option....in my previous
>> posts...i have mentioned that when i run moses.ini....it loads its big
>> table....after loading , my linux prompt goes out..(it enters into
>> moses...)....it asks for input from user...we give it...nd moses gives us
>> translation...again it waits for next ip....this process conitinues till i
>> press control + c to quit it and go back to my linux prompt...
>>
>> in file case...using above command, it will give translation of only
>> words in file...then it will quit...and i come back to my linux
>> prompt...bcoz it doesnt waits for next ip conitnously....nw suppose i
>> created another txt file for new more words....then again...it will
>> loads...and translate only words in file....so guyzzz
>>
>>
>> finally.....what i have decided is....to use multi threading concept.....
>>
>> i will write following logic in script file
>>
>> generate new terminal ...load moses.ini...===> ..after this new terminal
>> will be generated and moses will load there and then linux prompt will
>> gone...as i said above this moses will waits for ip word(eg "hello")....
>>
>> now i will give this "hello" from parent terminal to child terminal
>> ....so scenario is m giving ip words from parent ...and child is accepting
>> it in real time nd will gv conversion.....
>>
>>
>> in short...i want to avoid loading of moses for each file....
>>
>> plzz guyzz help....
>>
>>
>> _______________________________________________
>> 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
>
>


--
I claim to be a simple individual liable to err like any other fellow
mortal. I own, however, that I have humility enough to confess my errors
and to retrace my steps.

http://flightsofthought.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20151014/ea558a1a/attachment-0001.html

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

Message: 3
Date: Wed, 14 Oct 2015 19:28:47 +0530
From: "njoshi.in@gmail.com" <njoshi.in@gmail.com>
Subject: Re: [Moses-support] how to run moses through shell script in
linux
To: Apurva Joshi <apurvajoshi1992@gmail.com>
Cc: moses-support@mit.edu
Message-ID: <o71l492jnytvtgf71bcmx5sj.1444831127918@email.android.com>
Content-Type: text/plain; charset="utf-8"

from your previous mails i gather that you were having an issue of loading translation model in the memory everytime you sent a fresh set of input sentences.

so to resolve this you need to run you phrase and reordering table from disk. Have you seen the manual for this or as suggested by anoop if you can run a moses server then also might be able to solve the problem

regards
nisheeth

Sent from my ASUS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20151014/b11529be/attachment-0001.html

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

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


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

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

Post a Comment