MT Connector is no longer working with the new neural decoder of MMT
Hello support team,
I just would like to inform that the current MT connector for ModernMT is no longer working with the new API for the neural decoder. I believe it's a very easy fix though.
The new API URL now takes 2 more mandatory arguments/end points. "Source and Target".
So, the new URL would look like this:
http://localhost:8045/translate?q=world&%22%20&source=en&target=ar
Is there a quick workaround for this? How can we append these 2 parameters? I tried adding them to the context field, but apparently it didn't work. Any idea?
Thanks in advance for your support!
Mohamed Zeid
Comments (9)
-
-
@davidmeikle : It looks like the API for the ModernMT has been updated. See https://bitbucket.org/okapiframework/okapi/issues/655 for details.
Do you want fix it? (Otherwise I can do it, but it’ll take probably a while before I get to it).
-
@ysavourel Have just made a quick pull request for this (https://bitbucket.org/okapiframework/okapi/pull-requests/202) and tested using the latest MMT version.
-
- changed status to resolved
Resolved at https://bitbucket.org/okapiframework/okapi/commits/10f128bda75a Thanks @davidmeikle
-
Thank you so much for the quick fix. This is amazing. How can I get the latest version of Rainbow?
Thanks again for your great support! I appreciate it.
-
The snapshots built manually are here: http://okapiframework.org/snapshots/ (they have the fix). And normally snapshots are build at midnight ET every day here: https://okapi.ci.cloudbees.com/job/okapi-snapshot/
-
Thank you so much, @ysavourel ! I appreciate it!
-
You may want to read this https://github.com/ModernMT/MMT/issues/298 It seems that the latest version fixed the MMT API problem: "we have just release MMT v2.0.2 with the API backward compatibility. "
-
@letconex Yes, it was me who posted that issue on MMT GitHub account there and Davide did the fix, but this applies only to engines that has one language combination. If you have an engine with multiple languages, Okapi Connector won't work. So, the fix is still much needed.
I found out that people who are behind MMT and Okapi Framework are amazing and very supportive. Thanks again and wish you all a wonderful weekend!
- Log in to comment
I am not sure if this is something introduced by the new neural decoder or it's my mistake. What I am sure of is that for the SMT version of MMT, I just entered the URL of the server and it worked just fine. Any idea?
So, now if you don't add a source and target in the URL, it throws this error:
If you add the source parameter 'source=en", you get the same error but for target this time.
The error that shows up in Rainbow is:
By the way, I reported this to the MMT team
Thanks!