#42
authorSebastian Steiner <e1029038@student.tuwien.ac.at>
Tue, 11 Dec 2018 16:02:10 +0000 (17:02 +0100)
committerSebastian Steiner <e1029038@student.tuwien.ac.at>
Tue, 11 Dec 2018 16:02:10 +0000 (17:02 +0100)
service-analysis/README.md

index a4d4cc4e353fb4f1c5096c55508c5167e4c4d627..9fe348716ea7fde0be5ab15a4e1b2e0d3f645e0d 100644 (file)
@@ -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"}]'`