Posts

Post not yet marked as solved
4 Replies
1.4k Views
I've tried to use this piece of code taked by Apple Documentation and don't worklet text = "The ripe taste of cheese improves with age." let tagger = NSLinguisticTagger(tagSchemes: [.lexicalClass], options: 0) tagger.string = text let range = NSRange(location: 0, length: text.utf16.count) let options: NSLinguisticTagger.Options = [.omitPunctuation, .omitWhitespace] tagger.enumerateTags(in: range, unit: .word, scheme: .tokenType, options: options) { tag, tokenRange, _ in if let tag = tag { let word = (text as NSString).substring(with: tokenRange) print("\(word): \(tag)") } }this is the Apple's Dochttps://developer.apple.com/documentation/foundation/nslinguistictagger/identifying_parts_of_speechAny solution?
Posted
by Rufy.
Last updated
.
Post not yet marked as solved
0 Replies
991 Views
Anyone has any idea about to covert Tesseract or tessdata into CoreML model?
Posted
by Rufy.
Last updated
.