Train and test the clear-vs-unclear sender classifier from a simple text dataset.
Training format:__label__clear AcmeBank: Your OTP is 1234
POST /analyze
Analyze multiple messages at once. Pass an array of messages with IDs.
{
"messages": [
{ "id": "1", "content": "Sample message text" }
]
}
Response:
{
"results": [
{
"id": "1",
"content": "Sample message text",
"prediction": [
{ "label": "__label__clear", "probability": 0.99 }
]
}
]
}