Custom Statement Tags
Custom statement 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. These tags can be configured to detect custom intents by giving example statements.

API Request

post
https://api.marsview.ai/text/custom_statement_tags
/get_custom_statement_tag
Returns the predicted statement tags for a given phrases / sentences

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
"threshold" : "Insert a desired confidence threshold",
6
"statementTagIds": "Insert a list of statement tag IDs",
7
"sentences" : "Insert your sentece for statement tag detection",
8
"userId" : "[email protected]"
9
}'
Copied!

Example Response

Shown below is a sample JSON response from the above request.
1
{
2
"status": true,
3
"error" : {},
4
"data" : {
5
"similarityMatch": [
6
{
7
"statementTagId": "statement-bxllq1zsuzkvuj44go-1636609624728",
8
"statementTagName": "compliance-quality-check"
9
"matchedTextList": [
10
{
11
"score": 0.6180883955955505,
12
"text": "This call is going to be recorded for quality purposes.",
13
"value": "This call will be recorded"
14
}
15
],
16
}
17
]
18
}
19
}
20
Copied!

Response Object

Field
Description
similarityMatch
The statement tag similarity identified by the models
statementTagId
The statement tag Id against which the sentences are matched
statementTagName
The name of the matching statement tag
score
The similarity matching score ranges from 0 to 1
text
The sentence which is used to predict statement tag for
value
The predicted statement tag
Last modified 7d ago