I've created a sentiment analysis REST API for the community ... Have a look
Link : https://sentim-api.herokuapp.com
How to use
Just send a POST request to
https://sentim-api.herokuapp.com/api/v1/
with headers of
Accept: "application/json",
"Content-Type": "application/json"
and body
{
"text": "Your text here"
}
And you'll get response like this:
{
"result": {
"polarity": 0.11,
"type": "positive"
},
"sentences": [
{
"sentence": "We have been through much darker times than these, and somehow each generation of Americans carried us through to the other side,\" he said.",
"sentiment": {
"polarity": 0.04,
"type": "positive"
}
},
{
"sentence": "\"Not by sitting around and waiting for something to happen, not by leaving it to others to do something, but by leading that movement for change themselves.",
"sentiment": {
"polarity": 0,
"type": "neutral"
}
},
{
"sentence": "And if you do that, if you get involved, and you get engaged, and you knock on some doors, and you talk with your friends, and you argue with your family members, and you change some minds, and you vote, something powerful happens.",
"sentiment": {
"polarity": 0.3,
"type": "positive"
}
}
]
}
Enjoy 😎😎😎😎
Top comments (11)
Awesome! How does it works?
I can't understand what are you saying.
Are you asking how can you use this API ?
Elaborate please.
How do you build this api? Do you used any machine learning?
Yeah NLP algorithm
Is the code on GitHub?
No will make it open source soon, I don't store any data though
Would just like to see the code
It's not working currently? I get an Application error
Sorry @abrkic0 I was not online, It will start working from tomorrow.
Once again sorry for not being able to reply on time.
@sharadcodes is this on a heroku free dyno? If yes, do you plan to maintain this since Heroku is now moving to paid only mode?
Does it have multiple language support?