Dear Hieu, As you mention, it looks like the RELEASE-3.0 branch doesn't support multiple factors. I see a commit on the master code which adds this support (pretty recently, actually): https://github.com/moses-smt/mosesdecoder/commit/25f0165db76c68f02110f91b6a297f950a3f80e7
I will try applying this patch to my code and test it out. Thank you! Kind regards, Ryan Adler From: Hieu Hoang <hieuho...@gmail.com> To: Ryan ADLER/VIENNA/UNO@UNOV Cc: moses-support <moses-support@mit.edu> Date: 15/12/2016 11:40 Subject: Re: [Moses-support] SegFault using XML Markup that's the only thing I can think of. It may be that XML doesn't support multiple factors. If you have model files for me to download and replicate the problem, I can let you know for sure Hieu Hoang http://www.hoang.co.uk/hieu On 15 December 2016 at 10:19, Ryan ADLER <ryan.ad...@unodc.org> wrote: Dear Hieu, Unfortunately, this results in the same error. Am I possibly still missing something somewhere else? Kind regards, Ryan Adler Inactive hide details for Hieu Hoang ---15/12/2016 10:36:02---your output has 2 factors so the phrases in the xml should have 2Hieu Hoang ---15/12/2016 10:36:02---your output has 2 factors so the phrases in the xml should have 2 factors eg '<n translation="abc From: Hieu Hoang <hieuho...@gmail.com> To: Ryan ADLER/VIENNA/UNO@UNOV Cc: moses-support <moses-support@mit.edu> Date: 15/12/2016 10:36 Subject: Re: [Moses-support] SegFault using XML Markup 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 <ryan.ad...@unodc.org> 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 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 yHieu 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 <hieuho...@gmail.com> To: Ryan ADLER/VIENNA/UNO@UNOV Cc: moses-support <moses-support@mit.edu> 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 On 14 December 2016 at 14:19, Ryan ADLER <ryan.ad...@unodc.org> 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 Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support