Anita Gojun <Anita.Gojun@...> writes:

> 
> 
> Hello,
> I have some problems with running mert when the SL input is a lattice. 
> 1) Weight-i
> The transition probabilities in my lattices should not have an impact
> on the probability of a generated hypothesis. How can I tell
> mert that "weight-i" should not be tuned? 

You could fiddle with the mert-moses.pl script (line 73) to limit the range:

"I"  => [ [ 0.0, 0.0, 0.0 ],],  # input lattice scores

Or you use the --activate-features option to selectively activate features.

> 2) Mert aborts with an error message:
> I ran mert with a SL input in a lattice format using the following
> command:scripts-20110203-1116/training/mert-moses.pl
> --no-filter-phrase-table --decoder-flags '-inputtype 2 -weight-i 0'
> en_lattice dev_de moses-cmd/src/moses model/moses_lattice.ini
> --working-dir tuning_lattice --rootdir scripts-20110203-1116
> Running this command leads to the following error:Can't use an undefined value
as an ARRAY reference at
> scripts-20110203-1116/training/mert-moses.pl line 688.

mert doesn't use the decoder flags itself. you need to include weight-i in your
moses.ini file:

[weight-i]
0

hope this helps,
Rico

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

Reply via email to