Skip to content

Instantly share code, notes, and snippets.

@vivekpadia70
Last active June 14, 2020 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivekpadia70/e333690cc6c319ded1f8d74fe3e3b711 to your computer and use it in GitHub Desktop.
Save vivekpadia70/e333690cc6c319ded1f8d74fe3e3b711 to your computer and use it in GitHub Desktop.
comprehend = boto3.client(service_name='comprehend', region_name='region', aws_access_key_id=AWS_ACCESS_KEY, aws_secret_access_key=AWS_SECRET_KEY,)
sentiment = json.dumps(comprehend.detect_sentiment(Text=text, LanguageCode='en'), sort_keys=True, indent=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment