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