We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0ccd73 commit 9229a24Copy full SHA for 9229a24
docs/language-usage.rst
@@ -201,7 +201,7 @@ only supports English text.
201
>>> text_content = "Jogging isn't very fun."
202
>>> document = client.document(text_content)
203
>>> sentiment = document.analyze_sentiment()
204
- >>> print(sentiment.polarity)
+ >>> print(sentiment.score)
205
-1
206
>>> print(sentiment.magnitude)
207
0.8
@@ -256,7 +256,7 @@ the response is :data:`None`.
256
NOUN: Moon
257
PUNCTUATION: .
258
>>> # Sentiment present if include_sentiment=True
259
- >>> print(annotations.sentiment.polarity)
+ >>> print(annotations.sentiment.score)
260
1
261
>>> print(annotations.sentiment.magnitude)
262
0.1
0 commit comments