We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3c23ec commit 983a5aaCopy full SHA for 983a5aa
language/api/analyze_test.py
@@ -33,15 +33,15 @@ def test_analyze_sentiment(capsys):
33
'your face is really ugly and i hate it.')
34
35
sentiment = result['documentSentiment']
36
- assert sentiment['polarity'] < 0
+ assert sentiment['score'] < 0
37
assert sentiment['magnitude'] < 1
38
39
result = analyze.analyze_sentiment(
40
'cheerio, mate - I greatly admire the pallor of your visage, and your '
41
'angle of repose leaves little room for improvement.')
42
43
44
- assert sentiment['polarity'] > 0
+ assert sentiment['score'] > 0
45
46
47
0 commit comments