Skip to content

PIMPfiction/govader_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Govader Backend NLP Package (sentimental analysis NLP)

Go Reference Go Report Card codecov master Mentioned in Awesome Go

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

Server wrapper for GoVader Packagehttps://github.com/jonreiter/govader

Usage:

go get github.com/PIMPfiction/govader_backend
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:

Sample Post Request:

RequestBody: {"text": "I am looking good"}

Sample Response

{
  "Negative": 0,
  "Neutral": 0.5084745762711864,
  "Positive": 0.4915254237288135,
  "Compound": 0.44043357076016854
}

Releases

No releases published

Packages

No packages published

Languages