Hi Panos

Sorry, I didn't read your original mail fully. I can see why the problem is 
happening, the code for processing the xml options calls a version of 
TargetPhrase.SetScore() which uses the default translation system. So at the 
moment it is not possible to use multiple models with xml input,

cheers - Barry

On Sunday 10 July 2011 10:28, Panagiotis Kanavos wrote:
> Hi Barry,
> Unescaping the xml lets moses do the translation but the xml markup is not
> interpreted at all so moses tries to translate everything, including the
> html/xml entities and the tag content. Mosesserver does work nicely with
> the -xml-input flag, but only when using a moses.ini with only one system
> (the "default"). I think the problem has to do with the extra "system"
> parameter.
>
> Regards,
> Panos
>
> > From: [email protected]
> > To: [email protected]
> > Subject: Re: [Moses-support] multiple translation systems and -xml-input
> > Date: Sun, 10 Jul 2011 10:02:50 +0100
> > CC: [email protected]
> >
> > Hi Panos
> >
> > xml-input with mosesserver has never been tested, and probably doesn't
> > work.
> >
> > Try escaping the xml on the client side to see if that helps,
> >
> > cheers - Barry
> >
> > On Sunday 10 Jul 2011 09:44:51 Panagiotis Kanavos wrote:
> > > Hi all,
> > > First, thanks to Barry for looking into the train-model script problem.
> > > Now I stepped into another issue. When I load mosesserver with multiple
> > >  translation systems and the -xml-input flag, moses gets confused when
> > > I feed him sentences with xml. On the client side, I get this:
> > >  xmlrpclib.Fault: <Fault -500: 'Unexpected error executing the code for
> > >  this particular method, detected by the Xmlrpc-c method registry code.
> > >  The method did not fail; rather, it did not complete at all.'> On the
> > >  server side, I see these:
> > > Input: the sentence with xml markupUsing translation system 001 (the
> > >  correct one)Translation system not found default The same sentence is
> > >  translated correctly when I load moses with only one system and the
> > >  -xml-input flag. TIA.
> > > Panos Kanavos

-- 
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