{"general_sentiment":0.714,"categories":{"0":{"name":"location","count":1,"sentiment_score":1},"1":{"name":"hostel","count":3,"sentiment_score":1.667},"2":{"name":"service","count":1,"sentiment_score":-1},"3":{"name":"price","count":2,"sentiment_score":0}},"aspects":{"0":{"name":"close to","count":1,"sentiment_score":1},"1":{"name":"opinion","count":2,"sentiment_score":2},"2":{"name":"check-in","count":1,"sentiment_score":-1},"3":{"name":"common room","count":1,"sentiment_score":1},"4":{"name":"payment","count":2,"sentiment_score":0}},"semantic_analysis":{"0":{"id_semantic_model":179,"name_semantic_model":"close_to_airport","description":"The hostel is close to the airport, short drive, minutes from airport","id_opposite_semantic_model":null,"category":"location","aspect":"close to","feature":"airport","polarity":1,"segment":"We only stayed at this hostel for one night because it was convenient to the airport"},"1":{"id_semantic_model":226,"name_semantic_model":"overall_good_satisfied","description":"The customer was satisfied in general, good overall, nice stay, good experience, good place, enjoyable experience, everything we needed, met my expectations","id_opposite_semantic_model":228,"category":"hostel","aspect":"opinion","feature":"overall good, satisfied","polarity":2,"segment":"We only stayed at this hostel for one night because it was convenient to the airport"},"2":{"id_semantic_model":231,"name_semantic_model":"check_in_slow_bad","description":"Check-in/out was slow, took forever, early check in not permitted, long lines, queue, took over an hour, inconvenient","id_opposite_semantic_model":227,"category":"service","aspect":"check-in","feature":"slow","polarity":-1,"segment":"The check in process took 30 minutes, which frustrated us because there were a lot of people checking in at the same time"},"3":{"id_semantic_model":325,"name_semantic_model":"common_social_room_available","description":"The common area was available, there is common area, big social area","id_opposite_semantic_model":349,"category":"hostel","aspect":"common room","feature":"available","polarity":1,"segment":"The shared bathrooms weren't too crowded and the common room had billiards and ping pong"},"4":{"id_semantic_model":120,"name_semantic_model":"bill_problems","description":"There was a problem with the bill/payment, payment problems, double charged, incorrectly charged, card mix up, bill mess up, problem with paper receipt","id_opposite_semantic_model":null,"category":"price","aspect":"payment","feature":"bill problem","polarity":-1,"segment":"However, we did have some issues with the payment because they only accepted cash"},"5":{"id_semantic_model":72,"name_semantic_model":"hostel_adequate_price","description":"The hostel was reasonably priced, good price, hostel adequate priced, good deal, worth the money, good value, good experience for the price","id_opposite_semantic_model":71,"category":"price","aspect":"payment","feature":"adequate price","polarity":1,"segment":"Despite this, the hostel offered good value for the money"},"6":{"id_semantic_model":226,"name_semantic_model":"overall_good_satisfied","description":"The customer was satisfied in general, good overall, nice stay, good experience, good place, enjoyable experience, everything we needed, met my expectations","id_opposite_semantic_model":228,"category":"hostel","aspect":"opinion","feature":"overall good, satisfied","polarity":2,"segment":"Overall, it was a good choice for a one night stay"}},"semantic_summary":{"0":"The hostel is close to the airport","1":"The customer was satisfied in general","2":"Check-in/out was slow","3":"The common area was available","4":"There was a problem with the bill/payment","5":"The hostel was reasonably priced"}}
curl --location --request POST 'https://zylalabs.com/api/877/semantic+analysis+for+hostel+reviews+api/664/analysis?text=We only stayed at this hostel for one night because it was convenient to the airport. The check-in process took 30 minutes, which frustrated us because there were a lot of people checking in at the same time. Besides that, our experience at the hostel was positive. The shared bathrooms were not too crowded and the common room had billiards and ping-pong. However, we did have some issues with the payment because they only accepted cash. Despite this, the hostel offered good value for the money. Overall, it was a good choice for a one-night stay.' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 旅馆评论的语义分析 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
关于API:
宿舍评论的语义分析API允许用户分析客户对宿舍的评论,并检索评论中表达的主要主题和情感信息。该API返回关键词和短语的列表,以及每条评论的情感分数,分数为1表示积极评论,分数为-1表示消极评论。该API对希望了解客户评论中表达的主要主题和情感的宿舍老板,以及希望了解特定宿舍评论总体情感的旅行者非常有用。
传递您想分析的文本,并接收其中的不同意图及情感分数。
宿舍预订网站或应用可以使用该API为用户提供关于特定宿舍评论中表达的主要主题和情感的摘要。
宿舍管理平台可以使用该API帮助宿舍老板了解客户评论中提到的主要问题和满意领域,以改善他们的业务。
旅行网站或应用可以使用该API帮助游客在预订住宿前了解宿舍的整体质量和声誉。
宿舍评论网站或应用可以使用该API自动分类和总结客户评论,以便在网站或应用上展示。
市场研究公司可以使用该API收集和分析一系列宿舍的客户评论,以追踪趋势并识别客户满意度的关键驱动因素。
客户服务平台可以使用该API自动分类和转发客户评论至适当的部门或团队进行后续处理。
除了每月的API调用次数外,还有每秒请求1次的限制。
分析端点返回一个综合输出,包括总体情感、类别、方面、语义分析和提供的评论文本的语义摘要
响应中的关键字段包括“总体情感”“类别”(带有名称和情感评分)“方面”(带有名称和情感评分)以及“语义分析”(详细说明具体情感和描述)
响应数据结构为JSON对象,包含用于类别、方面和语义分析的嵌套对象,使用户能够轻松访问详细的情感和主题信息
分析端点提供了有关客户情绪、主要主题和旅馆评论特定方面的见解,例如位置、服务和价格,帮助用户理解整体客户满意度
用户可以通过提供不同的评论文本进行分析来自定义他们的请求,使得API能够根据每个评论的具体内容返回量身定制的见解
“general_sentiment”表示整体情感(积极或消极)“categories”代表主题如“地点”或“服务”而“aspects”提供与评论中提到的特定特征相关的详细情感
数据准确性通过先进的语义分析算法得以维护,这些算法评估评论的上下文和情感,确保对客户意见和体验的可靠洞察
典型的用例包括为预订平台总结评论,帮助旅馆老板确定改进领域,以及让旅行者在预订前评估旅馆的质量