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

POST https://api.marsview.ai/text/dialog_tag/get_dialog_tag

Query Parameters

{
    "status": true,
    "error": {},
    "data": {
        "dialogue_tag": "statement-opinion"
    }
    "userId": "chandra.sekhar@marsview.ai",
}

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"  : "demo@marsview.ai"
}'

Example Response

Shown below is a sample JSON response from the above request.

{
    "status" : true,
    "error"  : {},
    "data"   : {
        "dialogue_tag": "statement-opinion"
    }
    "userId": "chandra.sekhar@marsview.ai",
}

Response Object

Last updated