## 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.