Hi all,
I followed your instructions at http://opennmt.net/OpenNMT/tools/servers/ and the second option “ZeroMQ” worked for me.
I used the sample code on that page, but I got the following error:
File “zmq/backend/cython/socket.pyx”, line 617, in zmq.backend.cython.socket.Socket.send (zmq\backend\cython\socket.c:6625)
File “zmq/backend/cython/socket.pyx”, line 657, in zmq.backend.cython.socket.Socket.send (zmq\backend\cython\socket.c:6300)
TypeError: unicode not allowed, use send_string
My engine is English-Arabic, so I assume this issue has to do with the Arabic characters.
One more thing:
On the instruction page related to the first option 'Rest", this command is a bit confusing.
th tools/rest_translation_server.lua -model …/Recipes/baseline-1M-enfr/exp/model-baseline-1M-enfr_epoch13_3.44.t7 -gpuid 1 -host … -port -case_feature -bpe_model …
I understand that I should fill the … next to ‘host’ with the host, but what the port? Also, about -‘case_feature’ and 'bpe_model…"? How am I supposed to fill these blanks? Can you please provide a complete example with some notes?
Thanks