Post

Replies

Boosts

Views

Activity

Reply to MLTextClassifier not recognized
I got the same result in this way:         let myInstance = try? classifier(configuration: MLModelConfiguration()).model         let predictor = try? NLModel(mlModel: myInstance!)       	let result = try predictor?.predictedLabelHypotheses(for: inputData, maximumCount: 3)
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Jan ’21
Reply to SwiftUI - Picker binding in segmented list
To complete I add also the part of the Details view that invoke the Editing `struct Details: View {     @Binding var d0:D0     @State private var data = D0.Data() ...                 Editing(data: $data) ...                             Button("Done") {                                 d0.update(from: data)                                 isPresentingEditView = false                             } ...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’22