Re: [Moses-support] use placeholder with mosesserver

2015-11-10 Thread Ulrich Germann
Hi all,

mosesserver is deprecated and should not be used any more. I'll transfer
the threading-related changes to the server implementation in the regular
moses executable and let you know once I'm done so that other things (like
passthrough) can be added. By the looks of it, the changes are fairly
straightforward, so it shouldn't take long. However, I can't guarantee that
the new server will do everything the old server did, (or do it the same
way).

It would be fantastic if a few people could design and contribute test
cases so that we can do some regression testing for the server. Ideally a
test case should provide:

- tiny models to work with (or we may be able to recycle some that already
exist)
- sample input (json)
- expected output (json)

Cheers - Uli

On Tue, Nov 10, 2015 at 11:37 AM, Evgeny Matusov 
wrote:

>
> Hi,
>
> can any of the more active recent developers advise what is the latest
> stable mosesserver implementation?
>
> It seems to be the one in moses/server, but the  one in in
> contrib/server/mosesserver.cpp has been updated in August of this year with
> an important fix related to multiple threads:
>
>
> https://github.com/moses-smt/mosesdecoder/commit/3c682fa8b05af6bff1a09f420141795875cf9685
> https://www.mail-archive.com/moses-support%40mit.edu/msg12875.html
>
> As Gregor mentioned, we would like to share our fix so that Mosesserver
> correctly supports placeholders. I want to make sure that this is a fix for
> something that many people use without problems.
>
> Thanks,
> Evgeny.
>
>
> 
> From: moses-support-boun...@mit.edu  on
> behalf of moses-support-requ...@mit.edu 
> Sent: Monday, November 9, 2015 6:02 PM
> To: moses-support@mit.edu
> Subject: Moses-support Digest, Vol 109, Issue 16
>
> 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-requ...@mit.edu
>
> You can reach the person managing the list at
> moses-support-ow...@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. Question about output alignment info (Marta Ruiz)
>2. Re: use placeholder with mosesserver (Leusch, Gregor)
>
>
> --
>
> Message: 1
> Date: Mon, 9 Nov 2015 16:10:26 +0100
> From: Marta Ruiz 
> Subject: [Moses-support] Question about output alignment info
> To: moses-support@mit.edu
> Message-ID:
> 

Re: [Moses-support] use placeholder with mosesserver

2015-11-10 Thread Ulrich Germann
Hi all,

I've just pushed what I believe might address a few of the issues in this
thread:

- the more fine-grained configuration options for request handling and
queuing, server timeouts etc. (added in August due to threading issue) have
been transferred to the main moses executable.

- the server now pays attention to the xml-input option specified via json;
the range of accepted values is the same as when specified on the command
line. I have not written the xml-input handling and do not actively use it,
so it may or may not work. I don't think there are any regression tests
that test this right now. Reports from the trenches are welcome.

- mosesserver.cpp is deprecated. It is now merely a shell around the
regular moses call with --server. I did not remove it from the code base
entirely, as I assume that there's a plethora of setups out there that rely
on the existence of mosesserver. What the wrapper does is add --server to
the options and then call run regular moses.

- anyone adding stuff to mosesserver.cpp from now on owes me a lifetime
supply of the finest Laphroaig. Just send me a quarter cask every year for
Burns Nicht for the rest of my life if you do. If I haven't pushed anything
for two years, you may assume I'm dead.


- Uli

On Tue, Nov 10, 2015 at 2:58 PM, Ulrich Germann 
wrote:

