the
/web
subproject in the moses source code should give you a good example. The
subproject creates a persistent process to translate incoming web queries.
the alternative is to write a c++ program which calls the decoder directly.
The decoder is implemented as a library to enable you to do just that.
Hieu Hoang
www.hoang.co.uk/hieu
_____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Panagiotis Kanavos
Sent: 18 September 2008 22:33
To: [email protected]; Marcello Federico
Subject: Re: [Moses-support] keep lm and phrase table in memory
Thanks for your reply. I installed these programs and (partially) connected
the 2 systems. However, I can't find much documentation so I can use them
properly, that is send the input from the local machine to moses in the
server and then have it back translated while moses waits for the next
sentence.
On the local machine, I used sth like
hose ServerName port_number --in sometext .
and on the server I used sth like
faucet port_number --out --verbose moses -f /path/to/moses.ini -i .
When I ran the command from the local machine, moses on the server indeed
started loading the tables in memory but I didn't receive any output, either
on the server or on the local machine. I know I miss a lot of things so if
you, or anyone else, know how to use these programs I would appreciate your
advice.
Thank you.
Panagiotis
_____
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]; [email protected]
> Date: Thu, 18 Sep 2008 14:15:30 +0200
> Subject: RE: [Moses-support] keep lm and phrase table in memory
>
> Hi,
>
> Moses can be read text line-by-line from stdin and output translation to
stdout. Hence,
> it should be very simple to set-up a client/server architecture through
the hose/faucet
> linux commands.
>
> -- Marcello
>
> __________
> From: [EMAIL PROTECTED] [EMAIL PROTECTED] On
Behalf Of Panos [EMAIL PROTECTED]
> Sent: Thursday, September 18, 2008 2:04 PM
> To: [email protected]
> Subject: [Moses-support] keep lm and phrase table in memory
>
> Hello,
>
> Is there a way to keep the language model and the phrase table in memory
without running the decoder? I am trying to connect moses to an external
application so that I can feed sentences for translation whenever I want.
However, having to load the lm and the phrase table into memory for every
single sentence I send is very time consuming. Moses runs on a Ubuntu Hardy
64bit server with 8GB of memory.
>
> Thank you.
>
> Panagiotis Kanavos
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support