ihmissuti

ihmissuti / FinnishSentimentAnalysis / 0.3.0

README.md

Overview

Simple sentiment analysis for Chinese text that returns wether the input text is 'positive', 'negative' or 'neutral'. The algorithm uses AFINN-165 wordlist and word stemming for the sentiment analysis.

Usage

Input

ParameterDescription
textThe string input

Output

ParameterDescription
sentimentSentiment category string 'positive', 'neutral', 'negative'
positiveInteger 1 if sentiment is positive. 0 if neutral or negative
negativeInteger 1 if sentiment is negatice. 0 if neutral or positive

Examples

input: {"text":"sain ihanaa palvelua"} output: {"negative":0,"positive":1,"sentiment":"positive"}