Awesome Go

gosentiwordnet

CategoryNatural Language Processing
SubcategoryMorphological Analyzers
Stars0

Sentiment analyzer using sentiwordnet lexicon in Go

About gosentiwordnet

💬 GoSentiwordnet

PkgGoDev Unit Test Status Go Report Card codecov

Sentiment analyzer using sentiwordnet lexicon in Go. This library produce sentiment score for each word, including positive, negative, and objective score.

⚙ Installation

First of all, download and install Go 1.14 or higher is required.

Install this library using the go get command:

$ go get github.com/dinopuguh/gosentiwordnet/v2

⚡ Quickstart

package main

import (
    "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 to the project.
  2. Write a review or tutorial on Medium, Dev.to or personal blog.
  3. Be a part of our sponsors to support this project.

💻 Contributors

  • Dino Puguh (initial works)

Open for any pull requests to develop this project.

Frequently Asked Questions

What is gosentiwordnet?

gosentiwordnet is a Natural Language Processing library for the Go programming language. Sentiment analyzer using sentiwordnet lexicon in Go

How do I install gosentiwordnet?

Install gosentiwordnet with the Go module system using `go get dinopuguh/gosentiwordnet`. Check the repository for the current installation instructions.

What category does gosentiwordnet belong to?

gosentiwordnet is listed under Natural Language Processing, specifically Morphological Analyzers.

← Back to Morphological Analyzers