Hello,
I have created a data model with Text Classification which contains many garments with the label clothing, technology equipment with the label technology, etc.... . I have inserted it so that when entering for example "T-shirt" the label clothing is output. But I want it so that when I create an equipment category with the clothing, that it suggests me clothing items, which I add. How do I implement this. In the function you can only use"preditction.label". I program with SwiftUI.
func textml() {
do {
let model = try DataModel_Symbols_Consilia(configuration: .init())
let prediction = try model.prediction(text: addProjectVM.title)
addProjectVM.symbol = prediction.label
} catch {
modelOutput = "Something went wrong"
}
}
Greetings Janik