Vocabulary
Category: NLP / Language Processing
The complete set of tokens that a language model can recognize and produce, determined during tokenizer training.
Full Explanation
In NLP, the vocabulary is the fixed set of tokens that a model uses to represent all possible text inputs and outputs. Vocabulary size is a key design choice: larger vocabularies can represent more words as single tokens but increase model size and memory usage, while smaller vocabularies require more tokens per word but are more memory-efficient. Modern language models typically use vocabularies of 30,000 to 100,000 subword tokens. The vocabulary is constructed during tokenizer training on a representative corpus and remains fixed during model training and inference. Tokens not in the vocabulary are handled through subword decomposition or special unknown tokens. The vocabulary directly impacts tokenization efficiency, with well-designed vocabularies requiring fewer tokens to encode typical text.
Related Terms
More in NLP / Language Processing
Explore More
- AI Tools Library — Discover AI tools related to Vocabulary
- AI Education — Courses to learn about NLP / Language Processing
- AI News — Latest news and updates