Hi Vladislav

The documentation seems to be out of date. --OnlyDirect and 
--NoPhraseCount are not recognised by the score program. I'm not sure 
why --NoLex gives you the wrong weight count though - this line in 
train-model.perl should work:

$basic_weight_count-=2 if defined($_SCORE_OPTIONS) && $_SCORE_OPTIONS =~ 
/NoLex/;

Probably the best plan is to post-process the phrase table and ini file 
to remove the extra weights,

cheers - Barry

On 07/11/12 13:27, Vladislav Nenchev wrote:
> Hallo,
>
> I have some difficulties/questions about using the ||--score-options 
> parameters.
> I am trying to achieve a phrase table with only one translation 
> function - the direct translation function. I don't want the inverse, 
> lexical or phrase penalty functions.
>
> But I can't make it happen.
> While --score-options '--NoLex' works fine, the --score-options 
> '--OnlyDirect' does nothing and when I try to use '--NoPhraseCount' 
> the train-model.perl script says that NoPhraseCount is not a valid 
> parameter.
> I would like to use all three of these options.
>
> Furthermore when I use --NoLex in the moses.ini file the settings 
> still say 5 functions and there are 5 weights for the translation model.
>
> Am I missing something? Please, help!
>
>
> Thank you!
>
> -- 
> Carpe diem
>
> Luc!fer
>
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to