Ecosyste.ms: Awesome

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

https://github.com/PIMPfiction/govader_backend

Sentimental Analysis Microservice
https://github.com/PIMPfiction/govader_backend

echo-framework go golang sentiment-analysis

Last synced: about 2 months ago
JSON representation

Sentimental Analysis Microservice

Lists

README

        

# Govader Backend NLP Package (sentimental analysis NLP)

[![Go Reference](https://pkg.go.dev/badge/github.com/PIMPfiction/govader_backend.svg)](https://pkg.go.dev/github.com/PIMPfiction/govader_backend)
[![Go Report Card](https://goreportcard.com/badge/github.com/PIMPfiction/govader_backend)](https://goreportcard.com/report/github.com/PIMPfiction/govader_backend)
[![codecov](https://codecov.io/gh/PIMPfiction/govader_backend/branch/master/graph/badge.svg?token=3KEBD30Q95)](https://codecov.io/gh/PIMPfiction/govader_backend)
![master](https://github.com/PIMPfiction/govader_backend/actions/workflows/tests.yml/badge.svg)
[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go#morphological-analyzers)

Govader-Backend is a microservice thats returns sentimental analysis of given sentence.

Server wrapper for GoVader Package[https://github.com/jonreiter/govader](https://github.com/jonreiter/govader)

## Usage:

```sh
go get github.com/PIMPfiction/govader_backend
```

```go
package main

import (
vaderMicro "github.com/PIMPfiction/govader_backend"
echo "github.com/labstack/echo/v4"
"fmt"
)

func main() {
e := echo.New()
err := vaderMicro.Serve(e, "8080")
if err != nil {
panic(err)
}
fmt.Scanln()

}

```

### Sample Get Request:

#### GET: http://localhost:8080?text=I%20am%20looking%20good

### Sample Post Request:

#### POST: http://localhost:8080/
#### RequestBody: ```{"text": "I am looking good"}```

### Sample Response
```json
{
"Negative": 0,
"Neutral": 0.5084745762711864,
"Positive": 0.4915254237288135,
"Compound": 0.44043357076016854
}
```