Hi Duygu

The only documentation on moses server is here:
http://www.statmt.org/moses/?n=Moses.AdvancedFeatures#ntoc23
There are several Moses tutorials on the Moses website, and you should 
also be able to find something on using xml-rpc from python.

To run the moses server, yes you just need to give it the port number 
(and optionally a log file), and of course the moses model. You stop it 
with ctrl-C.

The python code you have below looks ok, but I'm not familiar with 
xmlrpclib - have you tried the code?

cheers  - Barry



On 06/08/12 22:07, DUYGU ARALIOGLU wrote:
> Hi,
> I think I have successfully installed the moses, all the executables
> present in the bin directory. I have also tested it with the sample
> models, and it works fine. However I have some problems with the
> mosesserver. I guess I should start the server with the port and log
> arguments, but before that do I need to do something else? I have a
> python script for my project and I just need it to work fine. Script is
> something like that:
>
> ################################
> ################################
> proxy = xmlrpclib.ServerProxy("http://localhost:8080/RPC2";)
> .................
> .................
> .................
> for s in sents:
>       param = {"text": s}
>       result = proxy.translate(param)
>       translated_text = "%s %s" % (translated_text, result['text'])
> ################################
> ################################
>
> And after succesfull execution of the script, how am I going to stop
> the server? Btw, I am new to moses and I do not have enough time to
> learn it in detail and can you suggest me any quick tutorial for moses
> using(especially for the mosesserver)?
>
> Thank you for your effort...
>
> Duygu
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to