[Moses-support] Moses Server - N-Best

2019-07-15 Thread Lucas Pimenta Porto
Hi, I made my moses decoder a server. Works well. But I'd like to: My server generate an n-best list. But it does not. The following command ~/path/mosesserver -f ~/path/moses.ini -n-best-list list 3 < ~/path/lista note: my n-best list is just the 3 best sentences What can it be? thank you ___

Re: [Moses-support] Moses Server

2019-06-25 Thread Hieu Hoang
There's some documentation about the moses server here: http://www.statmt.org/moses/?n=Advanced.Moses Hieu Hoang http://statmt.org/hieu On Tue, 25 Jun 2019 at 13:13, Lucas Pimenta Porto wrote: > Hi > > I am a Master student and I started working with Moses soon. I have an > application deve

[Moses-support] Moses Server

2019-06-25 Thread Lucas Pimenta Porto
Hi I am a Master student and I started working with Moses soon. I have an application developed in Python and I wish, through it, to send text so that the moses translates each of the sentences. How will I do this through XML-RPC v2? I have found little instruction on this subject thank you _

Re: [Moses-support] Moses Server Performance/Optimization and Moses2

2017-05-19 Thread Hieu Hoang
the number of scores on each line in the lexicalised reordering table, eg it would be 6 in the case: ! ! ) ||| ! ! ) ||| 0.714286 0.142857 0.142857 0.428571 0.142857 0.428571 * Looking for MT/NLP opportunities * Hieu Hoang http://moses-smt.org/ On 19 May 2017 at 20:59, Steve Braich wrote:

Re: [Moses-support] Moses Server Performance/Optimization and Moses2

2017-05-19 Thread Steve Braich
Hi Hieu, Can you give some guidance on the parameter --num-lex-scores? Thanks, Steve On Sat, May 13, 2017 at 8:03 AM, Hieu Hoang wrote: > Moses2 doesn't support the Compact phrase-table, only ProbingPT. > > You have to rebinarize the phrase-table with CreateProbingPT. It's better > if you also

Re: [Moses-support] Moses Server Performance/Optimization and Moses2

2017-05-13 Thread Hieu Hoang
Moses2 doesn't support the Compact phrase-table, only ProbingPT. You have to rebinarize the phrase-table with CreateProbingPT. It's better if you also integrate the lexicalised reordering table the phrase-table. The script scripts/generic/binarize4moses2.perl does this all in 1 go On 13/05

[Moses-support] Moses Server Performance/Optimization and Moses2

2017-05-12 Thread Steve Braich
Hello, I am trying to improve the performance of Moses in a server environment (not training). I have tried various things, including the following which is described on http://www.statmt.org/moses/?n=Moses.Optimize. It has had no impact: - *Multi-threading: *Up to 16 Cores on Google's Cloud

Re: [Moses-support] moses server options different for moses vs. moses2

2016-11-03 Thread Hieu Hoang
equ...@mit.edu wrote: Date: Wed, 2 Nov 2016 14:32:04 -0500 From: Hieu Hoang Subject: Re: [Moses-support] moses server options different for moses vs. moses2 To: Martin Baumg?rtner Cc: "moses-support@mit.edu" added: https://github.com/moses-smt/mosesdecoder/commit/d49

Re: [Moses-support] moses server options different for moses vs. moses2

2016-11-03 Thread Tom Hoar
2:04 -0500 From: Hieu Hoang Subject: Re: [Moses-support] moses server options different for moses vs. moses2 To: Martin Baumg?rtner Cc:"moses-support@mit.edu" added: https://github.com/moses-smt/mosesdecoder/commit/d49170de3dce41b52e4ddacf0b8f82cadb0919ef it was actually already

Re: [Moses-support] moses server options different for moses vs. moses2

2016-11-02 Thread Hieu Hoang
added: https://github.com/moses-smt/mosesdecoder/commit/d49170de3dce41b52e4ddacf0b8f82cadb0919ef it was actually already ported from Moses but the params weren't set up. Also note that not all the params listed by Moses2 have been implemented. If they are not implemented, Moses2 will just sile

