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: Moses as a service... (Mathias M?ller)
2. Re: Moses as a service... (Hieu Hoang)
3. Re: differences between moses and moses2 output (Vito Mandorino)
----------------------------------------------------------------------
Message: 1
Date: Thu, 29 Sep 2016 11:05:29 +0200
From: Mathias M?ller <mathias.mueller@uzh.ch>
Subject: Re: [Moses-support] Moses as a service...
To: Raymond Monette <rmonette@ubiqus.com>
Cc: moses-support <moses-support@mit.edu>
Message-ID:
<CAF2XUm3cW_LbH1bOG=f+svDbZ897RbsrG97cJR=YBA=ZOuQkvQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi Raymond
On Thu, Sep 29, 2016 at 12:07 AM, Raymond Monette <rmonette@ubiqus.com>
wrote:
> ?This can be launched using the same command-line arguments as moses, with
> two additional arguments to specify the listening port and log-file (
> --server-port and --server-log). These default to 8080 and /dev/null
> respectively.?
>
>
>
> Would it be possible to get a full command line example please? Or
> something that illustrates/confirms that the ?as a service? component
> runs/works. I tried this, but Im sure Im not getting something.
>
> mosesdecoder/bin/moses -f phrase-model/moses.ini < phrase-model/in > out --server-port
> 8080 --server-log /dev/null
>
To start a Moses server you can either use the "mosesserver" binary which
by now is nothing more than an empty wrapper for "moses":
*$ mosesserver -f /path/to/moses.ini*
or start the "usual" Moses with the "--server" option:
*$ moses --server -f /path/to/moses.ini*
Port 8080 might already be in use, in which case you have to run the server
on another port.
And here is how to find out whether the server works: first of all, if it
outputs "Listening on port 12345" at the end of startup, then usually this
means the server is working. Testing translations is not done from the
command line, because the point of using Mosesserver is that clients
request translations with XML-RPC. You test it by writing a few lines of
code in your favourite programming language that, preferably, has an
XML-RPC library.
In Python, for example, the code could look like
*# the Python implementation of XML-RPC*
*import xmlrpclib*
*# if the client is on the same machine and the --server-port is 12345*
*url = 'http://localhost:12345/RPC2 <http://localhost:12345/RPC2>'*
*# verbose prints the actual XML-RPC request and answer, have a look*
*server = xmlrpclib.ServerProxy(url, verbose=True)*
*# request the translation of a single sentence*
*server.translate({"text": "das ist ein kleines haus")*
Regards
Mathias
?
Mathias M?ller
AND-2-20
Institute of Computational Linguistics
University of Zurich
+41 44 635 75 81
mathias.mueller@uzh.ch
> I haven?t tried the perl client script yet. Id eventually like to invoke
> maas via a web service, which I can build pretty easily on the Windows
> side.
>
>
>
> On a side note: Id like to contribute if possible? Im pretty decent and
> verbose when it comes to documenting stuff, but am not a Linux expert. If
> someone is willing to review my stuff I could send some docs. So far, Ive
> just documented stuff for Ubuntu 16.04? The challenge for me was
> understanding where things are supposed to go (ie root folders for
> installations, etc?)
>
>
>
> Any clarifications would be appreciated.
>
>
>
> Thanks
>
> R
>
> _______________________________________________
> 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/20160929/a029b8df/attachment-0001.html
------------------------------
Message: 2
Date: Thu, 29 Sep 2016 10:19:30 +0100
From: Hieu Hoang <hieuhoang@gmail.com>
Subject: Re: [Moses-support] Moses as a service...
To: Raymond Monette <rmonette@ubiqus.com>
Cc: moses-support <moses-support@mit.edu>
Message-ID:
<CAEKMkbhNBzCtxn1CwsQaKyyBm+kKkL1z0Q+kn4wBdUf9JJaBmA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hieu Hoang
http://www.hoang.co.uk/hieu
On 28 September 2016 at 23:07, Raymond Monette <rmonette@ubiqus.com> wrote:
> Ive managed to install and get a Moses instance up and running on Ubuntu
> 16.04. Im at the testing point and things work as documented. Ive compiled
> it via bjam with these switches: boost, xmlrpc, cmph, irstlm. Mgiza is up
> and running as well.
>
>
>
> Im pretty confused about how to test the moses as a service (maas)
> component though. This link does not provide much clarity?
> http://www.statmt.org/moses/?n=Advanced.Moses
>
>
>
> ?This can be launched using the same command-line arguments as moses, with
> two additional arguments to specify the listening port and log-file (
> --server-port and --server-log). These default to 8080 and /dev/null
> respectively.?
>
>
>
> Would it be possible to get a full command line example please? Or
> something that illustrates/confirms that the ?as a service? component
> runs/works. I tried this, but Im sure Im not getting something.
>
> mosesdecoder/bin/moses -f phrase-model/moses.ini < phrase-model/in > out --server-port
> 8080 --server-log /dev/null
>
>
>
> I haven?t tried the perl client script yet. Id eventually like to invoke
> maas via a web service, which I can build pretty easily on the Windows
> side.
>
>
>
> On a side note: Id like to contribute if possible? Im pretty decent and
> verbose when it comes to documenting stuff, but am not a Linux expert. If
> someone is willing to review my stuff I could send some docs. So far, Ive
> just documented stuff for Ubuntu 16.04? The challenge for me was
> understanding where things are supposed to go (ie root folders for
> installations, etc?)
>
thanks for the offer. I can give you the edit password for the website if
you like. That's the main place where the documentation is written
Not sure if anyone will review your changes but if there people will
usually complain on this mailing list. So keep an eye on this mailing list
for a few months afterwards if you are going to do anything major.
If you want to document the code, be my guest. Issue a pull request when
you're ready
>
>
> Any clarifications would be appreciated.
>
>
>
> Thanks
>
> R
>
> _______________________________________________
> 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/20160929/09d3563a/attachment-0001.html
------------------------------
Message: 3
Date: Thu, 29 Sep 2016 15:49:37 +0200
From: Vito Mandorino <vito.mandorino@linguacustodia.com>
Subject: Re: [Moses-support] differences between moses and moses2
output
To: Hieu Hoang <hieuhoang@gmail.com>, moses-support
<moses-support@mit.edu>
Message-ID:
<CA+8mSmHRZJXayFZYoRDNSHrUi_VYwj-+DmVepUbA44Z3M-AXPA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Yes, here are some data:
Average source sentence length: 29 tokens
Phrase-table size, probingPT: 11G
Phrase-table size, compact phrase-table: 2.1G
Translation time Moses2 with 32 threads: 1m36.511s
Translation time Moses with 32 threads: 6m14.248s
Translation time Moses2 with 32 threads in server mode: 16m30.137s
Translation time Moses with 32 threads in server mode: 62m33.208s
Ram consumption during decoding: 4G for Moses2, 5G for Moses
So Moses2 is 4 times faster, and 3 times faster in server mode.
Do you know why in server mode the speed is so much slower with respect to
batch mode, for both Moses and Moses2?
Best regards,
Vito
2016-09-28 18:52 GMT+02:00 Hieu Hoang <hieuhoang@gmail.com>:
> cool. do you have any indications of speed, especially when using multiple
> threads? model sizes and average input sentence length are also relevant.
>
>
>
--
*M**. Vito MANDORINO -- Chief Scientist*
[image: Description : Description : lingua_custodia_final full logo]
*The Translation Trustee*
*1, Place Charles de Gaulle, **78180 Montigny-le-Bretonneux*
*Tel : +33 1 30 44 04 23 Mobile : +33 6 84 65 68 89*
*Email :* *vito.mandorino@linguacustodia.com
<massinissa.ahmim@linguacustodia.com>*
*Website :*
*www.linguacustodia.finance <http://www.linguacustodia.com/>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20160929/5f72ba21/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 4421 bytes
Desc: not available
Url : http://mailman.mit.edu/mailman/private/moses-support/attachments/20160929/5f72ba21/attachment.jpg
------------------------------
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support
End of Moses-support Digest, Vol 119, Issue 44
**********************************************
Subscribe to:
Post Comments (Atom)
0 Response to "Moses-support Digest, Vol 119, Issue 44"
Post a Comment