From 889ac1a7e5a45aa5b7143ad9fd4b4d9e6eb65259 Mon Sep 17 00:00:00 2001 From: Sebastian Steiner Date: Tue, 11 Dec 2018 17:07:51 +0100 Subject: [PATCH] Update README.md --- service-analysis/README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/service-analysis/README.md b/service-analysis/README.md index 243c485..aa0e4c0 100644 --- a/service-analysis/README.md +++ b/service-analysis/README.md @@ -39,10 +39,9 @@ JSON string may contain more value-key pairs than 'text', but 'text' is needed f - pip -> indicoio -> flask - -> flask_restfut + -> flask_restful + ### commands - `python3.7 sentiment_analysis.py` -- positive sentiment test example: - -> `curl -vs -H 'content-type: application/json' -X POST http://localhost:8081 -d '[{"text":"happy birthday, i love you"}]'` -- negative sentiment test example: - -> `curl -vs -H 'content-type: application/json' -X POST http://localhost:8081 -d '[{"text":"i hate you, please die"}]'` +- positive sentiment test example: `curl -vs -H 'content-type: application/json' -X POST http://localhost:8081 -d '[{"text":"happy birthday, i love you"}]'` +- negative sentiment test example: `curl -vs -H 'content-type: application/json' -X POST http://localhost:8081 -d '[{"text":"i hate you, please die"}]'` -- 2.43.0