Skip to content

Instantly share code, notes, and snippets.

@adhorn
Created May 24, 2018 07:45
Show Gist options
  • Select an option

  • Save adhorn/d710b031d02f2e67f96ce4e5dee6ca3f to your computer and use it in GitHub Desktop.

Select an option

Save adhorn/d710b031d02f2e67f96ce4e5dee6ca3f to your computer and use it in GitHub Desktop.
AWS Comprehend
aws comprehend detect-sentiment --text "What is the difference between a Zippo and a hippo?  ✔  10:44:06
Ones really heavy, and the other is a little lighter" --language-code "en"
{
"SentimentScore": {
"Mixed": 0.047000035643577576,
"Positive": 0.22732417285442352,
"Neutral": 0.5861609578132629,
"Negative": 0.13951489329338074
},
"Sentiment": "NEUTRAL"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment