<style id="sinamailpaperfilter">.sinamailpaper-0{cursor:text;}.sinamailpaper-0
td,.sinamailpaper-0 textarea,.sinamailpaper-0 input,.sinamailpaper-0
br,.sinamailpaper-0 div,.sinamailpaper-0
span{font-size:14px;font-family:"宋体",Verdana,Arial,Helvetica,sans-serif;line-height:1.5;}.sinamailpaper-0
p{/**margin:0.2em auto;*/margin:0px;}.sinamailpaper-0
img{border:0;}.sinamailpaper-0 pre{white-space:normal;}.sinamailpaper-0
form{margin:0;}body{font-size:14px;}p{margin:0px;}</style>Hi,<BR> <BR>Sorry, my original mail may contain a lot of unreadable characters "&nbsp", so I send it again:<BR> <BR><BR>Following the first example in "Factored Tutorial", I enter:<BR> train-factored-phrase-model.perl \<BR> --corpus factored-corpus/proj-syndicate.1000 \<BR> --root-dir unfactored&!
nbsp; \<BR> --f de \<BR> --e en \<BR> --lm 0:3:/cygdrive/c/usr/phrase/factored-corpus/surface.lm:0<BR><BR>But I get the error message back:<BR>"you have specify which languages to condition on (f or fe); it is not done in distance"<BR><BR>I found the related source code in train-factored-phrase-model.perl:<BR> (1)<BR> elsif ($reoconf =~ /^((fe)|(f))/) {<BR> $REORDERING_MODELS[$model_num]{"lang"} = $reoconf;<BR> }<BR><BR> (2) <BR> #check that the required attributes are given<BR> if (!defined($REORDERING_MODELS[$model_num]{"lang"})) {<BR>&!
nbsp; print STDERR "you have&nbs
p
;specify which languages to condition on (f or fe); it is not done in $r\n";<BR> exit(1);<BR> }<BR><BR>I think "you have specify ..." may be "you have to specify..."<BR><BR>My question is: should I really need to add a parameter to specify which languages to condition on?<BR><BR>Regards,<BR>Yifeng Yu<BR>
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support