Hi Suzy, Thank you very much. Exactly what you mentioned caused the error. In my original reordering-table, in the last line, there was the translation after "|||" missing and only the source segment there (for whatever reason ;-) ) I added the necessary target segment and now the binarizing with processLexicalTable worked.
Thanks for the immediate help, Thomas Suzy Howlett wrote: > Hi Thomas, > > Checking the code it looks like it's tried to split up a line of the > reordering table at the "|||" delimiters and found a different number > of parts than the first line had. I suggest checking the original > reordering table to see if it's been corrupted somewhere. > > Suzy > > On 20/09/10 8:51 PM, Thomas Meyer wrote: >> Hi, >> >> When trying to binarize the reordering-table I get the following >> error-message: >> >> .processLexicalTable: LexicalReorderingTable.cpp:369: static bool >> Moses::LexicalReorderingTableTree::Create(std::istream&, const >> std::string&): Assertion `numTokens == tokens.size()' failed. >> Aborted >> >> 2 files are generated (...binlexr.srctree, ...binlexr.tgtdata), but >> compared to the binarized phrase-table (which worked well), there should >> be more files. >> >> Any idea? >> >> Thanks, everyone. >> >> Thomas >> >> _______________________________________________ >> Moses-support mailing list >> [email protected] >> http://mailman.mit.edu/mailman/listinfo/moses-support > -- Thomas Meyer E-Mail: [email protected] Web: www.idiap.ch _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
