We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0ccd73 + 9229a24 commit db6f7d1Copy full SHA for db6f7d1
1 file changed
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