Hi Sarah,
try running the command with

LC_ALL=C java -jar ...

I think the problem is that Java assumes a German locale and expects 
floating point number with a comma and not a dot. I spent some time 
myself to figure that out while using ZMERT.
Best,
Marcin

On 18.12.2015 11:09, Sarah Schulz wrote:
> Hi,
>
> I am using z-mert for the first time since I had to implement my own
> score for tuning.
> But when I try to run it, I get the following error while parse the
> param.txt file:
>
> Exception in thread "main" java.util.InputMismatchException
>       at java.util.Scanner.throwFor(Scanner.java:864)
>       at java.util.Scanner.next(Scanner.java:1485)
>       at java.util.Scanner.nextDouble(Scanner.java:2413)
>       at MertCore.processParamFile(MertCore.java:1537)
>       at MertCore.initialize(MertCore.java:310)
>       at MertCore.<init>(MertCore.java:239)
>       at ZMERT.main(ZMERT.java:44)
>
> My param.txt looks like this:
>
> lm_0 ||| 1.0 Opt 0.5 1.5 0.5 1.5
> d_0 ||| 1.0 Opt 0.5 1.5 0.5 1.5
> tm_0 ||| 0.3 Opt 0.25 0.75 0.25 0.75
> tm_1 ||| 0.2 Opt 0.25 0.75 0.25 0.75
> tm_2 ||| 0.2 Opt 0.25 0.75 0.25 0.75
> tm_3 ||| 0.3 Opt 0.25 0.75 0.25 0.75
> w_0 ||| 0.0 Opt -0.5 0.5 -0.5 0.5
> normalization = none
>
> I was wondering if a type cast to double is missing in the code but
> before changing the z-mert code, I wanted to make sure I didn't get
> anything else wrong.
>
> Does anybody have experience with that?
>
> Cheers,
>
> Sarah
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to