your output has 2 factors so the phrases in the xml should have 2 factors eg
   '<n translation="abc|NNS">def</n>'


Hieu Hoang
http://www.hoang.co.uk/hieu

On 15 December 2016 at 07:28, Ryan ADLER <[email protected]> wrote:

> Dear Hieu,
>
> Thank you for your reply.  Attached, please find the requested
> information.  I will try to build a mini-model where I can reproduce this
> as well.
> *(See attached file: moses.mert.ini)*
>
> Command line:
>
> echo '<n translation="abc">def</n>' | /data/smt/mosesdecoder3.0/bin/moses
> -f moses.mert.ini -xml-input exclusive
>
> I would appreciate any insight you can offer.
>
> Kind regards,
> Ryan Adler
>
> [image: Inactive hide details for Hieu Hoang ---14/12/2016 17:23:01---can
> you attach the moses.ini file you use and the exact command y]Hieu Hoang
> ---14/12/2016 17:23:01---can you attach the moses.ini file you use and the
> exact command you ran Hieu Hoang
>
> From: Hieu Hoang <[email protected]>
> To: Ryan ADLER/VIENNA/UNO@UNOV
> Cc: moses-support <[email protected]>
> Date: 14/12/2016 17:23
> Subject: Re: [Moses-support] SegFault using XML Markup
> ------------------------------
>
>
>
> can you attach the moses.ini file you use and the exact command you ran
>
> Hieu Hoang
> *http://www.hoang.co.uk/hieu* <http://www.hoang.co.uk/hieu>
>
> On 14 December 2016 at 14:19, Ryan ADLER <*[email protected]*
> <[email protected]>> wrote:
>
>    Hi,
>
>    When submitting text with XML markup like:
>    Some <np translation="abc">def</np> stuff.
>
>    I am getting a segfault at:
>    Moses::LanguageModelKen<lm::ngram::QuantArrayTrieModel>::CalcScore
>    (this=0xa570b0, phrase=..., fullScore=@0x7fffffffd110,
>    ngramScore=@0x7fffffffd120, oovCount=@0x7fffffffd130) at moses/LM/Ken.h:77
>    77          std::size_t factor = word.GetFactor(m_factorType)->GetId();
>
>    This is using the RELEASE-3.0 branch.  Does anyone have any ideas here?
>
>    Kind regards,
>    Ryan Adler
>
>    _______________________________________________
>    Moses-support mailing list
> *[email protected]* <[email protected]>
> *http://mailman.mit.edu/mailman/listinfo/moses-support*
>    <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