askplatypus / syntaxnet-api

A small HTTP API for SyntaxNet
Apache License 2.0
19 stars 18 forks source link

How to run #7

Open ndvbd opened 5 years ago

ndvbd commented 5 years ago

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

Tpt commented 5 years ago

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