Jump to content

Tokenisation (machine learning): Difference between revisions

From Wikibase
No edit summary
 
Line 13: Line 13:


where $|\mathcal{V}| \ll \infty$ is known as the '''token vocabulary'''.
where $|\mathcal{V}| \ll \infty$ is known as the '''token vocabulary'''.
== Vocabulary size ==
The vocabulary size $|\mathcal{V}|$ is a key design choice in tokenisation functions, controlling the trade-off between expressiveness and computational cost.
Typical vocabulary size is $10^4 \to 10^5$.

Latest revision as of 19:11, 10 November 2026

Languages: English · français · Esperanto

Tokenisation is the process of segmenting raw data into tokens.[1]

Definition

Formally, let $\mathcal{S}$ be a sequence of data. Any function

$$ \tau: \mathcal{S} \to \mathcal{V}^{*} $$

is a tokenisation function, sometimes called a tokeniser.

where $|\mathcal{V}| \ll \infty$ is known as the token vocabulary.

Vocabulary size

The vocabulary size $|\mathcal{V}|$ is a key design choice in tokenisation functions, controlling the trade-off between expressiveness and computational cost.

Typical vocabulary size is $10^4 \to 10^5$.