Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonreiter/govader

vader sentiment analysis in go
https://github.com/jonreiter/govader

Last synced: 3 months ago
JSON representation

vader sentiment analysis in go

Awesome Lists containing this project

README

        

# GoVader

[![GoDoc](https://godoc.org/github.com/jonreiter/govader?status.svg)](https://godoc.org/github.com/jonreiter/govader)
[![Go Report](https://goreportcard.com/badge/github.com/jonreiter/govader)](https://goreportcard.com/badge/github.com/jonreiter/govader)
[![BuildStatus](https://www.travis-ci.com/jonreiter/govader.svg?branch=master)](https://www.travis-ci.com/github/jonreiter/govader/branches)
[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/avelino/awesome-go)
[![codecov](https://codecov.io/gh/jonreiter/govader/branch/master/graph/badge.svg)](https://codecov.io/gh/jonreiter/govader)

GoVader: Vader sentiment analysis in Go

This is a port of [https://github.com/cjhutto/vaderSentiment](https://github.com/cjhutto/vaderSentiment) from
Python to Go.

There are tests which check it gives the same answers as the original package.

Usage:

```go
import (
"fmt"
"github.com/jonreiter/govader"
)

analyzer := govader.NewSentimentIntensityAnalyzer()
sentiment := analyzer.PolarityScores("Usage is similar to all the other ports.")

fmt.Println("Compound score:", sentiment.Compound)
fmt.Println("Positive score:", sentiment.Positive)
fmt.Println("Neutral score:", sentiment.Neutral)
fmt.Println("Negative score:", sentiment.Negative)

```
A server wrapper is available in https://github.com/PIMPfiction/govader_backend.