aheissenberger/sentimentanalyser
Composer 安装命令:
composer require aheissenberger/sentimentanalyser
包简介
German Sentiment analysis library for PHP.
关键字:
README 文档
README
Simple german text sentiment analyser
Features
- German sentiment word dictionary "SentiWS"
- PSR-4 autoloading compliant structure
- Unit-Testing with PHPUnit
Installation
To get the latest version of Sentiment Analysis, simply add the following line to the require block of your composer.json file:
composer require aheissenberger/sentimentanalyser:dev-master
Usage
Returns a positive number for positive sentiment association and negative number for negative sentiment association.
$var = new aheissenberger\sentimentanalyser\Sentiment;
echo $var->analyse('Es ist nicht so toll');
//=> (negative)
Create Dictionary from SentiWS
php -f ./helper/create_dict.php > ./src/dicts/de.php
Credits
This project is based on this javascript implementation: https://github.com/syzer/sentiment-analyser
German sentiment word dictionary "SentiWS" http://wortschatz.uni-leipzig.de/de/download
R. Remus, U. Quasthoff & G. Heyer: SentiWS - a Publicly Available German-language Resource for Sentiment Analysis. In: Proceedings of the 7th International Language Ressources and Evaluation (LREC'10), pp. 1168-1171, 2010
统计信息
- 总下载量: 52.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-28