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

Returns the predicted dialog tag for a given sentence

Example Curl Request

Shown below is a code snippet to send a sample request for dialog tag detection
curl --location --request POST 'https://api.marsview.ai/text/dialog_tag/get_dialog_tag' \
--header 'Content-Type: application/json' \
--data-raw '{
"jwtToken": "Insert JWT token Key",
"sentence": "Insert your sentence for dialog tag prediction here",
"userId" : "[email protected]"

Example Response

Shown below is a sample JSON response from the above request.
"status" : true,
"error" : {},
"data" : {
"dialogue_tag": "statement-opinion"
"userId": "[email protected]",

Response Object

The tag label identified by the models for the given sentence