Tokenization
Tokenization is the process of breaking text down into "tokens", the basic units processed by an AI. A token can be a whole word, part of a word, or a punctuation mark. Models have a maximum token limit (the context window): 128K for GPT-4o, 200K for Claude, which determines how much text the AI can process.
Tokenization is the foundational step by which human text is converted into numerical units that an AI model can understand. A token does not always correspond to a single word: the term "jurisprudence" can be split into "juris" + "prudence", that is, two tokens. On average, one token represents roughly 3/4 of a word in English. This granularity lets the model handle a virtually unlimited vocabulary from a finite set of tokens.
For legal professionals, tokenization matters because it determines the context window, meaning the maximum amount of text the model can process in a single request. GPT-4o offers 128,000 tokens (about 96,000 words), while Claude goes up to 200,000 tokens (about 150,000 words). It is this capacity that makes it possible to analyze lengthy contracts or voluminous court decisions in a single pass.
Understanding tokenization also helps optimize costs: AI APIs often bill on a usage basis by tokens (input + output). A well-structured prompt that avoids repetition and gets straight to the point will be not only more effective but also less expensive. Legaltech tools handle this optimization transparently for the end user.
Related terms
An LLM (Large Language Model) is an artificial intelligence model trained on massive volumes of text to learn the statistical stru…
NLP (Natural Language Processing) is the field of AI that enables machines to understand, interpret and generate human language. I…
Embeddings are numerical representations of words, sentences or documents, expressed as vectors in a high-dimensional mathematical…
GPT (Generative Pre-trained Transformer) is a family of AI models developed by OpenAI, built on the Transformer architecture intro…
Claude is an AI model developed by Anthropic, a company founded in 2021 by former OpenAI researchers. It stands out for its "Const…