jbuncle/php-vadersentiment

1.0.0 2020-05-24 21:02 UTC

This package is auto-updated.

Last update: 2024-09-25 07:38:55 UTC


README

VADER (Valence Aware Dictionary and sEntiment Reasoner) 是一个用于社交媒体情感分析的词典和基于规则的 sentiment analysis 工具。

示例代码

use VaderSentiment\SentimentIntensityAnalyzer;

require_once __DIR__ . "/vendor/autoload.php";

$textToTest = "VADER is smart, handsome, and funny.";

$sentimenter = new SentimentIntensityAnalyzer();
$result = $sentimenter->getSentiment($textToTest);

print_r($result);

示例代码输出

Array
(
    [neg] => 0
    [neu] => 0.337
    [pos] => 0.663
    [compound] => 0.7096
)

版权和许可证

原始源代码版权 © 2013 C.J. Hutto

在适用的情况下,移植的源代码版权 © 2016 Andrew Busby。版权所有。移植的代码在 MIT 许可下提供。许可证副本可以在 LICENSE.txt 文件中找到。

致谢

这是 originally 用 Python 编写的 vader sentiment analysis tool 的 php 版本,可在 https://github.com/cjhutto/vaderSentiment 找到

此 README 文件描述了论文的 dataset

VADER: A Parsimonious Rule-based Model for Sentiment Analysis of Social Media Text (C.J. Hutto 和 Eric Gilbert) 第八届国际网络日志和社会媒体会议 (ICWSM-14)。密歇根州安阿伯,2014 年 6 月。

引用信息

如果您在研究中使用 dataset 或任何 VADER 情感分析工具(VADER 情感词典或基于规则的 sentiment analysis 引擎的 Python 代码),请引用上述论文。例如

Hutto, C.J. & Gilbert, E.E. (2014). VADER: A Parsimonious Rule-based Model for Sentiment Analysis of Social Media Text. 第八届国际网络日志和社会媒体会议 (ICWSM-14)。密歇根州安阿伯,2014 年 6 月。

分支维护者

此存储库由 jbuncle 维护。