Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jonreiter/govader
- Owner: jonreiter
- License: mit
- Created: 2020-01-19T10:06:15.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-29T03:02:35.000Z (almost 2 years ago)
- Last Synced: 2024-07-31T20:52:33.310Z (6 months ago)
- Language: Go
- Size: 228 KB
- Stars: 39
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - govader - Go implementation of [VADER Sentiment Analysis](https://github.com/cjhutto/vaderSentiment). (Natural Language Processing / Morphological Analyzers)
- zero-alloc-awesome-go - govader - Go implementation of [VADER Sentiment Analysis](https://github.com/cjhutto/vaderSentiment). (Natural Language Processing / Morphological Analyzers)
- awesome-go-quant - govader - vader sentiment analysis in go (Golang / Sentiment Intensity Analyzer)
- awesome-go-extra - govader - 01-19T10:06:15Z|2022-04-08T02:28:59Z| (Bot Building / Morphological Analyzers)
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.