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 <[email protected]> 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 <[email protected]> > 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 >> [email protected] >> http://mailman.mit.edu/mailman/listinfo/moses-support >> >> > > _______________________________________________ > Moses-support mailing list > [email protected] > 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
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
