Text Dialog Tags
Dialog tag classification is the task of classifying an utterance with respect to the function it serves in a dialogue, i.e. the act the speaker is performing

API Request

post
https://api.marsview.ai/text/dialog_tag
/get_dialog_tag
Returns the predicted dialog tag for a given sentence

Example Curl Request

Shown below is a code snippet to generate an API token
1
curl --location --request POST 'https://api.marsview.ai/cb/v1/auth/create_access_token' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jwtToken": "Insert JWT token Key",
5
"sentence": "Insert your sentece for dialog tag prediction here",
6
"userId" : "[email protected]"
7
}'
Copied!

Example Response

Shown below is a sample JSON response from the above request.
1
{
2
"status" : true,
3
"error" : {},
4
"data" : {
5
"dialogue_tag": "statement-opinion"
6
}
7
"user_id": "[email protected]",
8
}
Copied!

Response Object

Field
Description
dialogTag
The tag label identified by the models for the given sentence
Last modified 7d ago