RapidAPI logo

Human Like Sentiment Analysis for Hotel Reviews

FREEMIUM
By unicornNLP
Updated a month ago
Travel
3.3/10
Popularity Score
1280ms
Latency
100%
Success Rate

Human Like Sentiment Analysis for Hotel Reviews API Documentation

Human-Like (Deeper than aspect-based) Sentiment Analysis focused on Hotel Reviews and other user generated content. Next-generation NLP API. It is not a tool, it is ready-to-use API, simple to understand. There are 124 semantic models (designed for Hotel Reviews) inside this API. Very high Accuracy! Precission (>95%) and Recall (>75%)

View API Details
POSTgetHumanLikeSentiment
POSTgetHumanLikeSentiment

Next-generation NLP API, very high precision (>95%). Gives back detailed human-like structured data from hotel reviews in simple form (category, aspect, feature, polarity). Unlocks the hidden power of your Reviews. More info and demo at: unicornnlp.com

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
titleSTRING
OPTIONALTitle of a review/text in UTF-8 you want to process through API. If you do not have a title to a review or other text, leave it empty.
textSTRING
OPTIONALText in UTF-8 you want to process through API. Typically, it is a review.
positivesSTRING
OPTIONALText in UTF-8 you want to process through API. If you have reviews in positive/negative form (or Pros & Cons, What do you liked/disliked?) use this field.
negativesSTRING
OPTIONALText in UTF-8 you want to process through API. If you have reviews in positive/negative form (or Pros & Cons, What do you liked/disliked?) use this field.
Code Snippet
unirest.post("https://unicornnlp-human-like-sentiment-analysis-for-hotel-reviews-v1.p.rapidapi.com/")
.header("X-RapidAPI-Host", "unicornnlp-human-like-sentiment-analysis-for-hotel-reviews-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("title=Amazing hotel!")
.send("text=Everything was great during our stay. We ordered a queen size room on the second floor. The room that we stayed in was clean and spacious. It has everything in the room that we need, also well equipped kitchen, coffee maker and so on. Bathroom was clean, lots of space and clean towels. wifi was free and works fine. room was very clean and cleaned on daily basis. Breakfast was a little bit small, but very tasty. It was also close to the airport which was important to me, also not far from the restaurants and shopping. Hotel was also nice and renovated, staff desk was very friendly and helpful. Overall this place was excellent and exceeded my expectations. Recommend this place to everyone, we will definitely come back.")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://unicornnlp-human-like-sentiment-analysis-for-hotel-reviews-v1.p.rapidapi.com/
Request Method: POST
Response Headers
Response Body
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://unicornnlp-human-like-sentiment-analysis-for-hotel-reviews-v1.p.rapidapi.com/")
.header("X-RapidAPI-Host", "unicornnlp-human-like-sentiment-analysis-for-hotel-reviews-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("title=Amazing hotel!")
.send("text=Everything was great during our stay. We ordered a queen size room on the second floor. The room that we stayed in was clean and spacious. It has everything in the room that we need, also well equipped kitchen, coffee maker and so on. Bathroom was clean, lots of space and clean towels. wifi was free and works fine. room was very clean and cleaned on daily basis. Breakfast was a little bit small, but very tasty. It was also close to the airport which was important to me, also not far from the restaurants and shopping. Hotel was also nice and renovated, staff desk was very friendly and helpful. Overall this place was excellent and exceeded my expectations. Recommend this place to everyone, we will definitely come back.")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication