Hi Vito,

I don't remember the reason of why this happens, but I faced this problem
in the past. The solution I ended up with was creating a wall (hard
reordering contraint) after each xml tag. Following your example:


*echo '<np translation="and, on the monday , the tallboy on its back by the
bed , and the dressing table on its face by the door">and, on the monday ,
the tallboy on its back by the bed , and the dressing table on its face by
the door</np><wall/>' | /mosesdecoder/bin/moses -f moses.ini -xml-input
exclusive > translation*

Hope this helps.

Best regards,

Miguel

On Tue, Jan 26, 2016 at 3:38 PM, Vito Mandorino <
[email protected]> wrote:

> Dear all,
>
> running the decoder with the following command and the '-xml-input
> exclusive' option yielded an unexpected behavior:
>
> echo '<np translation="and, on the monday , the tallboy on its back by the
> bed , and the dressing table on its face by the door">and, on the monday ,
> the tallboy on its back by the bed , and the dressing table on its face by
> the door</np>' | /mosesdecoder/bin/moses -f moses.ini -xml-input exclusive
> > translation
>
> The output in the file 'translation' reads:
>
> on monday the and, , the tallboy on its back by the bed , and the table on
> its dressing face by the door
>
> instead of the expected:
>
> and, on the monday , the tallboy on its back by the bed , and the dressing
> table on its face by the door
>
> The translation has been reordered with respect to the content of the xml
> markup. Is this kind of reordering allowed by the '-xml-input exclusive'
> option? This seems to happen especially for fairly long sentences.
>
> Best regards,
>
> 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 :*  *[email protected]
> <[email protected]>*
>
> *Website :*  *www.linguacustodia.com <http://www.linguacustodia.com/> -
> www.thetranslationtrustee.com  <http://www.thetranslationtrustee.com/>*
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to