init
TypeScriptstatic initContentsOf(url: string): NLModelSwift declarationconvenience init(contentsOf url: URL) throwsclass · iOS 12.0+ · SDK 27.1
class NLModelstatic initContentsOf(url: string): NLModelSwift declarationconvenience init(contentsOf url: URL) throwsstatic initMlModel(mlModel: _CoreML_MLModel): NLModelSwift declarationconvenience init(mlModel: MLModel) throwspredictedLabel(string: string): (string) | nullSwift declarationfunc predictedLabel(for string: String) -> String?predictedLabels(tokens: Array<string>): Array<string>Swift declarationfunc predictedLabels(forTokens tokens: [String]) -> [String]get configuration(): NLModelConfigurationSwift declaration@NSCopying var configuration: NLModelConfiguration { get }predictedLabelHypothesesForMaximumCount(string: string, maxCount: number): Record<string, number>Swift declaration@nonobjc func predictedLabelHypotheses(for string: String, maximumCount maxCount: Int) -> [String : Double]predictedLabelHypothesesForTokensMaximumCount(tokens: Array<string>, maxCount: number): Array<Record<string, number>>Swift declaration@nonobjc func predictedLabelHypotheses(forTokens tokens: [String], maximumCount maxCount: Int) -> [[String : Double]]1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NLModel.init()
inherited init: cannot prove legal (class declares 4 custom initializers)