We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
基于人工整理的情感词典,计算文本的情感倾向值,其值介于 0~1 之间。
>>> import jionlp as jio >>> lexicon_sentiment = jio.sentiment.LexiconSentiment() >>> text = '14岁女孩坠亡生前遭强奸致孕。' >>> result = lexicon_sentiment(text) >>> print(result) # 0.0019012