AI engineering glossary · NLP embeddings

What is vocabulary?

Vocabulary (also called Vocab): The fixed list of distinct tokens a model or tokeniser knows, each paired with a unique integer ID. Text is converted to IDs using this list, and anything outside it must be split further or replaced by an unknown token.

Level: beginnerTopic: NLP embeddings

Vocabulary: an example

A vocabulary of 32,000 entries maps "the" to ID 5, "chai" to ID 9021, and so on.

Related terms

More NLP embeddings terms

Where you learn it

Vocabulary is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.