Vote count:
0
After successfully installing moses in my laptop(Ubuntu13.04), I try to run the sample-models(Run moses for the first time).
I wget sample-models.tgz and extract it in the folder. And then run the command:
~/mosesdecoder/bin/moses -f phrase-model/moses.ini < phrase-model/in > out
And it failed with the following error:
[user@my-pc sample-models]$ ~/mosesdecoder/bin/moses -f phrase-model/moses.ini < phrase-model/in > out
Defined parameters (per moses.ini or switch):
config: phrase-model/moses.ini
feature: IRSTLM name=LM factor=0 order=3 num-features=1 path=lm/europarl.srilm.gz Distortion WordPenalty UnknownWordPenalty PhraseDictionaryMemory input-factor=0 output-factor=0 path=phrase-model/phrase-table num-features=1 table-limit=10
input-factors: 0
mapping: T 0
n-best-list: nbest.txt 100
weight: WordPenalty0= 0 LM= 1 Distortion0= 1 PhraseDictionaryMemory0= 1
ERROR:Unknown parameter feature
ERROR:Unknown parameter weight
ERROR:No phrase translation table (ttable-file)
Here's the phrase-model/moses.ini:
#########################
### MOSES CONFIG FILE ###
#########################
# input factors
[input-factors]
0
# mapping steps, either (T) translation or (G) generation
[mapping]
T 0
[feature]
IRSTLM name=LM factor=0 order=3 num-features=1 path=lm/europarl.srilm.gz
Distortion
WordPenalty
UnknownWordPenalty
PhraseDictionaryMemory input-factor=0 output-factor=0 path=phrase-model/phrase-table num-features=1 table-limit=10
[weight]
WordPenalty0= 0
LM= 1
Distortion0= 1
PhraseDictionaryMemory0= 1
[n-best-list]
nbest.txt
100
I'm a newbie to moses and have no idea that why this error appears. Could anyone help me with this? Or tell me what every args means in the moses.ini?
asked 23 secs ago
Aucun commentaire:
Enregistrer un commentaire