Open ndvbd opened 5 years ago
Can you explain how to run it?
After we do: docker build . -t syntaxnet-api
docker build . -t syntaxnet-api
I guesss we should run the container with: sudo nvidia-docker run -it -d -p 7000:7000 syntaxnet-api:latest
sudo nvidia-docker run -it -d -p 7000:7000 syntaxnet-api:latest
If I do:curl -X POST --header 'Content-Type: text/plain; charset=utf-8' --header 'Content-Language: en' -d 'Where is Paris' http://localhost:7000
curl -X POST --header 'Content-Type: text/plain; charset=utf-8' --header 'Content-Language: en' -d 'Where is Paris' http://localhost:700
I get: 405 Method Not Allowed
405 Method Not Allowed
You should post to /v1/parsey-universal-full. E.g. curl -X POST --header 'Content-Type: text/plain; charset=utf-8' --header 'Content-Language: en' -d 'Where is Paris' http://localhost:7000/v1/parsey-universal-full
/v1/parsey-universal-full
curl -X POST --header 'Content-Type: text/plain; charset=utf-8' --header 'Content-Language: en' -d 'Where is Paris' http://localhost:7000/v1/parsey-universal-full
Can you explain how to run it?
After we do:
docker build . -t syntaxnet-api
I guesss we should run the container with:
sudo nvidia-docker run -it -d -p 7000:7000 syntaxnet-api:latest
If I do:
curl -X POST --header 'Content-Type: text/plain; charset=utf-8' --header 'Content-Language: en' -d 'Where is Paris' http://localhost:700
0I get:
405 Method Not Allowed