MT-ComparEval icon indicating copy to clipboard operation
MT-ComparEval copied to clipboard

Uncomment for TER

Open Uei-xian opened this issue 6 years ago • 10 comments

In my config.neon TER lines is already uncommented, why it doesn't work?

Uei-xian avatar Jun 20 '18 20:06 Uei-xian

Have you reimported your experiments? Try to remove temp directory before reimporting the experiments.

ondrejklejch avatar Jun 20 '18 20:06 ondrejklejch

But it seems I can't open localhost if I remove it... Have I deleted the wrong one?

Uei-xian avatar Jun 20 '18 20:06 Uei-xian

Have you checked that tercpp.0.6.2 works on your platform when executed manually? It is executed as an external command: https://github.com/choko/MT-ComparEval/blob/5d48281396e534545574c82521826b4709b15409/libs/Metrics/Ter.php#L48

martinpopel avatar Jun 20 '18 20:06 martinpopel

I am sorry, I meant removing only contents of the temp directory - run mkdir temp && chmod 777 temp.

ondrejklejch avatar Jun 20 '18 20:06 ondrejklejch

I've tried and it still can't work.

Uei-xian avatar Jun 20 '18 21:06 Uei-xian

What doesn't work? localhost or TER? Set this to TRUE (https://github.com/choko/MT-ComparEval/blob/master/app/bootstrap.php#L13), you might get more information. If that doesn't help, just reinstall MT-ComparEval.

ondrejklejch avatar Jun 20 '18 21:06 ondrejklejch

I mean TER, localhost works normally.

Uei-xian avatar Jun 20 '18 21:06 Uei-xian

In that case download/compile a TER version which works on your machine and then edit the path to the binary: https://github.com/choko/MT-ComparEval/blob/5d48281396e534545574c82521826b4709b15409/libs/Metrics/Ter.php#L12

martinpopel avatar Jun 20 '18 21:06 martinpopel

The download website is empty... can I find it in other place?

Uei-xian avatar Jun 20 '18 22:06 Uei-xian

I see. Try https://github.com/cservan/tercpp or http://www.cs.umd.edu/~snover/tercom/ (the latter is Java-based and you would have to change also the command on line 42, probably to something like java -Dfile.encoding=UTF8 -jar tercom.7.25.jar -N -s). Note that I have never used TER, so cannot provide more help.

martinpopel avatar Jun 20 '18 23:06 martinpopel