Hi, I downloaded moses-2010-04-01.zip and I have run 'make release'. Regards, Yifeng Yu
----- 原始邮件 ----- 发件人:Barry Haddow <[email protected]> 收件人:[email protected] 主题:Re: [Moses-support] A question with train-factored-phrase-model.perl 日期:2010-5-28 14:57:59 Hi Yifeng Which version of moses are you using? This problem should have been fixed on April 6th (r3054). Have you run a 'make release' in the scripts directory recently? regards Barry On Friday 28 May 2010 04:58:49 [email protected] wrote: > Hi, > > Following the first example in "Factored Tutorial", I > enter: > train-factored-phrase-model.perl \ > --corpus factored-corpus/proj-syndicate.1000 \ > --root-dir unfactored \ > --f de \ > --e en \ > --lm 0:3:/cygdrive/c/usr/phrase/factored-corpus/surface.lm:0 > > But I get the error message back: > "you have specify which languages to condition on (f or fe); it is not done > in distance" > > I found the related source code in train-factored-phrase-model.perl: > > (1) > elsif ($reoconf =~ /^((fe)|(f))/) { > > $REORDERING_MODELS[$model_num]{"lang"} = $reoconf; > } > > (2) > #check that the required attributes are given > if (!defined($REORDERING_MODELS[$model_num]{"lang"})) { > print STDERR "you have specify which languages to > condition on (f or fe); it is not done in $r\n"; > exit(1); > } > > I think "you have specify ..." may be "you have to specify..." > > My question is: should I really need to add a parameter to specify which > languages to condition on? > > Regards, > Yifeng Yu >
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
