#3 · Primary category: NLP Tools & Text Processing
tokenizers
💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
Project last updated:08/27/26
GitHub Stars
11.0K
Forks
1.2K
Contributors
150
License
Apache-2.0
Why we included this project
Most people training transformer models have already used this library without knowing it, because it powers the tokenization layer under the Hugging Face Transformers stack. It implements Byte-Pair Encoding, WordPiece, and Unigram, and lets you train a custom vocabulary on your own corpus just by pointing it at a folder of text files. The Rust core makes both training and tokenization fast, to the point that a gigabyte of text on a server CPU takes under twenty seconds, so preprocessing does not stall even at scale. It also takes care of the fiddly bits of input preparation, truncation, padding, and adding special tokens, while tracking alignment so you can always map a token back to the exact span of the original sentence. Teams that need tokenization to match exactly between training and serving, or that want bindings in Python, Node.js, or Rust, will find a dependable foundation rather than a throwaway utility.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
flair
A very simple framework for state-of-the-art Natural Language Processing (NLP)
compromise
modest natural-language processing
CoreNLP
CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
Chinese-Word-Vectors
100+ Chinese Word Vectors 上百种预训练中文词向量
TextBlob
Simple, Pythonic, text processing--Sentiment analysis, part-of-speech tagging, noun phrase extraction, translation, and more.