> Hi all,
>
> mosesserver is deprecated and should not be used any more. I'll transfer
> the threading-related changes to the server implementation in the regular
> moses executable and let you know once I'm done so that other things (like
> passthrough) can be added. By the looks of it, the changes are fairly
> straightforward, so it shouldn't take long. However, I can't guarantee that
> the new server will do everything the old server did, (or do it the same
> way).
>
> It would be fantastic if a few people could design and contribute test
> cases so that we can do some regression testing for the server. Ideally a
> test case should provide:
>
> - tiny models to work with (or we may be able to recycle some that already
> exist)
> - sample input (json)
> - expected output (json)
>
> Cheers - Uli
>
> On Tue, Nov 10, 2015 at 11:37 AM, Evgeny Matusov 
> wrote:
>
>>
>> Hi,
>>
>> can any of the more active recent developers advise what is the latest
>> stable mosesserver implementation?
>>
>> It seems to be the one in moses/server, but the  one in in
>> contrib/server/mosesserver.cpp has been updated in August of this year with
>> an important fix related to multiple threads:
>>
>>
>> https://github.com/moses-smt/mosesdecoder/commit/3c682fa8b05af6bff1a09f420141795875cf9685
>> https://www.mail-archive.com/moses-support%40mit.edu/msg12875.html
>>
>> As Gregor mentioned, we would like to share our fix so that Mosesserver
>> correctly supports placeholders. I want to make sure that this is a fix for
>> something that many people use without problems.
>>
>> Thanks,
>> Evgeny.
>>
>>
>> 
>> From: moses-support-boun...@mit.edu  on
>> behalf of moses-support-requ...@mit.edu 
>> Sent: Monday, November 9, 2015 6:02 PM
>> To: moses-support@mit.edu
>> Subject: Moses-support Digest, Vol 109, Issue 16
>>
>> 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-requ...@mit.edu
>>
>> You can reach the person managing the list at
>> moses-support-ow...@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. Question about output alignment info (Marta Ruiz)
>>2. Re: use placeholder with mosesserver (Leusch, Gregor)
>>
>>
>> --
>>
>> Message: 1
>> Date: Mon, 9 Nov 2015 16:10:26 +0100
>> From: Marta Ruiz 
>> Subject: [Moses-support] Question about output alignment info
>> To: moses-support@mit.edu
>> Message-ID:
>> 

Re: [Moses-support] use placeholder with mosesserver

2015-11-10 Thread Evgeny Matusov

Hi,

can any of the more active recent developers advise what is the latest stable 
mosesserver implementation?

It seems to be the one in moses/server, but the  one in in 
contrib/server/mosesserver.cpp has been updated in August of this year with an 
important fix related to multiple threads:

https://github.com/moses-smt/mosesdecoder/commit/3c682fa8b05af6bff1a09f420141795875cf9685
https://www.mail-archive.com/moses-support%40mit.edu/msg12875.html

As Gregor mentioned, we would like to share our fix so that Mosesserver 
correctly supports placeholders. I want to make sure that this is a fix for 
something that many people use without problems.

Thanks,
Evgeny.



From: moses-support-boun...@mit.edu  on behalf 
of moses-support-requ...@mit.edu 
Sent: Monday, November 9, 2015 6:02 PM
To: moses-support@mit.edu
Subject: Moses-support Digest, Vol 109, Issue 16

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-requ...@mit.edu

You can reach the person managing the list at
moses-support-ow...@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. Question about output alignment info (Marta Ruiz)
   2. Re: use placeholder with mosesserver (Leusch, Gregor)


--

Message: 1
Date: Mon, 9 Nov 2015 16:10:26 +0100
From: Marta Ruiz 
Subject: [Moses-support] Question about output alignment info
To: moses-support@mit.edu
Message-ID:

Re: [Moses-support] use placeholder with mosesserver

2015-11-10 Thread Vito Mandorino
Hi Gregor,

thank you for your answer. We would be glad to use your patches if they are
made available.

Best regards,

Vito

2015-11-09 16:37 GMT+01:00 Leusch, Gregor :

> Hi,
>
> we saw the same issue a while ago in an older version of Moses.
> Mosesserver and moses use different routines to parse the input string; in
> particular the code in mosesserver did not parse placeholders input
> correctly. It seems to me that this is fixed in the most recent version of
> mosesserver (though I have not tested this; I just looked at the code); in
> addition, our team is currently discussing whether it makes sense to make
> available our patches to the mosesserver code either on the version we are
> using, or on a more recent version, available end of this week.
>
> Best,
>
> Gregor
>
>
>
>
> From:  on behalf of Vito Mandorino <
> vito.mandor...@linguacustodia.com>
> Date: Friday 6 November 2015 16:22
> To: moses-support 
> Subject: [Moses-support] use placeholder with mosesserver
>
> Dear all,
>
> I have been unsuccessful so far in using the placeholder approach with
> mosesserver. The translated segments contain the placeholder token @num@
> instead of numbers.
> Do you know how to get the numbers in the output?
>
> Many thanks,
>
> Vito Mandorino
>
>
> --
> *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
> <%2B33%206%2084%2065%2068%2089>*
>
> *Email :*  *vito.mandor...@linguacustodia.com
> *
>
> *Website :*  *www.linguacustodia.com  -
> www.thetranslationtrustee.com  *
>
>
>
>


-- 
*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.mandor...@linguacustodia.com
*

*Website :*  *www.linguacustodia.com  -
www.thetranslationtrustee.com  *
___
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support