Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dinopuguh/gosentiwordnet
💬 Sentiment analyzer library using SentiWordnet in Go
https://github.com/dinopuguh/gosentiwordnet
go golang sentiment sentiment-analysis sentiment-analyzer sentiment-classification sentiwordnet
Last synced: about 2 months ago
JSON representation
💬 Sentiment analyzer library using SentiWordnet in Go
- Host: GitHub
- URL: https://github.com/dinopuguh/gosentiwordnet
- Owner: dinopuguh
- License: mit
- Created: 2020-04-21T09:09:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-11T05:01:50.000Z (almost 4 years ago)
- Last Synced: 2024-07-31T20:52:32.755Z (4 months ago)
- Topics: go, golang, sentiment, sentiment-analysis, sentiment-analyzer, sentiment-classification, sentiwordnet
- Language: Go
- Homepage:
- Size: 10.7 MB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- awesome-go - gosentiwordnet - Sentiment analyzer using sentiwordnet lexicon in Go. (Natural Language Processing / Morphological Analyzers)
- zero-alloc-awesome-go - gosentiwordnet - Sentiment analyzer using sentiwordnet lexicon in Go. (Natural Language Processing / Morphological Analyzers)
- awesome-go-extra - gosentiwordnet - 04-21T09:09:28Z|2021-03-11T05:01:50Z| (Bot Building / Morphological Analyzers)
README
# 💬 GoSentiwordnet
[![PkgGoDev](https://pkg.go.dev/badge/github.com/dinopuguh/gosentiwordnet/v2)](https://pkg.go.dev/github.com/dinopuguh/gosentiwordnet/v2)
[![Unit Test Status](https://github.com/dinopuguh/gosentiwordnet/actions/workflows/unit-test.yml/badge.svg?branch=master)](https://github.com/dinopuguh/gosentiwordnet/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/dinopuguh/gosentiwordnet)](https://goreportcard.com/report/github.com/dinopuguh/gosentiwordnet)
[![codecov](https://codecov.io/gh/dinopuguh/gosentiwordnet/branch/master/graph/badge.svg)](https://codecov.io/gh/dinopuguh/gosentiwordnet)Sentiment analyzer using [sentiwordnet](https://github.com/aesuli/SentiWordNet) lexicon in Go. This library produce sentiment score for each word, including positive, negative, and objective score.
## ⚙ Installation
First of all, [download](https://golang.org/dl/) and install Go `1.14` or higher is required.
Install this library using the [`go get`](https://golang.org/cmd/go/#hdr-Add_dependencies_to_current_module_and_install_them) command:
```bash
$ go get github.com/dinopuguh/gosentiwordnet/v2
```## ⚡ Quickstart
```go
package mainimport (
"fmt"goswn "github.com/dinopuguh/gosentiwordnet/v2"
)func main() {
sa := goswn.New()scores, exist := sa.GetSentimentScore("love", "v", "2")
if exist {
fmt.Println("💬 Sentiment score:", scores) // => 💬 Sentiment score: {1 0 0}
}
}
```The `GetSentimentScore` required 3 parameters(word, pos-tag, and word usage):
1. **Word**: the word want to process
2. **POS tag**: part-of-speech tag of the word
3. **Word usage**: 1 for most common usage and a higher number would indicate lesser common usages## 👍 Contributing
If you want to say **thank you** and/or support the active development of `Gosentiwordnet`:
1. Add a [GitHub Star](https://github.com/dinopuguh/gosentiwordnet/stargazers) to the project.
2. Write a review or tutorial on [Medium](https://medium.com/), [Dev.to](https://dev.to/) or personal blog.
3. Be a part of our [sponsors](https://github.com/sponsors/dinopuguh) to support this project.## 💻 Contributors
- Dino Puguh (initial works)
Open for any pull requests to develop this project.