ah, i didn't know the mert-moses.pl script writes to the ini file with the
values from --decoder-flags.
I'm not gonna change mert-moses as it's likely break it.
I could change how the decoder -feature-overwrite works. At the moment,
it's
-feature-overwrite 'TranslationModel0 table-limit=100'
I can change it to
-feature-overwrite TranslationModel0 table-limit 100
i.e. don't have quotes or the equal sign.
This should work with mert-moses.pl. It will take some testing
On 4 March 2014 23:28, Kenneth Heafield <[email protected]> wrote:
> Dear Moses,
>
> As is the custom of Philipp's people, I ran
>
> $moses/scripts/training/mert-moses.pl $data/tuning/input.tc.*
> $data/tuning/reference.tc.* $moses/bin/moses $data/moses.ini --nbest 100
> --working-dir $mert --decoder-flags "-threads 32 -mp -search-algorithm
> 1 -cube-pruning-pop-limit 1000 -s 1000 -feature-overwrite
> 'TranslationModel0 table-limit=100' -max-trans-opt-per-coverage 100 -v 0
> " --rootdir $moses/scripts -mertdir $moses/bin --batch-mira
> --return-best-dev -maximum-iterations 25 --threads 32
> --no-filter-phrase-table --continue
>
> That failed part way through (it completed 12 iterations) and I got
> desperate enough to pick the best iteration by BLEU e.g.
> mert/run09.moses.ini . This file contains, in part, the following:
>
> [feature-overwrite]
> 'TranslationModel0
> table-limit=100'
>
> After editing the file to use test-set filtered evaluation set, I ran
> Moses and got this error:
>
> Exception: moses/StaticData.cpp:1153 in void
> Moses::StaticData::OverrideFeatures() threw util::Exception because
> `toks.size() <= 1'.
> Incorrect format for feature override: table-limit=100'
>
> It seems mert-moses.pl is generating moses.ini files that the decoder is
> unwilling to accept.
>
> Kenneth
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support