Re: [Moses-support] moses server options different for moses vs. moses2

2016-11-02 Thread Martin Baumgärtner
Hi Hieu, especially the following params, all related to Abyss server functionality, with decreasing priority: --server-maxconn --server-maxconn-backlog --server-keepalive-maxconn --server-keepalive-timeout --server-timeout Currently the default of these params is ok for me, but the

Re: [Moses-support] moses server options different for moses vs. moses2

2016-11-02 Thread Hieu Hoang
In general, I've added options that I understand and can test. Which specific option are you after? Hieu Hoang http://www.hoang.co.uk/hieu On 2 November 2016 at 06:04, Martin Baumgärtner < martin.baumgaert...@star-group.net> wrote: > Hi all, > > I've seen that there's a difference between moses

[Moses-support] moses server options different for moses vs. moses2

2016-11-02 Thread Martin Baumgärtner
Hi all, I've seen that there's a difference between moses and moses2 concerning server options, especially missing the "Abyss stuff": moses: Moses Server Options: --server Run moses as a translation server. --daemon Run mo

Re: [Moses-support] Moses Server and pre/post-processing text

2016-05-23 Thread Philipp Koehn
Hi, the pre- and post-processing should be done outside the core Moses binary. One implementation of an interface to Moses that does all the pre and post processing is server.py from Christian Buck, or its fork in CASMACAT. https://github.com/christianbuck/matecat_util/tree/master/python_server

[Moses-support] Moses Server and pre/post-processing text

2016-05-23 Thread Nicholas Ruiz
Hi all, Is it possible to do pre/post-processing through bin/mosesserver, or would I have to write my own server-side wrapper to do the text processing? EMS is convenient for testing, since it allows you to call your own text processing scripts, but I'm not immediately seeing any similar functiona

Re: [Moses-support] Moses server with --output-search-graph

2016-04-08 Thread Lane Schwartz
It makes sense in my (admittedly very arcane) current scenario, but it's not terribly important. I think the answer to my question is - if you run mosesserver with --output-search-graph, the mosesserver executable will not produce an output graph file, and if you want the output graph, the client

Re: [Moses-support] Moses server with --output-search-graph

2016-04-08 Thread Philipp Koehn
Hi, I am bit confused by this. The point of Mosesserver is to interact with a running Moses process via API requests. If you want to run Moses in a way that it reads and writes local files, you should just uses the regular Moses batch process. -phi On Fri, Apr 8, 2016 at 10:25 AM, Lane Schwart

Re: [Moses-support] Moses server with --output-search-graph

2016-04-08 Thread Lane Schwartz
I was interested in the search graph being output to a file by Moses, rather than by the python client. Is that possible? On Thu, Apr 7, 2016 at 2:59 PM, Philipp Koehn wrote: > Hi, > > to get the search graph back, you must also specify sg=true. > > See for an example lines 289-298 of: > > https

Re: [Moses-support] Moses server with --output-search-graph

2016-04-07 Thread Philipp Koehn
Hi, to get the search graph back, you must also specify sg=true. See for an example lines 289-298 of: https://github.com/casmacat/moses-mt-server/blob/master/python_server/server.py -phi On Wed, Apr 6, 2016 at 4:02 PM, Lane Schwartz wrote: > When running mosesserver with --output-search-graph

[Moses-support] Moses server with --output-search-graph

2016-04-06 Thread Lane Schwartz
When running mosesserver with --output-search-graph, I don't get a search graph file created. Is this the expected behavior? Or is something else going on? Thanks, Lane ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/l

Re: [Moses-support] Moses Server index.js 500 internal error

2016-04-01 Thread Hieu Hoang
what is the exact commands you executed? Can you make your model available for download so I can replicate the error. The server seems to work ok for me on my own laptop and model On 29/03/2016 15:14, faiza shahid wrote: Hi, I'm very new to moses and am currently working on the moses web tra

[Moses-support] Moses Server index.js 500 internal error

