awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
huggingface avatar

huggingface/tokenizers

0
View on GitHub↗

Tokenizers

This project is a high-performance library for converting raw text into tokens and IDs for machine learning models. It functions as a fast text encoder and a text preprocessing pipeline designed to transform strings into numerical representations with high throughput for research and production.

The library includes a subword tokenizer trainer used to analyze text datasets and create custom vocabularies using algorithms such as byte-pair encoding and wordpiece. It provides capabilities for subword vocabulary training and text alignment, allowing character offsets to be tracked during normalization so processed tokens can be mapped back to their original positions in the raw text.

The system covers a broad range of natural language processing preprocessing tasks, including text normalization, the insertion of special tokens, and the application of padding and truncation to meet model input requirements. It supports the construction of custom tokenization pipelines and the ability to download pre-trained tokenizer assets.

The core logic is implemented in Rust for memory safety and performance, with bindings provided for Python.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI
huggingface.co/docs/tokenizers
↗

Features

  • Text Tokenizers - Converts raw text into a sequence of tokens and IDs using high-performance segmentation algorithms.
  • Sequence Padding Utilities - Provides utilities for standardizing input sequence lengths through truncation and padding with special tokens.
  • Vocabulary Builders - Generates token-to-index mappings from datasets to prepare text for machine learning models.
  • Byte Pair Encodings - Builds token sets using byte-pair encoding by iteratively merging the most frequent character pairs.
  • Vocabulary Learning - Creates a mapping of characters or subwords from raw text corpora using byte-pair encoding or wordpiece algorithms.
  • Vocabulary Training - Analyzes text datasets to create custom subword vocabularies using byte-pair encoding and wordpiece algorithms.
  • Pipeline Construction - Enables the construction of custom tokenization pipelines by combining normalization and model components.
  • Subword Tokenization - Uses byte-pair encoding and wordpiece algorithms to handle out-of-vocabulary words via subword units.
  • Vocabulary Trainers - Includes a trainer to analyze text datasets and create custom subword vocabularies using byte-pair encoding and wordpiece.
  • Text Preprocessing Pipelines - Provides automated workflows for cleaning and normalizing raw text data to prepare it for machine learning models.
  • Token Alignment Trackers - Tracks alignments during normalization to identify the exact original text characters corresponding to a specific token.
  • Text Processing Pipelines - Utilizes a modular pipeline to sequentially apply normalization, pre-tokenization, and splitting for structured text processing.
  • Machine Learning Pipelines - Orchestrates a preprocessing pipeline that includes normalization, padding, and truncation to prepare text datasets for models.
  • Rust-Implemented Tools - Implements core tokenization logic in Rust to ensure memory safety and high-performance execution.
  • Custom Text Normalizers - Cleans input text while tracking character offsets to enable mapping tokens back to the original sentence.
  • Alignment-Aware Normalization - Cleans input text while tracking character offsets to maintain traceability between original text and processed tokens.
  • Offset Tracking - Provides high-precision tracking of original character offsets through normalization to allow tokens to be mapped back to raw text.
  • Large Language Model Input Tools - Prepares text for model consumption by applying final padding, truncation, and special token insertion.
  • Input Buffer Formatting - Provides utilities to trim, pad, and inject special tokens into tokenized output to meet specific model input requirements.
  • Token-to-Text Alignments - Tracks character offsets during normalization so processed tokens can be mapped back to original positions in the raw text.
  • Python Bindings - Exposes a high-performance Rust implementation to Python via low-overhead foreign function interface bindings.
  • Parallel Text Processing - Implements multi-threaded parallel processing of text to increase encoding throughput across multiple CPU cores.
  • Multi-Pattern Matching Algorithms - Uses trie-based structures to efficiently find and replace the longest matching subwords in text streams.
  • Artificial Intelligence - Modern NLP tokenization pipelines with high-performance implementations.
  • Machine Learning Frameworks - High-performance tokenizer implementation for NLP.
  • Model Serving Engines - High-performance tokenization library for research and production.
  • Natural Language Processing - High-performance tokenization library for research and production.
  • Core Frameworks and Libraries - Fast state-of-the-art tokenizers for training and inference.
  • Lexical Analysis Tools - High-performance tokenization library for NLP models.
  • Python NLP Libraries - High-performance tokenization for research and production.
