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