Hi all.

I think I found a small bug in the filter-model-given-input.pl script,  
or else I have done something wrong. The problem is the following:

After building a factored translation model with a lexicalised  
reordering model and specifying that the reordering-factors should be,  
say, "0-0,1", the resulting moses.ini file would yield:

0-0,1 msd-bidirectional-fe 6  
path.to/reordering-table.msd-bidirectional-fe.0.5.0-0,1.gz

When the filter-model-given-input.pl script arrives to line 94

$source_factor =~ s/\-\d+$//;

the regular expression fails, since \d is only for numbers.  Hence, a  
solution would be:

$source_factor =~ s/\-.+$//;

or, more restrictive:

$source_factor =~ s/\-[\d,]+$//;

I think this is a bug, although I am surprised to be the first to  
stumble into this... Maybe it's some error of mine when specifying the  
reordering-factors?

Regards,

Germán Sanchis-Trilles

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


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

Reply via email to