awesome-repositories.com
المدونة
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعحولكيفية ترتيب النتائجالصحافةخادم MCP
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
huggingface avatar

huggingface/tokenizers

0
View on GitHub↗
10,825 نجوم·1,127 تفرعات·Rust·Apache-2.0·4 مشاهداتhuggingface.co/docs/tokenizers↗

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.

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.
  • أطر عمل تعلم الآلة - 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.
  • Lexical Analysis Tools - High-performance tokenization library for NLP models.
  • Python NLP Libraries - High-performance tokenization for research and production.

سجل النجوم

مخطط تاريخ النجوم لـ huggingface/tokenizersمخطط تاريخ النجوم لـ huggingface/tokenizers

بحث بالذكاء الاصطناعي

استكشف المزيد من المستودعات الرائعة

صف ما تحتاجه بلغة بسيطة — وسيقوم الذكاء الاصطناعي بترتيب آلاف المشاريع مفتوحة المصدر المنسقة حسب الصلة.

Start searching with AI

بدائل مفتوحة المصدر لـ Tokenizers

مشاريع مفتوحة المصدر مشابهة، مرتبة حسب عدد الميزات المشتركة مع Tokenizers.
  • google/sentencepieceالصورة الرمزية لـ google

    google/sentencepiece

    11,657عرض على 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
    عرض على GitHub↗11,657
  • d2l-ai/d2l-enالصورة الرمزية لـ d2l-ai

    d2l-ai/d2l-en

    29,001عرض على 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
    عرض على GitHub↗29,001
  • nltk/nltkالصورة الرمزية لـ nltk

    nltk/nltk

    14,649عرض على GitHub↗

    This project is a comprehensive Python toolkit designed for natural language processing, research, and education. It functions as a linguistic data processor that provides a standardized framework for managing, cleaning, and analyzing large collections of annotated text corpora and lexical resources. The library distinguishes itself through its integration of both symbolic and statistical methods, allowing users to perform complex tasks ranging from rule-based grammar parsing to machine learning-driven classification. It offers a modular pipeline for text processing, enabling the transformati

    Pythonmachine-learningnatural-language-processingnlp
    عرض على GitHub↗14,649
  • facebookresearch/fairseqالصورة الرمزية لـ facebookresearch

    facebookresearch/fairseq

    32,228عرض على GitHub↗

    Fairseq is a PyTorch toolkit for sequence-to-sequence modeling, specializing in neural machine translation, automatic speech recognition, and large-scale language model training. It provides a framework for processing and aligning diverse data sources, including text, audio, and video, to support tasks such as speech-to-text conversion and multimodal sequence learning. The project is distinguished by its distributed training capabilities, which utilize parameter sharding, mixed-precision training, and CPU offloading to handle models that exceed single-device memory. It also includes specializ

    Python
    عرض على GitHub↗32,228
عرض جميع البدائل الـ 30 لـ Tokenizers→

الأسئلة الشائعة

ما هي وظيفة huggingface/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.

ما هي الميزات الرئيسية لـ huggingface/tokenizers؟

الميزات الرئيسية لـ huggingface/tokenizers هي: Text Tokenizers, Sequence Padding Utilities, Vocabulary Builders, Byte Pair Encodings, Vocabulary Learning, Vocabulary Training, Pipeline Construction, Subword Tokenization.

ما هي البدائل مفتوحة المصدر لـ huggingface/tokenizers؟

تشمل البدائل مفتوحة المصدر لـ huggingface/tokenizers: google/sentencepiece — SentencePiece is a text segmentation engine and tokenization library designed for machine learning workflows. It… d2l-ai/d2l-en — This project is an educational platform and research toolkit designed to teach deep learning through a combination of… nltk/nltk — This project is a comprehensive Python toolkit designed for natural language processing, research, and education. It… facebookresearch/fairseq — Fairseq is a PyTorch toolkit for sequence-to-sequence modeling, specializing in neural machine translation, automatic… codertimo/bert-pytorch. stanfordnlp/stanza — Stanza is a Python natural language processing library designed for tokenization, lemmatization, and dependency…