Sentiwordnet中的编号

时间:2019-01-19 04:18:51

标签: python-3.x nlp nltk sentiment-analysis

有人知道情绪同义词集提供的客观性之后的数字是什么意思吗?返回的某些单词是动词,但具有不同的数字,例如v.01或v.03,如下面的代码所示。

>>> from nltk.corpus import sentiwordnet as swn
>>> print(swn.senti_synset('breakdown.n.03'))
<breakdown.n.03: PosScore=0.0 NegScore=0.25>

>>> list(swn.senti_synsets('slow'))
[SentiSynset('decelerate.v.01'), SentiSynset('slow.v.02'),
SentiSynset('slow.v.03'), SentiSynset('slow.a.01'),
SentiSynset('slow.a.02'), SentiSynset('dense.s.04'),
SentiSynset('slow.a.04'), SentiSynset('boring.s.01'),
SentiSynset('dull.s.08'), SentiSynset('slowly.r.01'),
SentiSynset('behind.r.03')]

0 个答案:

没有答案