Sentiment Analysis API
POSThttps://[api_name]-[api_id].infer.visai.ai/predict
Header
X-API-Key string required
Your API key
Domain Name
api_name string required
Deployed API Name
api_id string required
Deployed API ID
Get your deployed api in Library | Console.
application/json
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...