Natural Language

Analyze natural language text and deduce its language-specific metadata.


Use the Natural Language framework to perform tasks like language and script identification, tokenization, lemmatization, parts-of-speech tagging, and named entity recognition. You can also use this framework with Create ML to train and deploy custom natural language models. 



Tokenizing Natural Language Text

Enumerate the words in a string.

class NLTokenizer

A tokenizer that segments natural language text into semantic units.

Language Identification

class NLLanguageRecognizer

The language of a body of text.

struct NLLanguage

The languages supported by the Natural Language framework.

Linguistic Tags

Identifying Parts of Speech

Classify nouns, verbs, adjectives, and other parts of speech in a string.

Identifying People, Places, and Organizations

Use a linguistic tagger to perform named entity recognition on a string.

class NLTagger

A tagger that analyzes natural language text.

Natural Language Models

class NLModel

A custom model trained to classify or tag natural language text.