Dear Hieu Hoang,
Thanks for your quick reply. The error was fixed when I changed the mapping from 0 G 0 to 1 G 0. I have another question to confirm my understanding. As I understand, when I set: [mapping] 0 T 0 1 T 1 1 G 0 [ttable-file] 0 0 5 ./phrase-table.0-0 1,2 1,2 5 ./phrase-table.1,2-1,2 [generation-file] 1,2 0 2 ./generation.1,2-0 It means I will have translation from factor 0 to 0; 1,2 to 1,2 and have generation from factors 1,2 to factor 0 in target side. Are there two choices: one from 0 T 0 and one from 1 G 0, and they will be combined with the language model to make decision? And when I set: [mapping] 0 T 0 0 G 0 [ttable-file] 1,2 1,2 5 .../phrase-table.1,2-1,2 [generation-file] 1,2 0 2 .../generation.1,2-0 In this case, this is only one result returned from generation step 1,2 to 0, and factor 0 don't play any role here, isn't it? Many thanks for your help. Best, Thao. _____ From: Hieu Hoang [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 3:45 PM To: 'Phuong Thao'; [email protected] Subject: RE: [Moses-support] Error in moses config file? hi phuong apologies that no-one answered your original email. i see 2 issues with the ini file 1. the assert relates to 0 G 0 change it to 1 G 0 2. you have 3 language models, 1 for each factor. however, the decode path '0' only has word factors. you should try to change the '0' path to make the other factors too, eg [ttable-file] 0,1,2 0,1,2 5 /home/thao/Factored_Model/Test3_Lemma-POS/model/phrase-table.0-0 . . _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phuong Thao Sent: 04 February 2008 03:12 To: [email protected] Subject: [Moses-support] Error in moses config file? Dear Moses-support, Maybe my last email had been missed so I re-post it. In decoding phase, after finished loading phrase tables, I met this error message: moses: StaticData.cpp:722: bool StaticData::LoadMapping(): Assertion `vectorList == previousVectorList || vectorList == previousVectorList + 1' failed. I think there is something wrong with my config in moses.ini file. ######################### ### MOSES CONFIG FILE ### ######################### # input factors [input-factors] 0 1 2 # mapping steps [mapping] 0 T 0 1 T 1 0 G 0 # translation tables: source-factors, target-factors, number of scores, file [ttable-file] 0 0 5 /home/thao/Factored_Model/Test3_Lemma-POS/model/phrase-table.0-0 1,2 1,2 5 /home/thao/Factored_Model/Test3_Lemma-POS/model/phrase-table.1,2-1,2 # generation models: source-factors, target-factors, number-of-weights, filename [generation-file] 1,2 0 2 /home/thao/Factored_Model/Test3_Lemma-POS/model/generation.1,2-0 # language models: type(srilm/irstlm), factors, order, file [lmodel-file] 0 0 3 /home/thao/Factored_Model/Test3_Lemma-POS/TrainingLM/Corpus.words.lm 0 1 5 /home/thao/Factored_Model/Test3_Lemma-POS/TrainingLM/CorpusPOS.lm 0 2 3 /home/thao/Factored_Model/Test3_Lemma-POS/TrainingLM/Corpus.lemma.lm # limit on how many phrase translations e for each phrase f are loaded # 0 = all elements loaded [ttable-limit] 20 20 0 # distortion (reordering) weight [weight-d] 0.6 # language model weights [weight-l] 0.1667 0.1667 0.1667 # translation model weights [weight-t] 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 # generation model weights [weight-generation] 0.3 0 # word penalty [weight-w] -1 [distortion-limit] 6 Could you tell me about this error? Thank you very much for your help. Best regards, Thao.
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
