Sentipop

フリーミアム
よって mlicul | 更新済み לפני חודש | Text Analysis
Health Check

N/A

README


We are happy to announce that our new Emotion Analysis API is available!

This API enables you to detect the 8 primary emotions of a paragraph of text.
In total, our API can identify 8 primary emotions.

Those are: Anger, Anticipation, Disgust, Fear, Joy, Sadness, Surprise and Trust.

Also , the API can detect the 3 intensity of each emotion in the text.

Those are:

Rage , Anger , Annoyance
Vigilance , Anticipation , Interest
Loathing , Disgust , Boredom
Terror , Fear , Apprehension
Ecstazy , Joy , Serenity
Grief , Sadness , Pensiveness
Amazement , Surprise , Distraction
Admiration , Trust , Acceptation

and the polarity of the text that is been analysed.

Maximum 2500 characters limit per request.
NOTE : If you are doing a first API call - there can be a small initial wake up delay.


Down in Python(requests) example code you can find the basic usage of the API.
The text length that we want to analyse can be max 3000 characters long in every API call.

import requests
import bs4
import json

review_list=[
"Review 1. ",
“Review 2.”,
“Review 3.”
]

for review in review_list:
print(review)
url = "https://sentipop.p.rapidapi.com/"
headers = {
“X-RapidAPI-Key”: “x______________YOUR RapidApi KEY____________x”,
“X-RapidAPI-Host”: “sentipop.p.rapidapi.com
}

x = requests.get(url+review.replace('/','').replace('"',"'"), headers=headers)
soup = bs4.BeautifulSoup(x.text, 'html.parser')
heading = soup.find('p') 
heading_data = heading.text
print(heading_data)

The API returns data in JSON format.
You can sort, list, categorise your text data based on the emotion content.

Supported languages:
Albanian,Arabic,Armenian,Azerbaijani,Belarusian,Bosnian,Bulgarian,Croatian,Chinese,Czech,Danish,Dutch,English,Estonian,Filipino,Finnish,French,German,Greek,
Hungarian,Icelandic,Irish,Italian,Japanese,Korean,Kurdish (Kurmanji),Latvian,Lithuanian,Polish,Portuguese,Romanian,Russian,Serbian,Slovak,Slovenian,
Spanish,Swedish,Thai,Turkish,Ukrainian, Vietnamese, Welsh and Zulu

If you have some difficulties or you want to report some bugs, please contact us on info@sentipop.eu for help.
Enjoy.

フォロワー:0
リソース:
製品のウェブサイト
API作成者:
M
mlicul
mlicul
評価APIにログイン
評価:5-投票:1