Skip to content

A Golang package for measuring the sentiment score of a given string.

Notifications You must be signed in to change notification settings

K4orta/sentimental-breakdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentimental Breakdown


A Go package for measuring sentiment for a given passage of text. Uses the AFINN-11

Usage example

	package main

	import(
		sentiment "github.com/k4orta/sentimental-breakdown"
	)

	fmt.Println(sentiment.Measure("Golly, this sure is swell!"))

	fmt.Println(sentiment.Measure("Come out to the farm and eat my ass, idiot."))

Api

Measure(text string) int

takes a string and returns a positive or negative number. 

About

A Golang package for measuring the sentiment score of a given string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages