The only output from a MLModel trained with an MLTextClassifier is a String, but there (doesn't appear) to be a way of getting a confidence level from this model.
When using the model, knowing if there isn't a good prediction is as important as using the prediction itself.
Bugreport: 41837555