syntaxnet-api icon indicating copy to clipboard operation
syntaxnet-api copied to clipboard

How to run

Open ndvbd opened this issue 6 years ago • 1 comments

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:7000

I get: 405 Method Not Allowed

ndvbd avatar Apr 05 '19 12:04 ndvbd

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

Tpt avatar Apr 07 '19 20:04 Tpt