there's probably [] characters in your training or test set. Get rid of them using scripts/tokenizer/escape-special-chars.perl or the default moses tokenizer.
Hieu Hoang Researcher New York University, Abu Dhabi http://www.hoang.co.uk/hieu On 27 April 2015 at 11:00, joerg <[email protected]> wrote: > > Hi, > > I have a factored phrase-based model and I get this error when decoding > some input that looks correct to me: > > Exception: moses/Phrase.cpp:214 in void > Moses::Phrase::CreateFromString(Moses::FactorDirection, const > std::vector<long unsigned int, std::allocator<long unsigned int> >&, const > StringPiece&, Moses::Word**) threw util::Exception because `nextPos == > string::npos'. > Incorrect formatting of non-terminal. Should have 2 non-terms, eg. [X][X]. > Current string: [11] > > I even get the BEST TRANSLATION line for the first sentence before the > decoder dies. What is going on? > > Thanks for your help > Jörg > > > ********************************************************************************** > Jörg Tiedemann > http://stp.lingfil.uu.se/~joerg/ > > > > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > >
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
