Custom Text Classification: How to train model and validate no matching labels

Dylan Maxey 5 Reputation points
2023-07-20T00:35:22.1666667+00:00

https://language.cognitive.azure.com/customText/projects/classification

I'm trying to train a model on text classification but can't seem to get the correct scores on the model preview, as the tests show under model performance that all the ones without a label are incorrect. I am importing the project via JSON. See documentation.

I tried multiple ways to get it to match. I tried using a the category "None", which is what's used as the default in the Language Studio, and that showed as no match. I tried "No prediction" which is what's used and the same happened. I tried

{"classes": []}

I also tried

{"classes": [{"category": null]}

as well as

{"classes": [{"category": ""]}

All of these attempts resulted as an import error.

If I go to the "Testing Deployments" tab and enter some text that doesn't get labeled, the json that gets returned is

{ "classes": [] }

Nothing seems to work, what am I missing here?

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
519 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.