Govader-Backend is a microservice thats returns sentimental analysis of given sentence.
Server wrapper for GoVader Packagehttps://github.com/jonreiter/govader
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()
}
POST: http://localhost:8080/
{
"Negative": 0,
"Neutral": 0.5084745762711864,
"Positive": 0.4915254237288135,
"Compound": 0.44043357076016854
}