Skip to content

Commit 9229a24

Browse files
committed
Change language usage doc polarity -> score. Fixes googleapis#2854
1 parent e0ccd73 commit 9229a24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/language-usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ only supports English text.
201201
>>> text_content = "Jogging isn't very fun."
202202
>>> document = client.document(text_content)
203203
>>> sentiment = document.analyze_sentiment()
204-
>>> print(sentiment.polarity)
204+
>>> print(sentiment.score)
205205
-1
206206
>>> print(sentiment.magnitude)
207207
0.8
@@ -256,7 +256,7 @@ the response is :data:`None`.
256256
NOUN: Moon
257257
PUNCTUATION: .
258258
>>> # Sentiment present if include_sentiment=True
259-
>>> print(annotations.sentiment.polarity)
259+
>>> print(annotations.sentiment.score)
260260
1
261261
>>> print(annotations.sentiment.magnitude)
262262
0.1

0 commit comments

Comments
 (0)