Thank you for checking!

it works well when  '-xi' is set as 'inclusive', 'exclusive', or 'ignore'
$echo '<np translation="Inset">Cartouche</np> : A - Berbera' |
~/mosesdecoder/bin/moses2 -f moses.ini -xi 'inclusive'

but report the following error when set as 'constraint'
$echo '<np translation="Inset">Cartouche</np> : A - Berbera' |
~/mosesdecoder/bin/moses2 -f moses.ini -xi 'constraint'


....
Loading LM0
Finished loading LM0
Loading UnknownWordPenalty0
Finished loading UnknownWordPenalty0
Loading TranslationModel0
Initialized successfully!
Finished loading TranslationModel0
START LoadMappings()
END LoadMappings()
END LoadDecodeGraphBackoff()
terminate called after throwing an instance of 'util::Exception'
  what():  moses2/System.cpp:62 in Moses2::System::System(const
Moses2::Parameter&) threw util::Exception because `options.input.xml_policy
== XmlConstraint'.
XmlConstraint not supported
Aborted (core dumped)



I trace back and found
in util2.h Line 120:
  else if (input=="constraint") ret = XmlConstraint;

in system.cpp Line 62:
  UTIL_THROW_IF2(options.input.xml_policy == XmlConstraint, "XmlConstraint
not supported");



On Fri, Jan 19, 2018 at 5:51 PM, Hieu Hoang <[email protected]> wrote:

> can you give me an example of the input where you use it and what is the
> error you see
>
> Hieu Hoang
> http://moses-smt.org/
>
>
> On 19 January 2018 at 16:48, Manli Zhu <[email protected]> wrote:
>
>> Hello,
>>
>> Does moses2 decoder support -xml-input with "constraint" option?
>>
>> I tried "inclusive", no problem.
>> but "constraint" does not work, I am wondering if this option is
>> available or using another key word?
>>
>> thanks!!
>>
>>
>>
>> _______________________________________________
>> 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