AFINN-111
收藏资源简介:
一个包含2477个英语单词及其情感评分的列表,其中负向情感的词评分为-5到0,正向情感的词评分为0到5,中性词评分为0。
A list comprising 2477 English words along with their sentiment scores, where words with negative sentiment are scored from -5 to 0, those with positive sentiment from 0 to 5, and neutral words are scored 0.
AFINN-111
概述
AFINN-111是一个包含2477个英语单词(及短语)的列表,这些单词根据情感极性(valence)进行评分。每个单词的评分范围从-5到5,其中负数表示负面情感,正数表示正面情感,0表示中性。
数据集内容
- 单词数量:2477个
- 单词特性:
- 包含拼写错误的单词
- 所有单词均为小写
- 单词可能包含数字、特殊字符(如
n00b) - 部分单词为短语,如
cool stuff - 单词可能包含特殊字符,如
cant stand中的撇号
使用方法
安装
bash npm install @stdlib/datasets-afinn-111
使用示例
javascript var afinn111 = require( @stdlib/datasets-afinn-111 );
var words = afinn111(); /* returns [ [abandon,-2], [abandoned,-2], [abandons,-2], ... ] */
注意事项
- 数据集中的单词可能包含多种字符,包括数字和特殊符号。
- 所有单词均为小写,包括短语和可能的拼写错误。
参考文献
- Nielsen, Finn Årup. 2011. "A new ANEW: Evaluation of a word list for sentiment analysis in microblogs."
- Hansen, Lars Kai, et al. 2011. "Good Friends, Bad News - Affect and Virality in Twitter."
许可证
数据集及其内容根据[Open Data Commons Attribution 1.0 License][odc-by-1.0]和[Creative Commons Attribution 4.0 International Public License][cc-by-4.0]授权。软件部分则根据[Apache License, Version 2.0][apache-license]授权。




