Skip to content

Used Plumber APIs in R to expose a simple model that attributes sentiments to textual document's chunks based on a defined dictionnary and simple models of regression

Notifications You must be signed in to change notification settings

alifradi/Sentiment-Analysis-Plumber-API

Repository files navigation

Sentiment-Analysis-API

Database of train FinancialPhraseBank-v1.0

Models

-Linear regression / Logistic regression

Package Dependencies:

Plumber package Reticulate package

How to reproduce 1- Download Postman From here 2- Run the script 'run_api.R' 3- Copy 'RawText.json' into the body of POST request select raw and JSON options! 4- Set URL to "http://127.0.0.1:8000/GLM" for Sentiment Polarity and "http://127.0.0.1:8000/LR" for Sentiment Intensity 5- Hit "Send"

Sentiment Polarity Sentiment Intensity

Screenshot:

Sentiment per paragraph Sentiment per page

About

Used Plumber APIs in R to expose a simple model that attributes sentiments to textual document's chunks based on a defined dictionnary and simple models of regression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published