Fw: [Moses-support] xml-input is compatible with moses_chart?


----- Forwarded Message -----
From: Philipp Koehn <pkoehn@inf.ed.ac.uk>
To: Li Xiang <lixiang.ict@gmail.com>
Cc: moses-support <moses-support@mit.edu>
Sent: Tuesday, 13 August 2013, 20:35
Subject: Re: [Moses-support] xml-input is compatible with moses_chart?

Hi,

I added this functionality a while back - it should work right now, but ongoing
re-factoring of the code make break it intermittently.

To use it, you also have to specify the non-terminal label. For a hierarchical
model this would always be label="X", so in your case:

I love <n translation="test" label="X">lisa</n>

Note that currently only "inclusive" is implemented. To get the "exclusive"
behavior you could crank up the score:

I love <n translation="test" label="X" prob=99999>lisa</n>

-phi
On Wed, Aug 7, 2013 at 2:27 PM, Li Xiang <lixiang.ict@gmail.com> wrote:
> Hi,
>
> I find the "-xml-input" option does not play a role for moses_chart.
>
> I run the command line:
>
> echo 'I love <n translation="test">lisa</n>' \ | moses_chart -xml-input
> inclusive -f moses.ini
>
> But the source word "lisa" can not be translated to the specified
> translation 'test' in the final translation.
>
> Can you tell me my error?
>
>
> --
> Xiang Li
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


0 Response to "Fw: [Moses-support] xml-input is compatible with moses_chart?"

Post a Comment