Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert language update for now
Change-Id: I8867f154e9a5aae00d0047c9caf880e5e8f50c53
  • Loading branch information
Jon Wayne Parrott committed Aug 7, 2017
commit 7f3a3c21b6ea880c337940bb0e9fc16828ae73a3
2 changes: 1 addition & 1 deletion language/cloud-client/v1/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-language==0.27.0
google-cloud-language==0.26.1
2 changes: 2 additions & 0 deletions language/cloud-client/v1/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def sentiment_text(text):
# document.type == enums.Document.Type.HTML
sentiment = client.analyze_sentiment(document).document_sentiment

import pdb; pdb.set_trace()

print('Score: {}'.format(sentiment.score))
print('Magnitude: {}'.format(sentiment.magnitude))
# [END migration_analyze_sentiment]
Expand Down