Hi,
Since phrase-based and chart-based decoding have ben merged "[...]" are
reserved sequences. They are treated as non-terminals, even when the
phrase-based decoder never uses that. You need to escape the brackets.
In our WIPO branch I added a check to moses so this does not happen with
phrase-based, maybe I should put it into master.
Best,
Marcin
W dniu 27.04.2015 o 09:00, joerg pisze:
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/
<http://stp.lingfil.uu.se/%7Ejoerg/>
_______________________________________________
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