Hello, I am currently trying to run a REST server to do inference and translation, so a user can just send requests as needed, however when I attempt to follow these instructions:
Yes, I’ve looked at that as well. Do I need to run the server.py file? in order to make requests from the server or is the server good to go once I have exposed the IPs/PORT/configs?
Yes I know it comes off as dumb, but the comment made it seem as if the server.py command may be simply passing the default values to the server without necessarily running it/set it listening. I like to know precisely what everything is doing so that I may accurately document.
Traceback (most recent call last):
File “server.py”, line 2, in
from onmt.bin.server import main
File “/root/opennmt/OpenNMT-py-translate-server/OpenNMT-py/onmt/init.py”, line 2, in
import onmt.inputters
File “/root/opennmt/OpenNMT-py-translate-server/OpenNMT-py/onmt/inputters/init.py”, line 6, in
from onmt.inputters.inputter import get_fields, build_vocab, filter_example
File “/root/opennmt/OpenNMT-py-translate-server/OpenNMT-py/onmt/inputters/inputter.py”, line 109
raise ValueError(f"No task specific tokens defined for {data_task}")
I am sorry, i dont quite understand - is server.py simply starting the server up so it may listen for requests? If so, am I missing some package? Otherwise I’m not sure it would be attempting to run some sort of task/job other than setting up a listening server