Hi Daniel,
sorry for the late answer, I actually found your post because I had the
same error:
main::create_extractor_script() called too early to check prototype at
./mert-moses.pl line 666
It is due to the fact that the function create_extractor_script is
defined with parentheses (thus it is called before it is defined, I
guess). It should be
sub create_extractor_script
{
instead of
sub create_extractor_script()
{
However, it is just a warning.
Patrik
> I've got a quick question regarding the tuning of hierarchical phrase-based
> models. When calling mert, my terminal outputs an error I can't find in the
> mailing lists:
>
> main::create_extractor_script() called too early to check prototype at
> ./mert-moses.pl line 666
>
> The script didn't stop at that point and finished processing, but only
> performed two mert runs. The created phrase-table in
> my/path/to/tuning/mert/filtered resulted in a 0 Mbyte file. The moses ini I
> passed to mert was configured with KenLM.
>
> That's my call:
>
> /mert-moses.pl
> /home/user/moses/chart/tuning/tuning.en
> /home/user/moses/chart/tuning/tuning.de
> /home/user/moses/mosesdecoder/moses-chart-cmd/src/moses_chart
> /home/user/moses/mosesdecoder/model/moses_chart.ini
> -working-dir /home/user/moses/chart/tuning/mert
> -mertdir /home/user/moses/mosesdecoder/mert
> -rootdir /home/user/moses/mosestools/scripts-20111024-1127
>
> Any guesses how to fix this? Help is very much appreciated.
>
> Thanks a lot,
> Daniel
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support