RapidAPI logo

Human Like Sentiment Analysis for Hotel Reviews

フリーミアム
開発者 unicornNLP
更新日 22日前
旅行
3.7/10
人気度
1424ms
レイテンシ
100%
正常稼働率

「Human Like Sentiment Analysis for Hotel Reviews 」のドキュメント

人間に似た(アスペクトよりも深い)センチメント分析は、ホテルのレビューやユーザーが作成した他のコンテンツに焦点を当てています。次世代NLP APIそれはツールではありません、それは理解するのが簡単で、すぐに使えるAPIです。このAPIの内部には124の意味モデル(ホテルレビュー用に設計)があります。非常に高い精度!精度(> 95%)と再現(> 75%)

全文を表示する
POSTgetHumanLikeSentiment
POSTgetHumanLikeSentiment

次世代NLP API、非常に高精度(> 95%)。ホテルレビューから詳細な人間のような構造化データを単純な形式(カテゴリ、アスペクト、機能、極性)で返します。あなたのレビューの隠された力を解き放ちます。詳細情報とデモ:unicornnlp.com

ヘッダーパラメータ
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
パラメータ(Option)
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.
コードスニペット
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", "ログインしてキーを取得")
.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);
});
サンプルレスポンス
概要
リクエストURL: https://unicornnlp-human-like-sentiment-analysis-for-hotel-reviews-v1.p.rapidapi.com/
リクエストメソッド: POST
レスポンスヘッダ
レスポンスボディ

SDKをインストール(NodeJS)

インストール

Node.jsでUnirestを使用するには、NPMモジュールをインストールしてください。

$ npm install unirest

インストール完了後は、簡単にリクエストを行うことができるようになります。

var unirest = require('unirest');

リクエスト

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", "ログインしてキーを取得")
.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認証
クライアントID
クライアントシークレット
OAuth2認証