Sentiment Analysis: Product Review API
POSThttps://sentiment.infer.visai.ai/predict
Header
X-API-Key string required
Your API key
application/json
Raw JSON body
Request Body required
inputs object
string[]
List of sentence
Responses
- 200
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
object
items string
Input sentence
results object
Positive float
Probability positive of sentence
Neutral float
Probability neutral of sentence
Negative float
Probability negative of sentence
[
{
"inputs": "สินค้าดีใช้งานได้",
"results": {
"Positive": 0.9016399845812566,
"Neutral": 0.06638081348382456,
"Negative": 0.03197920193491887
}
}
]
Loading...