10,825 stars·1,127 forks·Rust·Apache-2.0·37 views

Star history

Star history chart for huggingface/tokenizersStar history chart for huggingface/tokenizers

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Projects sharing features with Tokenizers

These projects share indexed features with Tokenizers. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • google/sentencepiecegoogle avatar

    google/sentencepiece

    12,170View on GitHub↗

    SentencePiece is a text segmentation engine and tokenization library designed for machine learning workflows. It provides a comprehensive toolkit for transforming raw text into subword units or numerical identifiers, enabling consistent data representation for neural network training and inference. The library supports the training of segmentation models from raw text, allowing for the creation of custom vocabularies tailored to specific domain requirements. The project distinguishes itself through its byte-level encoding and fallback mechanisms, which ensure that every input can be represent

    C++natural-language-processingneural-machine-translationword-segmentation
    View on GitHub↗12,170
  • huggingface/transformershuggingface avatar

    huggingface/transformers

    168,632View on GitHub↗

    Transformers is a comprehensive library for machine learning that provides a unified interface for training, fine-tuning, and deploying transformer-based models. It supports a wide range of tasks, including text classification, language modeling, question answering, and sequence-to-sequence translation, while offering specialized architectures for both text and vision processing. The framework includes tools for managing the entire model lifecycle, from data preprocessing and tokenization to distributed training and inference. The library features extensive support for model optimization and

    Pythonaudiodeep-learningdeepseek
    View on GitHub↗168,632
  • explosion/spacyexplosion avatar

    explosion/spaCy

    34,037View on GitHub↗

    spaCy is a Python natural language processing framework designed for industrial-scale text processing. It converts raw text into structured data for machine learning pipelines through a combination of statistical language model trainers, transformer-based text processors, and syntactic dependency parsers. The project enables the integration of pretrained transformer architectures to perform complex linguistic analysis and multi-task learning. It also provides a specialized system for neural named entity recognition to identify and categorize key entities within text. The framework covers a b

    Pythonaiartificial-intelligencecython
    View on GitHub↗34,037
  • d2l-ai/d2l-end2l-ai avatar

    d2l-ai/d2l-en

    30,012View on GitHub↗

    This project is an educational platform and research toolkit designed to teach deep learning through a combination of mathematical theory, visual diagrams, and executable code. It provides a comprehensive environment for building, training, and evaluating neural networks, grounding complex concepts in interactive computational notebooks that allow for hands-on experimentation. The framework distinguishes itself by interleaving theoretical foundations—including linear algebra, calculus, and probability—with practical implementations across multiple industry-standard libraries. It supports flex

    Pythonbookcomputer-visiondata-science
    View on GitHub↗30,012
Compare all 30 related projects→

Frequently asked questions

What does huggingface/tokenizers do?

This project is a high-performance library for converting raw text into tokens and IDs for machine learning models. It functions as a fast text encoder and a text preprocessing pipeline designed to transform strings into numerical representations with high throughput for research and production.

What are the main features of huggingface/tokenizers?

The main features of huggingface/tokenizers are: Text Tokenizers, Sequence Padding Utilities, Vocabulary Builders, Byte Pair Encodings, Vocabulary Learning, Vocabulary Training, Pipeline Construction, Subword Tokenization.

Which projects share features with huggingface/tokenizers?

Projects with overlapping indexed features include: google/sentencepiece — SentencePiece is a text segmentation engine and tokenization library designed for machine learning workflows. It… huggingface/transformers — Transformers is a comprehensive library for machine learning that provides a unified interface for training,… explosion/spacy — spaCy is a Python natural language processing framework designed for industrial-scale text processing. It converts raw… d2l-ai/d2l-en — This project is an educational platform and research toolkit designed to teach deep learning through a combination of… pytorch/pytorch — PyTorch is a machine learning framework centered on a GPU-ready tensor library that supports multi-dimensional array… nltk/nltk — This project is a comprehensive Python toolkit designed for natural language processing, research, and education. It…