【文件属性】:
文件名称:极性:检测文本的极性(情感)
文件大小:13KB
文件格式:ZIP
更新时间:2021-02-05 03:16:34
emoji sentiment afinn polarity valence
极性
根据和检测文本的极性。
安装
:
npm install polarity
利用
var polarity = require ( 'polarity' )
polarity ( [ 'some' , 'positive' , 'happy' , 'cats' ] )
产量:
{
polarity : 5 ,
positivity : 5 ,
negativity : 0 ,
positive : [ 'happy' , 'positive' ] ,
negative : [ ]
}
polarity ( [ 'darn' , 'self-deluded'
【文件预览】:
polarity-master
----.gitignore(90B)
----package.json(2KB)
----.npmrc(18B)
----.travis.yml(437B)
----build.js(344B)
----index.js(1KB)
----.prettierignore(38B)
----emoji.json(4KB)
----license(1KB)
----readme.md(3KB)
----test()
--------index.js(3KB)
--------fixtures()
----funding.yml(15B)