ah thanks. I think it's a bug for that edge case - wall at the end of the sentence. Fixed it
https://github.com/moses-smt/mosesdecoder/commit/c30b28f43b902e48e399ab5cf6c60f6f62c1fb50 A wall at the end of the sentence shouldn't have any effect right? Hieu Hoang http://moses-smt.org/ On 28 December 2016 at 21:40, Mike Ladwig <mdlad...@gmail.com> wrote: > if you have an example, please send it over. It should work >> > > bericht skinner <zone> <wall/> ( <wall/> <ne translation="@numv@" > entity="a5–0235/2000">@numv@</ne> <wall/> ) <wall/> </zone> > > terminate called after throwing an instance of 'util::Exception' > what(): contrib/moses2/PhraseBased/Sentence.cpp:87 in static > Moses2::Sentence* Moses2::Sentence::CreateFromStringXML(Moses2::MemPool&, > Moses2::FactorCollection&, const Moses2::System&, const string&) threw > util::Exception because `xmlOption->startPos >= ret->GetSize()'. > wall is beyond the sentence > Aborted (core dumped) >
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support