2016-03-29 Thread faiza shahid
Hi, I'm very new to moses and am currently working on the moses web translation for fr-en. I have tested the moses server on the terminal and followed the steps from the moses website as much as possible but I'm getting errors on the error.log shown below when I try to translate a website:[Tue M

[Moses-support] moses server building procedure

2015-10-27 Thread Apurva Joshi
plzz tell me where can i get detail stepwise procedure of building moses server??? apurvajoshi1...@gmail.com ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support

Re: [Moses-support] Moses Server

2015-04-29 Thread Barry Haddow
Hi Abdelfetah None of these are implemented at the moment, to the best of my knowledge. Outputting to file should be straightforward, although you may want to add an extra parameter to the translate request that the client can use to pass an identifier. Dynamically changing the search parame

[Moses-support] Moses Server

2015-04-28 Thread Abdelfetah Boumerdas
Dear Moses Users/Developers I'm working on a web application that uses moses and i want to make it work with the moses server and here is what i want to do with it: - i want to give the user the ability to choose the option that he wants to execute on moses for example the stack size - i

Re: [Moses-support] Moses Server

2015-04-24 Thread Mahima Sharma
Hi, sorry for the trouble. Actually my firewall was blocking the request :( Now it is working :) Cheers On Sat, Apr 25, 2015 at 8:21 AM, Mahima Sharma wrote: > Hi, > > I am trying to run moses server. When I use "localhost:8089/RPC2" as > server URL to create a client, then it works, but

[Moses-support] Moses Server

2015-04-24 Thread Mahima Sharma
Hi, I am trying to run moses server. When I use "localhost:8089/RPC2" as server URL to create a client, then it works, but when I give it with an IP address it is giving an error. I have tried it on XMLRPC Forums but was not able to rectify the problem. Has anybody come across this problem and wh

Re: [Moses-support] Moses server support.

2015-03-17 Thread Tom Hoar
The xmlrpc package name changed in 14.04. Try this apt-get and you'll have the right ones, including xmlrpc. sudo apt-get -y install \ cmake libbz2-dev libgoogle-perftools-dev \ liblbfgs-dev tcl-dev libsparsehash-dev \ libxmlrpc-c++8-dev libcmph-dev When you do

[Moses-support] Moses server support.

2015-03-17 Thread Ivan Cekov
Hello. After I compiled moses 3.0 from source (./bjam --with-irstlm=/home/install/irstml --with-giza=/home/install/giza-pp --with-boost=/home/install/boost --with-xmlrpc-c=/home/install/xmlrpc-c --with-srilm=/home/install/srilm --prefix=/home/install/moses) and I start it with ./moseserver --se

Re: [Moses-support] Moses server installation

2014-10-21 Thread Ihab Ramadan
Thanks Barry this was so helpful From: Barry Haddow [mailto:bhad...@staffmail.ed.ac.uk] Sent: Tuesday, October 21, 2014 5:30 PM To: i.rama...@saudisoft.com; moses-support@mit.edu Subject: Re: [Moses-support] Moses server installation Hi Ihab You need to run bjam from the top level in

Re: [Moses-support] Moses server installation

2014-10-21 Thread Barry Haddow
Hi Ihab You need to run bjam from the top level in Moses, and include the option --with-xmlrpc-c=/path/to/xmlrpc-c in order to specify where the xmlrpc-c library is, cheers - Barry On 21/10/14 15:51, Ihab Ramadan wrote: Dears, I try to install the moses server exists in "mosesPath/contrib

[Moses-support] Moses server installation

2014-10-21 Thread Ihab Ramadan
Dears, I try to install the moses server exists in "mosesPath/contrib/server/mosesserver" using the jam command But it gives me the error Jamfile:3: in module scope rule import unknown in module at the first line in the Jamfile although I already installed boost.jam and this is the output

Re: [Moses-support] Moses server with -n-best-list option

2014-04-17 Thread Rajnath Patel
r 17, 2014 at 9:26 AM, Lakshya wrote: > >> >> The error is because of "nbest" is not a boolean , but it is an integer >> type. So pass integer parameter. >> >> >> Regards >> Lakshya >> >> >> >> ------ Forwarded message -

Re: [Moses-support] Moses server with -n-best-list option

2014-04-16 Thread Rajnath Patel
eger parameter. > > > Regards > Lakshya > > > > -- Forwarded message -- > From: Barry Haddow > Date: Thu, Apr 17, 2014 at 12:43 AM > Subject: Re: [Moses-support] Moses server with -n-best-list option > To: Rajnath Patel > Cc: moses-support@

Re: [Moses-support] Moses server with -n-best-list option

2014-04-16 Thread Lakshya
The error is because of "nbest" is not a boolean , but it is an integer type. So pass integer parameter. Regards Lakshya -- Forwarded message -- From: Barry Haddow Date: Thu, Apr 17, 2014 at 12:43 AM Subject: Re: [Moses-support] Moses server with -n-best-list

Re: [Moses-support] Moses server with -n-best-list option

2014-04-16 Thread Barry Haddow
HI Raj Not sure, what does the server log say? Try logging to a file, rather than /dev/null. cheers - Barry On 16/04/14 18:25, Rajnath Patel wrote: Hi Barry, Thanks for quick reply. As you suggested now I am requesting with "nbest=true" as - "mosesParams.put("nbest", "true");". Code is at

Re: [Moses-support] Moses server with -n-best-list option

2014-04-16 Thread Rajnath Patel
Hi Barry, Thanks for quick reply. As you suggested now I am requesting with "nbest=true" as - "mosesParams.put("nbest", "true");". Code is attached here with. Now its throwing Exception- -- Exception in thread "main" org.apache.xmlrpc.XmlRpcException: Unexpected error executing code for parti

Re: [Moses-support] Moses server with -n-best-list option

2014-04-16 Thread Barry Haddow
Hi Raj You need to specify nbest=true in the request you send to moses server. There was a thread last week on this, and I think nbest lists are working, cheers - Barry On 16/04/14 15:33, Rajnath Patel wrote: > Hi, > > We are using mosesserver for our translation system. We are using java API

[Moses-support] Moses server with -n-best-list option

2014-04-16 Thread Rajnath Patel
Hi, We are using mosesserver for our translation system. We are using java API given with the decoder, and its working fine. We want multiple translations for same text. As in one moses support conversation It was responded in Sept 2012, that mosesserver do not support -n-best-list option. Is this

Re: [Moses-support] moses server segmentation fault (core dumped)

2014-04-10 Thread Barry Haddow
Hi Kamel Could you try running the model with command-line Moses to see if the same problem happens? If you still get a seg-fault and no error message, would you be able to run Moses in a debugger to get a stack trace? cheers - Barry On 07/04/14 18:25, kamel nebhi wrote: > Hi, > > I try to in

[Moses-support] moses server segmentation fault (core dumped)

2014-04-07 Thread kamel nebhi
Hi, I try to install mosesserver on localhost. I have installed xml-rpc and rebuild moses with no problem. Next i use this command to run the server : *~/mosesdecoder/bin/mosesserver -f working/model/moses.ini --server-port 8999* But it failed with this message : Defined parameters (per moses.i

Re: [Moses-support] Moses server : Doubt

2012-08-11 Thread Hieu Hoang
Hi Prashant This uses the suffix array phrase table, described here: http://www.statmt.org/moses/?n=Moses.AdvancedFeatures#ntoc31 I think you can find more about it here: homepages.inf.ed.ac.uk/miles/phd-projects/*levenberg*.pdf For hierarchical model, you can use Adam Lopez suffix array imp

[Moses-support] Moses server : Doubt

2012-08-08 Thread Prashant Mathur
Hi, I am working with moses server. There is an option to use training corpus and alignment file instead of normal phrase table. Instead of 1 0 0 5 we can have 8 0 0 3 Am I right? But it seems the way of scoring the phrases is different here. How does the decoding works in this case? What

Re: [Moses-support] Moses server installation problem

2012-08-02 Thread Kenneth Heafield
Hi, If you installed xmlrpc-c at the system level, then no --with-xmlrpc-c argument should be required. Also, pay attention to this message from --help: --with-xmlrpc-c=/path/to/xmlrpc-c for libxmlrpc-c (used by server) Note that, like language models, this is the --prefix where the li

Re: [Moses-support] Moses server installation problem

2012-08-02 Thread Barry Haddow
Hi Duygu The executables should land in the bin directory by default, cheers - Barry On 02/08/12 13:33, DUYGU ARALIOGLU wrote: > Hi, > I have installed moses successfully, I have also install xmlrpc-c via > --sudo apt-get install libxmlrpc-core-c3-- then I have built the moses > via --./bjam --w

[Moses-support] Moses server installation problem

2012-08-02 Thread DUYGU ARALIOGLU
Hi, I have installed moses successfully, I have also install xmlrpc-c via --sudo apt-get install libxmlrpc-core-c3-- then I have built the moses via --./bjam --with-xmlrpc-c=[/path/to/xmlrpc-c-config]--. While doing these I have followed the instructions in http://www.statmt.org/moses/?n=Develo

Re: [Moses-support] Moses server

2010-12-10 Thread Panagiotis Kanavos
more convenient as indicated by Barry. Regards, Panos Kanavos > From: bhad...@inf.ed.ac.uk > To: moses-support@mit.edu > Date: Fri, 10 Dec 2010 12:31:10 + > Subject: Re: [Moses-support] Moses server > > Hi Mehmet > > The daemon.pl is not writing the translation to

[Moses-support] Moses server

2010-12-10 Thread Mehmet Tatlıcıoğlu
Hi, I am working on decoding an input received through a port, and I'd like to produce the output and send it to the port. I've followed the instructions on the page http://www.statmt.org/moses/?n=Moses.WebTranslation, and I managed to setup the server. When I run daemon.pl for a specific port, it

Re: [Moses-support] MOSES Server installation: compilation error

2010-03-31 Thread Barry Haddow
Hi Zahurul Thanks for that. I've updated Makefile.am in svn as you suggested. The main build system for moses was changed recently, and the server makefile wasn't updated at that time. It still worked for me because I had an old libmoses.a in the directory, regards Barry On Wednesday 31 Mar 2

Re: [Moses-support] MOSES Server installation: compilation error

2010-03-31 Thread Zahurul Islam
Dear Barry, We use Ubuntu 9.10. The problem is solved now. I had to change the extension of moses library file: "libmoses.a" to "libmoses.la" in the Makefile.am (last line) in sever directory: mosesserver_DEPENDENCIES = $(top_srcdir)/moses/src/libmoses.la The moses library "libmoses.la" is being

Re: [Moses-support] MOSES Server installation: compilation error

2010-03-31 Thread Barry Haddow
On Wednesday 31 Mar 2010 11:12:28 Zahurul Islam wrote: > Dear Barry, > Where i can find build logs? I saw config.log in the top level moses > directory which contains log of moses configuration. Thanks, > Zahurul > Hi Zahurul By 'build logs', I mean the output of running make at the top level.

Re: [Moses-support] MOSES Server installation: compilation error

2010-03-31 Thread Hieu Hoang
i've just compiled from a clean download (and a clean svn up) and it's built everything in 1 go. there may be strange side effects if you do svn up of an existing project and make. My best guess is the new options to compile moses as a dynamic library is confusing the make process. I would s

Re: [Moses-support] MOSES Server installation: compilation error

2010-03-31 Thread Lee Ball (Applied Language)
Not sure how relevant this is, but often when I've compiled Moses I've had to dive into the src directory and run a make in there as well as running it from the root directory for moses. Maybe navigate to /src and run a make separately? Kind regards, Lee Ball Infrastructure Manager lee.b...@appli

Re: [Moses-support] MOSES Server installation: compilation error

2010-03-31 Thread Barry Haddow
Hi Zahurul It looks as though libmoses.a did not build - the server build is unable to find it. Could you check back through the build logs to see what happened? regards Barry On Wednesday 31 Mar 2010 10:42:30 Zahurul Islam wrote: > Dear Barry, > Thank you very much. Here is the command list, i

Re: [Moses-support] MOSES Server installation: compilation error

2010-03-31 Thread Barry Haddow
Hi Zahurul Did moses build correctly? Did you run make at the top level? The server build is failing because it can't find the moses library. Your configure line looks a little strange as the --with-xmlrpmc-c flag should take an argument eg. --with-xmlrpc-c=/disk3/bhaddow/xmlrpc-c/bin/xmlrpc-c

[Moses-support] MOSES Server installation: compilation error

2010-03-31 Thread Zahurul Islam
Hi, I was trying to install new version of MOSES. I tried twice by svn update and downloaded source from: https://sourceforge.net/projects/mosesdecoder/ . Both time i met following error: $Making all in server $make[2]: Entering directory `/l/disc1/project/piqasso/Experiments/MT/tools/moses-marc

Re: [Moses-support] Moses server dies when loading language model

2010-01-28 Thread Panagiotis Kanavos
You were right. I was messing up the path to srilm in ./configure. Everything works fine now. Thank you. ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support

Re: [Moses-support] Moses server dies when loading language model

2010-01-27 Thread Christof Pintaske
I'd think that you did not compile or link successfully against SRILM. As a consequence LanguageModelInternal tries to load the language model as opposed to being overloaded by the correct SRILM code. just my 2 cents Christof Panagiotis Kanavos wrote: > Hi, > > > I downloaded moses from svn a

[Moses-support] Moses server dies when loading language model

2010-01-27 Thread Panagiotis Kanavos
Hi, I downloaded moses from svn and followed the steps to build the moses server with multithreading. I think I built it successfully, but when I run it I get this error when it starts loading the language model: mosesserver: LanguageModelInternal.cpp:22: virtual bool Moses::LanguageModelIn

Re: [Moses-support] Moses server on the Windows version

2009-10-26 Thread Hieu Hoang
yeah, if you do everything in the Cygwin environment and pretend it's Linux, then it should work. (however, I haven't done this for a long time, so can't guarantee it) marco turchi wrote: > Hi guys, > thanks for your answers! > Unfortunately it seems that would be better if I use Windows :-( > >

Re: [Moses-support] Moses server on the Windows version

2009-10-26 Thread marco turchi
Hi guys, thanks for your answers! Unfortunately it seems that would be better if I use Windows :-( Btw, If I find the xmlrpc-c and boost libraries for Windows, I can install and compile Moses in the cygwin environment and in this case, I need the normal Linux version of Moses. Is it correct? Than

Re: [Moses-support] Moses server on the Windows version

2009-10-26 Thread Barry Haddow
Hi Marco To build the moses server and mosesmt you need the boost thread libraries, and the xmlrpc-c libraries. If these are available for windows, then the moses server should work on windows. But most of the moses developers use Linux or OSX, so you're better off using one of these platforms

Re: [Moses-support] Moses server on the Windows version

2009-10-26 Thread Hieu Hoang
hi marco with cygwin - yes, since cygwin is really unix. with visual studio - no. I haven't updated the project files to do multi-threading. There's also the problem of not having SRILM or IRSTLM support marco turchi wrote: > Dear All, > I have seen on the Moses web site that a Moses server an

[Moses-support] Moses server on the Windows version

2009-10-26 Thread marco turchi
Dear All, I have seen on the Moses web site that a Moses server and multi-threaded Moses are available. Are these services included on the Windows version of Moses? Thanks Marco ___ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu

Re: [Moses-support] Moses server dies with invalid xml input

2009-10-06 Thread Marcin Miłkowski
Hi all, Münt, Bernd pisze: >> Von: phko...@gmail.com [mailto:phko...@gmail.com] Im Auftrag > >> ok, I am late on that latest change. Please remove all the >> abort() statments then. > > I think it is not so simple when doing this on mosesserver. It was discussed > here last week that this migh

Re: [Moses-support] Moses server dies with invalid xml input

2009-10-05 Thread Münt, Bernd
> Von: phko...@gmail.com [mailto:phko...@gmail.com] Im Auftrag > ok, I am late on that latest change. Please remove all the > abort() statments then. I think it is not so simple when doing this on mosesserver. It was discussed here last week that this might lead to memory leaks. > In general,

Re: [Moses-support] Moses server dies with invalid xml input

2009-10-05 Thread Philipp Koehn
Hi, ok, I am late on that latest change. Please remove all the abort() statments then. In general, it would be better to ensure that no faulty XML is generated in the first place. Graceful decay also leads to error that are hard to track down. -phi 2009/10/5 "Münt, Bernd" : >> Von: phko...@gmai

Re: [Moses-support] Moses server dies with invalid xml input

2009-10-05 Thread Münt, Bernd
> Von: phko...@gmail.com [mailto:phko...@gmail.com] Im Auftrag > if you want the decoder to just be less picky and gracefully > decay on faulty XML input, you can edit the source file > moses/src/XmlOption.cpp and remove all "return false;" > statements after "TRACE_ERR("ERROR:..." > lines. T

Re: [Moses-support] Moses server dies with invalid xml input

2009-10-05 Thread Philipp Koehn
Hi, if you want the decoder to just be less picky and gracefully decay on faulty XML input, you can edit the source file moses/src/XmlOption.cpp and remove all "return false;" statements after "TRACE_ERR("ERROR:..." lines. This way, the XML is processed all the way through. -phi 2009/10/1 "Münt

Re: [Moses-support] Moses server dies with invalid xml input

2009-10-02 Thread Barry Haddow
> The only problem is still invalid xml input. > When I sent "bla blubb" it just dies without any notice. > > How can I prevent this? > > Is there a way to create a auto respawn server? > Hi Bernd I've checked in a change to moses that will cause it to throw an exception on bad xml input, inste

Re: [Moses-support] Moses server dies with invalid xml input

2009-10-01 Thread Münt, Bernd
Hi Hieu and Barry, Thanks for your answers. I'm one step further now: > I've successfully compiled xmlrpc-c on a 64 bit > machine, running SuSe11 and > g++ 4.3.1. I'm using the latest stable release of > xmlrpc-c, which its > version.h reports as 1.16.19. Oh yes, the stable v

Re: [Moses-support] Moses server dies with invalid xml input

2009-10-01 Thread Barry Haddow
HI Hieu The change to regular moses will be minimal. Instead of an abort(), there will be an uncaught exception, which will lead to a call to abort(). So we don't have to worry about leaks etc (moses will exit) and it will be clear to the user that the translation failed. For server moses, I a

Re: [Moses-support] Moses server dies with invalid xml input

2009-09-30 Thread Hieu Hoang
i've been told performance isn't an issue anymore but i suppose we should double check before we go down this route the main thing is to cleanup up after an exception to make sure there are no leaks etc, and to have some kind of feedback/logging so that the user can re-attempt the translation.

Re: [Moses-support] Moses server dies with invalid xml input

2009-09-30 Thread Barry Haddow
Hi Hieu At the moment moses calls abort() if it receives invalid xml. It would be easy to change this to throw a runtime_error(), which would normally just lead to an abort() call as the exception wouldn't be caught. However I could arrange for the moses server to catch the exception and send s

Re: [Moses-support] Moses server dies with invalid xml input

2009-09-30 Thread Hieu Hoang
there has been talk of using exceptions to catch errors such as input format but, so far, no-one's taking the lead on this yet 2009/9/30 Barry Haddow > Hi Bernd > > Responses inline. > > > > > Then I tried to compile moses server. > > It went wrong on a 64bit machine while compiling the prerequi

Re: [Moses-support] Moses server dies with invalid xml input

2009-09-30 Thread Barry Haddow
Hi Bernd Responses inline. > > Then I tried to compile moses server. > It went wrong on a 64bit machine while compiling the prerequisite xmlrpc-c: > make[2]: Entering directory `/usr/src/xmlrpc-c-1.06.37/src/cpp' > g++ -shared -Wl,-soname,libxmlrpc_cpp.so.3 -o libxmlrpc_cpp.so.3.06 > XmlRpcCpp.o

[Moses-support] Moses server dies with invalid xml input

2009-09-30 Thread Münt, Bernd
Hi togehter, I just joint the mailing list and I'm new to use moses and especially setup an enviroment for moses to use as an automatic translation service. First I tried it with your suggestion of a perl daemon. The daemon starts and responds fine, but it has the problem of "sudden death". Somet