Hi, I've noticed that if during tuning Moses sets a weight to something like -7.53056e-05, reuse-weights.perl throws that line out. I see two options:
a) line 19 of reuse-weights.perl, change the regex from /^([\-\d\.]+)\s*$/ to /^([\-\d\.e]+)\s*$/ (allows there to be an "e" in the string) b) add a separate case to catch weights with the exponent in them and replace them with 0 (or do something else?) I assume (a) is the best course of action and that there is no reason to replace these weights with 0, but I thought I'd check first before making the fix. Suzy -- Suzy Howlett http://www.showlett.id.au/ _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
