From 8247e261f3a2fb33e01570c701ae37116b96571f Mon Sep 17 00:00:00 2001 From: Sebastian Steiner Date: Fri, 18 Jan 2019 15:43:11 +0100 Subject: [PATCH] small changes in readme --- service-analysis/README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/service-analysis/README.md b/service-analysis/README.md index 802b4eb..f2fefbc 100644 --- a/service-analysis/README.md +++ b/service-analysis/README.md @@ -41,16 +41,14 @@ The api key can be set in the file indico_api_key.txt. The current key does work ## run local ### requirements - python 3.7 -- pip - -> indicoio - -> flask - -> flask_restful +pip: +- indicoio +- flask +- flask_restful ### 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"}]'` +- 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"}]'` ## health check Under http://localhost:8081/health the service returns HTTP Status 200 if it is running OK. -- 2.43.0