Skip to content

Commit

Permalink
Merge pull request #2855 from daspecster/fix-language-doc-typo
Browse files Browse the repository at this point in the history
Change language usage doc polarity -> score.
  • Loading branch information
daspecster committed Dec 12, 2016
2 parents e0ccd73 + 9229a24 commit db6f7d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/language-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ only supports English text.
>>> text_content = "Jogging isn't very fun."
>>> document = client.document(text_content)
>>> sentiment = document.analyze_sentiment()
>>> print(sentiment.polarity)
>>> print(sentiment.score)
-1
>>> print(sentiment.magnitude)
0.8
Expand Down Expand Up @@ -256,7 +256,7 @@ the response is :data:`None`.
NOUN: Moon
PUNCTUATION: .
>>> # Sentiment present if include_sentiment=True
>>> print(annotations.sentiment.polarity)
>>> print(annotations.sentiment.score)
1
>>> print(annotations.sentiment.magnitude)
0.1
Expand Down

0 comments on commit db6f7d1

Please sign in to comment.