Work

Efficient Algorithms for the Uniform Tokenization Problem

Year: 2025
Type: article
Abstract: Tokenization (also known as scanning or lexing) is a computational task that has applications in the lexical analysis of programs during compilation and in data extraction and analysis for unstructured or semistructured data (e.g., data represented using the JSON and CSV data formats). We propose two algorithms for the tokenization problem that have linear time complexity (in the length of the input text) without using large amounts of memory. We also show that an optimized version of one of these algorithms performs well compared to prior approaches on practical tokenization workloads.
Institution: Rice University
Language: English
Open Access status: diamond
OpenAlex ID: W4409311790
FWCI: 1.237
Cites: 33
Cited by: 3
Related to: 10