尝试moses的示例模型时出错
在laptopUbuntu13.04中成功安装moses后,我尝试运行示例模型 我在文件夹中创建并解压缩它。然后运行以下命令:尝试moses的示例模型时出错,moses,Moses,在laptopUbuntu13.04中成功安装moses后,我尝试运行示例模型 我在文件夹中创建并解压缩它。然后运行以下命令: ~/mosesdecoder/bin/moses -f phrase-model/moses.ini < phrase-model/in > out 我是摩西的新手,不知道为什么会出现这个错误。有人能帮我吗?或者告诉我moses.ini中每个args的含义是什么?看起来您使用的是moses v2.1的最新版本以及moses v1中的配置文件。配置文件mos
~/mosesdecoder/bin/moses -f phrase-model/moses.ini < phrase-model/in > out
我是摩西的新手,不知道为什么会出现这个错误。有人能帮我吗?或者告诉我moses.ini中每个args的含义是什么?看起来您使用的是moses v2.1的最新版本以及moses v1中的配置文件。配置文件moses.ini的格式发生了重大变化。可以使用以下方法转换旧式配置文件:
scripts/training/convert-moses-ini-to-v2.perl
摘自此处:实际上我安装了Moses-v1,没有脚本/training/convert-Moses-ini-to-v2.perl@阿里J是对的:我使用Moses-v1和Moses.ini的最新版本。谢谢你,亚历山大!
[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)
#########################
### 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