2012-11-24 27 views
1

我已经在我的机器上(Windows 7 64位)成功编译了Moses(v0.91),其步骤如下:here。然而,当我尝试在Cygwin中运行以下命令来运行它的第一次:发生C++ - 当运行Moses解码器时locale名称无效异常

cd ~/mosesdecoder/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 
    input-factors: 0 
    lmodel-file: 8 0 3 lm/europarl.srilm.gz 
    mapping: T 0 
    n-best-list: nbest.txt 100 
    ttable-file: 0 0 0 1 phrase-model/phrase-table 
    ttable-limit: 10 
    weight-d: 1 
    weight-l: 1 
    weight-t: 1 
    weight-w: 0 
Exception: locale::facet::_S_create_c_locale name not valid 

有谁知道我做错了吗?

回答

1

这个工作对我来说:

export LC_ALL="C" 
+0

是它!干杯。 – jpen

相关问题