Moses-support Digest, Vol 135, Issue 26

Send Moses-support mailing list submissions to
moses-support@mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu

You can reach the person managing the list at
moses-support-owner@mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."


Today's Topics:

1. Re: xml make up for moses2 (Manli Zhu)


----------------------------------------------------------------------

Message: 1
Date: Sat, 20 Jan 2018 14:40:59 -0500
From: Manli Zhu <zhum.osu@gmail.com>
Subject: Re: [Moses-support] xml make up for moses2
To: Hieu Hoang <hieuhoang@gmail.com>
Cc: moses-support <moses-support@mit.edu>
Message-ID:
<CAAB_TAMmMm-98mtqxL+YnWoPnxhERYG2nJ1aW7qgWoWL=MC=hw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

So moses2 decoder does not support -xml-input with "constraint" option?

On Sat, Jan 20, 2018 at 7:15 AM, Hieu Hoang <hieuhoang@gmail.com> wrote:

> ah, I don't think there is anything similar to xmlConstraint in Moses2
>
> On 20/01/18 04:59, Manli Zhu wrote:
>
> 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 <hieuhoang@gmail.com> 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 <zhum.osu@gmail.com> 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
>>> Moses-support@mit.edu
>>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>>
>>>
>>
>
> --
> Hieu Hoanghttp://moses-smt.org/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20180120/e9dbba79/attachment-0001.html

------------------------------

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


End of Moses-support Digest, Vol 135, Issue 26
**********************************************

0 Response to "Moses-support Digest, Vol 135, Issue 26"

Post a Comment