Sets the language of the text to be tokenized.
SDKs
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
- watchOS 5.0+
Framework
- Natural Language
Declaration
func setLanguage(_ language: NLLanguage)
Sets the language of the text to be tokenized.
SDKs
Framework
func setLanguage(_ language: NLLanguage)
var string: String?
The text to be tokenized.
var unit: NLToken Unit
The linguistic unit that this tokenizer uses.
struct NLTokenizer .Attributes
Hints about the contents of the string for the tokenizer.