Framework

Natural Language

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

Overview

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. 

Topics

Tokenization

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software