2017 © Pedro Peláez
 

library sentimentanalyser

German Sentiment analysis library for PHP.

image

aheissenberger/sentimentanalyser

German Sentiment analysis library for PHP.

  • Thursday, February 1, 2018
  • by aheissenberger
  • Repository
  • 1 Watchers
  • 1 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 38 % Grown

The README.md

Composer Library Template

Simple german text sentiment analyser, (*1)

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:, (*2)

composer require aheissenberger/sentimentanalyser:dev-master

Usage

Returns a positive number for positive sentiment association and negative number for negative sentiment association., (*3)

$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, (*4)

German sentiment word dictionary "SentiWS" http://wortschatz.uni-leipzig.de/de/download, (*5)

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, (*6)

The Versions

01/02 2018

dev-master

9999999-dev

German Sentiment analysis library for PHP.

  Sources   Download

MIT GPLv3 or Later

The Requires

  • php >=5.4

 

The Development Requires

by Andreas Heissenberger

sentiment german sentiws