Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncomment for TER #82

Open
Uei-xian opened this issue Jun 20, 2018 · 10 comments
Open

Uncomment for TER #82

Uei-xian opened this issue Jun 20, 2018 · 10 comments

Comments

@Uei-xian
Copy link

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

@ondrejklejch
Copy link
Owner

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

@Uei-xian
Copy link
Author

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

@martinpopel
Copy link
Collaborator

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

@ondrejklejch
Copy link
Owner

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

@Uei-xian
Copy link
Author

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

@ondrejklejch
Copy link
Owner

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.

@Uei-xian
Copy link
Author

I mean TER, localhost works normally.

@martinpopel
Copy link
Collaborator

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

@Uei-xian
Copy link
Author

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

@martinpopel
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants