Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Rest Server issue: source text is sent but no translation is returned #4

Open
mzeidhassan opened this issue Sep 12, 2017 · 3 comments

Comments

@mzeidhassan
Copy link

mzeidhassan commented Sep 12, 2017

Hi Alexander,

It took me a while to figure out how to run the Rest server and I used your Flask server http://github.com/OpenNMT/Server/

As you can see in the screen shot, it seems that the source text is sent, but no translation is returned either in the terminal or the web page. Any idea why?

I tested it first with source 'word', then the sentence "You can print all files directly.', but nothing is returned.

Here is a screen shot

https://www.dropbox.com/s/1b3k9a3nri6oj9w/opennmt.PNG?dl=0

Thanks in advance for your support.

Kind regards,
Mohamed

@mzeidhassan mzeidhassan changed the title Rest Server issue: translated is sent but nothing is returned Rest Server issue: source text is sent but no translation is returned Sep 12, 2017
@mzeidhassan mzeidhassan reopened this Sep 14, 2017
@starnleymbote
Copy link

@mzeidhassan am experiencing the same issue as yours.. sending queries but cant get their translation.
Do you have any solution ??

@mzeidhassan
Copy link
Author

@starnleymbote I am no longer using OpenNMT for now, but the last time I tested the LUA version, I managed to run the REST server and return translations correctly. Make sure you tokenize your training corpus.

You may also want to try this as well
http://forum.opennmt.net/t/simple-opennmt-py-rest-server/1392

Good luck!
Thanks,
Mohamed

@starnleymbote
Copy link

@mzeidhassan thanks .... let me try out your option.

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

No branches or pull requests

2 participants