Text Intent Recognition
The Intent Analysis model will help you capture semantics behind users' messages and assign it to the right label. It is designed to understand human conversation in the form or free text or spoken text.
API Request
Returns the predicted intent for a given phrases / sentences
POST
https://api.marsview.ai/text/intent/get_intent
Query Parameters
Name | Type | Description |
---|---|---|
jwtToken* | String | Marsview api access token. You can generate it here: https://docs.marsview.ai/speech-analytics-api/authentication |
sentences* | List | The sentences you want to match intents for |
userId* | String | Your Email or User ID |
threshold | Float | The confidence threshold for intent matching. If not specified defaults to 0.5 |
intentIds* | List | List of intent ids to match the sentences against |
Example Curl Request
Shown below is a code snippet to send a sample request for intent recognition
Example Response
Shown below is a sample JSON response from the above request.
Response Object
Field | Description |
---|---|
| The intent similarity output from the models |
| The intent Id against which the sentences are matched |
| The name of the matching intent |
| The similarity matching score ranges from 0 to 1 |
| The sentence which is used to predict intent for |
| The predicted intent |
Last updated