最近、Python 用の TextBlob パッケージ (バージョン 0.3.7) の使用を開始しました。ドキュメントによると、この.sentimentメソッドは感情の極性と主観性のタプルを返します。定義された極性の範囲は-1~+1です。
ただし、このコードは の極性値を示します-1.24。
これは既知のバグですか、それともコードの使用方法に問題がありますか?
from text.blob import TextBlob
MyText = '''
tired of nbc universal. got 2 of the 3 periods of tonight's game and 62 of the 78 laps of the f1 race in monaco. stop the pregame crap and fill it with the event you morons!!!!!!
'''
text = TextBlob(MyText)
print text.sentiment