Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example curl doesn't work #4

Closed
mvdan opened this issue Nov 21, 2016 · 1 comment
Closed

Example curl doesn't work #4

mvdan opened this issue Nov 21, 2016 · 1 comment

Comments

@mvdan
Copy link

mvdan commented Nov 21, 2016

 $ curl http://localhost:5000/api --header 'content-type: application/json' --data '{text: "This is a text that I want to be analyzed."}' -X POST
{"message": "The browser (or proxy) sent a request that this server could not understand."}

I assume you meant something like this instead, which does work:

 $ curl http://localhost:5000/api --header 'Content-Type: application/json' --data '{"text": "This is a text that I want to be analyzed."}' -X POST
{"numOfSentences": 1, "lang": "en", "performance": [0.18333840370178223], "sentences": [[{"pos": "DET", "email": false, "ner": "", "stop": true, "token": ...
jgontrum added a commit that referenced this issue Nov 21, 2016
@jgontrum
Copy link
Owner

Right, thanks for pointing that out! Damn these copy-paste mistakes...

jgontrum pushed a commit that referenced this issue Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants