iOS, Machine Learning, iOS App Development, Artificial Intelligence, Programming.
manner." let tagger = NLTagger(tagSchemes: [.lexicalClass]) let options : NLTagger.Options = [.omitWhitespace, .omitPunctuation] tagger.string = text tagger.enumerateTags(in: text.startIndex..<text.endIndex, unit: .word, scheme: .lexicalClass, options: options) { tag, tokenRange in if let tag = tag