Thank you. The <zone> tag seems to be more appropriate for brackets indeed.

I have done some decoding tests with verbose option:

/mosesdecoder/bin/moses -mp --verbose 3 -f moses.ini.

In the log, there is no mention of XML wall tags using the current moses
repository on github. Instead, there do appear the line

XML TAG IS: wall/

when decoding with an ancien version of moses or, alternatively, when
manually inserting <wall/> tags in the source segment.


Best regards,

Vito

2016-02-15 21:26 GMT+01:00 Philipp Koehn <[email protected]>:

> Hi,
>
> On Mon, Feb 15, 2016 at 7:43 AM, Kekwal <[email protected]
> > wrote:
>
>> Dear all,
>>
>> I have some questions on the -mp option of the decoder:
>>
>> 1. Is the -mp option integrated by default in the decoder? I have
>> compared more than 20000 segments translated with and without the option
>> and there are no differences in the outputs.
>>
>
> No, it is not turned on by default. I do not have a good explanation why
> there is no difference in your segments, but it is likely due to very
> little reordering in general.
>
> 2. Is the -mp option compatible with mosesserver?
>>
>
> It should be, but I have not tested it personally.
>
> 3. According to the manual, -mp is equivalent to adding <wall /> tags
>> before and after the following ponctuation signs
>>  ,.!?:;"
>> like in
>> ,    ----->    <wall /> , <wall />
>> Could it be useful to add walls also before and after brackets? Which
>> files in the repository should be modified in order to achieve this?
>> (    ---->    <wall /> ( <wall />
>> )    ---->    <wall /> ) <wall />
>>
>
> You could just add these walls into the xml markup of the input sentence.
> The code is in moses/ReorderingConstraint.cpp
>
> You may also use zones:
>
> this a <zone> ( <wall/> small <wall/> ) </zone> test .
>
> This allows movement of the whole parenthetical expression, with local
> walls within to ensure proper placement of the parentheses.
>
> -phi
>
>



-- 
*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 :*  *[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

Reply via email to