I'm glad to say that this info solved my problem as well. /Lars sorry guys, my fault. We've been fiddling with the file format.
I've updated & uploaded working sample files On 06/08/2010 14:37, Sonja PETROVIĆ LUNDBERG wrote: > It's working, thank you! > > Regards, > Sonja > > 2010/8/6 Barry Haddow<[email protected]>: >> Hi Sonja >> >> The sample models have not yet been updated to take account of the new phrase >> table format. You should be able to edit the models by hand, changing >> >> der ||| the ||| ||| ||| 0.3 >> >> to >> >> der ||| the ||| 0.3 ||| ||| >> >> etc, >> >> >> regards >> Barry ________________________________________ Från: [email protected] [[email protected]] för Lars Ahrenberg [[email protected]] Skickat: den 5 augusti 2010 19:05 Till: [email protected] Ämne: [Moses-support] Failure in decoding with sample model Hi, I've installed the latest version of Moses; when testing with the sample model, moses fails to translate giving the message below. Binary phrase table files have been created in the phrase-model directory. Thanks for any help, /Lars l...@lah-laptop:~/mosesdecoder/sample-models/phrase-model$ ~/mosesdecoder/moses-cmd/src/moses -f moses.ini < in Defined parameters (per moses.ini or switch): DPR-file: DPR-file.txt config: moses.ini input-factors: 0 lmodel-file: 0 0 3 /home/lah/mosesdecoder/sample-models/lm/europarl.srilm.gz mapping: T 0 n-best-list: nbest.txt 100 ttable-file: 1 0 0 1 /home/lah/mosesdecoder/sample-models/phrase-model/phrase-table ttable-limit: 10 weight-DPR: 3 weight-d: 1 weight-l: 1 weight-t: 1 weight-w: 0 Loading lexical distortion models...have 0 models Start loading LanguageModel /home/lah/mosesdecoder/sample-models/lm/europarl.srilm.gz : [0.000] seconds Finished loading LanguageModels : [2.000] seconds Start loading PhraseTable /home/lah/mosesdecoder/sample-models/phrase-model/phrase-table : [2.000] seconds filePath: /home/lah/mosesdecoder/sample-models/phrase-model/phrase-table Finished loading phrase tables : [2.000] seconds IO from STDOUT/STDIN Created input-output object : [2.000] seconds Translating: das ist ein kleines haus reading bin ttable size of OFF_T 8 binary phrasefile loaded, default OFF_T: -1 lt-moses: TargetPhrase.cpp:146: void Moses::TargetPhrase::SetScore(const Moses::ScoreProducer*, const Moses::Scores&, const std::vector<float, std::allocator<float> >&, float, const Moses::LMList&): Assertion `weightT.size() == scoreVector.size()' failed. Avbruten (SIGABRT) _______________________________________________ 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
