Problem with MERT

30 views
Skip to first unread message

Felipe Sánchez-Martínez

unread,
Mar 25, 2010, 10:23:49 AM3/25/10
to Joshua technical support
Hello all:

I am following the instructions at http://cs.jhu.edu/~ccb/joshua/ to
train Joshua on the Europarl corpus for the translation from English
to Spanish.

Having extracted the grammar rules, now I am trying to run MERT, but I
get the following error:

----------------------------------------------------
Initializing...
----------------------------------------------------

Random number generator initialized using seed: 12341234

Exception in thread "main" java.util.InputMismatchException
at java.util.Scanner.throwFor(Scanner.java:840)
at java.util.Scanner.next(Scanner.java:1461)
at java.util.Scanner.nextDouble(Scanner.java:2387)
at joshua.zmert.MertCore.processParamFile(MertCore.java:1564)
at joshua.zmert.MertCore.initialize(MertCore.java:305)
at joshua.zmert.MertCore.main(MertCore.java:3046)
Z-MERT exiting prematurely (MertCore returned 1)...

I guess it has something to do with the params file but I do not know
which is the problem.

My params file
----------------------
lm ||| 1.000000 Opt 0.1 +Inf +0.5 +1.5
phrasemodel pt 0 ||| 1.066893 Opt -Inf +Inf -1 +1
phrasemodel pt 1 ||| 0.752247 Opt -Inf +Inf -1 +1
phrasemodel pt 2 ||| 0.589793 Opt -Inf +Inf -1 +1
wordpenalty ||| -2.844814 Opt -Inf +Inf -5 0
normalization = absval 1 lm

Thanks you very much in advance for your help.

Regards
--
Felipe

Lane Schwartz

unread,
Mar 25, 2010, 10:29:13 AM3/25/10
to joshua_t...@googlegroups.com
Could you post the command you ran that gave the error below?

> --
> You received this message because you are subscribed to the Google Groups "Joshua technical support" group.
> To post to this group, send email to joshua_t...@googlegroups.com.
> To unsubscribe from this group, send email to joshua_technic...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joshua_technical?hl=en.
>

Felipe Sánchez Martínez

unread,
Mar 25, 2010, 10:49:37 AM3/25/10
to joshua_t...@googlegroups.com
Here you are:

java -cp $JOSHUA/bin joshua.zmert.ZMERT -maxMem 1500  mert/mert.config

--
Felipe
2010/3/25 Lane Schwartz <dowo...@gmail.com>



--
Felipe Sánchez Martínez
fsan...@gmail.com

Lane Schwartz

unread,
Mar 25, 2010, 10:57:56 AM3/25/10
to joshua_t...@googlegroups.com
Thanks. Could you also post your mert.config file?

Felipe Sánchez Martínez

unread,
Mar 25, 2010, 11:00:29 AM3/25/10
to joshua_t...@googlegroups.com
Find it below,
Thanks.

### MERT parameters
# target sentences file name (in this case, file name prefix)
-r    dev/reference.tok.lowercase
-rps    1            # references per sentence
-p    mert/params.txt        # parameter file
-m    BLEU 4 closest        # evaluation metric and its options
-maxIt    10            # maximum MERT iterations
-ipi    20            # number of intermediate initial points per iteration
-cmd    mert/decoder_command    # file containing commands to run decoder
-decOut    mert/output.nbest       # file prodcued by decoder
-dcfg    mert/joshua.config      # decoder config file
-N    300                     # size of N-best list
-v    1                       # verbosity level (0-2; higher value => more verbose)
-seed   12341234                # random number generator seed

2010/3/25 Lane Schwartz <dowo...@gmail.com>

Felipe Sánchez Martínez

unread,
Mar 31, 2010, 2:35:49 PM3/31/10
to joshua_t...@googlegroups.com
Hello,

Any help on this?

Thanks in advance
--
Felipe
Reply all
Reply to author
Forward
0 new messages