Update README.md

This commit is contained in:
Alex Ellis 2018-02-23 08:22:57 +00:00 committed by GitHub
parent c118e691f8
commit a96bf1de94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ Example:
Run in the function:
```
# curl -s --fail localhost:8080/system/functions -d \
# curl -s http://localhost:8080/function/sentimentanalysis --data-binary \
'{
"service": "sentimentanalysis",
"image": "functions/sentimentanalysis",
@ -19,12 +19,12 @@ Run in the function:
Now test the function:
```
# curl localhost:8080/function/sentimentanalysis -d "Personally I like functions to do one thing and only one thing well, it makes them more readable."
# curl http://localhost:8080/function/sentimentanalysis -d "Personally I like functions to do one thing and only one thing well, it makes them more readable."
Polarity: 0.166666666667 Subjectivity: 0.6
# curl localhost:8080/function/sentimentanalysis -d "Functions are great and proven to be awesome"
# curl http://localhost:8080/function/sentimentanalysis -d "Functions are great and proven to be awesome"
Polarity: 0.9 Subjectivity: 0.875
# curl localhost:8080/function/sentimentanalysis -d "The hotel was clean, but the area was terrible"; echo
# curl http://localhost:8080/function/sentimentanalysis -d "The hotel was clean, but the area was terrible"; echo
Polarity: -0.316666666667 Subjectivity: 0.85
```