MLTextClassifier not recognized

Hi, I'm using Xcode 12.3 on Big Sur Beta 11.2 and my project has deployment target Mac OS 11.
In my project I trained a MLTextClassifier

Code Block
            let classifier = try MLTextClassifier(trainingData: trainingData,
                                                         textColumn: "NLTokens",
                                                         labelColumn: "classLabel")

I imported the model in the app and I can use it only referring as the class of the model.

Code Block
        let myInstance = classifier()


In particular I can see that in the MLTextClassifier class there is the predictionWithConfidence method but if I try to use it I get a build error.
I got the same result in this way:

Code Block
        let myInstance = try? classifier(configuration: MLModelConfiguration()).model
        let predictor = try? NLModel(mlModel: myInstance!)
       let result = try predictor?.predictedLabelHypotheses(for: inputData, maximumCount: 3)

MLTextClassifier not recognized
 
 
Q