Moses-support Digest, Vol 135, Issue 25

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 (Hieu Hoang)
2. Re: xml make up for moses2 (Manli Zhu)
3. Re: xml make up for moses2 (Hieu Hoang)


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

Message: 1
Date: Fri, 19 Jan 2018 22:51:01 +0000
From: Hieu Hoang <hieuhoang@gmail.com>
Subject: Re: [Moses-support] xml make up for moses2
To: Manli Zhu <zhum.osu@gmail.com>
Cc: moses-support <moses-support@mit.edu>
Message-ID:
<CAEKMkbgS0HP=9Z3G99TheF+fMVDEnsJRRYkmv8cVYo-_G9aDpQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20180119/abe9b872/attachment-0001.html

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

Message: 2
Date: Fri, 19 Jan 2018 23:59:50 -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_TAMnvKgtxi417+scsTYYUBbtYvxkqVNN-TmOP-L02k55eQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20180119/5f476541/attachment-0001.html

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

Message: 3
Date: Sat, 20 Jan 2018 12:15:28 +0000
From: Hieu Hoang <hieuhoang@gmail.com>
Subject: Re: [Moses-support] xml make up for moses2
To: Manli Zhu <zhum.osu@gmail.com>
Cc: moses-support <moses-support@mit.edu>
Message-ID: <e59a7ec0-07c9-b624-afb8-e3eac9014ce2@gmail.com>
Content-Type: text/plain; charset="utf-8"

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
> <mailto: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
> <mailto: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 <mailto:Moses-support@mit.edu>
> http://mailman.mit.edu/mailman/listinfo/moses-support
> <http://mailman.mit.edu/mailman/listinfo/moses-support>
>
>
>

--
Hieu Hoang
http://moses-smt.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20180120/6964cac1/attachment.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 25
**********************************************

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

Post a Comment