Text and tokenizers

Libraries that split, normalize and analyze text before a model reads it.

68 projects. Checked .

Start here

The Featured projects with the most downloads.

All projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days.

What do the tiers mean?
Featured
Shown first. It passes every Featured gate.
Listed
Shown in the normal listing. No other tier applies.
New
A project whose first release is recent.
Archived
No longer maintained, or ended by its author.

Tiers come from published rules over raw signals. Stars alone never qualify a project.

Active dependents: crates from other owners that depend on this project in a current release. One owner counts at most once.

Movement needs more history.

Text and tokenizers
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
tokenizers Featured

Fastest implementation of the most used tokenizers in AI.

7,490,451 downloads over 30 days 1,021 11,230 0.23.2 GPU support unknown Binds native code: tikv-jemalloc-sys, onig_sys (feature default) Apache-2.0
tiktoken-rs Featured

Library for encoding and decoding with the tiktoken library in Rust

3,939,182 downloads over 30 days 449 410 0.12.1 GPU support unknown No native code found MIT

Common stop words in many languages

2,153,034 downloads over 30 days 25 26 0.10.1 GPU support unknown No native code found Apache-2.0 OR MIT
jieba-rs Featured

Jieba Chinese Word Segmentation in Rust

947,384 downloads over 30 days 60 992 0.11.0 GPU support unknown No native code found MIT
whatlang-rs Featured

Fast and lightweight language identification library for Rust.

882,019 downloads over 30 days 74 1,087 0.18.0 GPU support unknown No native code found MIT
lindera Featured

A morphological analysis library.

Python bindings

647,661 downloads over 30 days 39 705 6.2.0 GPU support unknown Binds native code: napi-sys, rb-sys MIT
pdf_oxide Featured

The fastest Rust PDF library — 0.8ms mean, 5× faster than the industry leaders, 100% pass rate on 3,830 real-world PDFs. Text extraction, Markdown/HTML conversion, PDF creation and editing.

Python bindings

316,729 downloads over 30 days 30 1,180 0.3.78 GPU support unknown Binds native code: aws-lc-rs (feature fips), lcms2-sys (feature icc-lcms2), ort-sys (feature gpu) Apache-2.0 OR MIT
lingua-rs Featured

An accurate natural language detection library, suitable for short text and mixed-language text

Python bindings

286,625 downloads over 30 days 22 1,152 1.8.0 GPU support unknown Binds native code: cld2-sys (feature accuracy-reports) Apache-2.0
text-splitter Featured

Split text into semantic chunks, up to a desired chunk size. Supports calculating length by characters and tokens, and is callable from Rust and Python.

271,174 downloads over 30 days 56 645 0.33.1 GPU support unknown Binds native code: tree-sitter (feature code), tree-sitter-language (feature code) MIT
toon-rust Featured

Token-Oriented Object Notation (TOON) - a token-efficient JSON alternative for LLM prompts

160,383 downloads over 30 days 67 190 0.7.0 GPU support unknown No native code found MIT
Listed 46 projects

This crate aims to emulate https://github.com/google/sentencepiece Dart::DoubleArray struct and it's Normalizer. This crate is highly specialized and not intended for general use.

6,527,079 downloads over 30 days 7 23 0.1.4 GPU support unknown No native code found Apache-2.0
rust-stemmers Listed Dormant

A rust implementation of some popular snowball stemming algorithms

5,399,112 downloads over 30 days 128 136 1.2.0 GPU support unknown No native code found BSD-3-Clause OR MIT
sentencex Listed

Sentence segmentation library with wide language support optimized for speed and utility.

114,914 downloads over 30 days 1 145 0.1.34 GPU support unknown No native code found MIT
rust-gems Listed

Fast byte-pair encoding implementation.

108,957 downloads over 30 days 6 137 0.2.3 GPU support unknown No native code found MIT
oxidizePdf App Listed

Pure Rust PDF library for AI/RAG: structure-aware chunking, no ML, no C deps.

62,285 downloads over 30 days Not applicable 194 5.5.7 GPU support unknown No native code found MIT

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 91+ formats and 248 programming languages via tree-sitter code intelligence with async/sync APIs.

54,366 downloads over 30 days 7 21 4.10.4 GPU support unknown Binds native code: kreuzberg_tesseract, clipper-sys, ort-sys, tree-sitter (feature tree-sitter), tree-sitter-language (feature tree-sitter). Build uses a native toolchain: pkg-config, cc (feature build-tesseract), cmake (feature build-tesseract) MIT
whichlang Listed

A blazingly fast and lightweight language detection library for Rust.

52,880 downloads over 30 days 11 464 0.1.1 GPU support unknown No native code found MIT
gline-rs Listed

Inference engine for GLiNER models

40,619 downloads over 30 days 3 173 1.1.0 CUDA, ROCm Binds native code: ort-sys Apache-2.0

Rust runtime reimplementation of SentencePiece model loading, normalization, encoding, and decoding.

30,659 downloads over 30 days 5 2 0.2.2 GPU support unknown No native code found Apache-2.0

Binding for the sentencepiece tokenizer

30,249 downloads over 30 days 18 24 0.14.0 GPU support unknown Binds native code: sentencepiece-sys. Build uses a native toolchain: cc, cmake, pkg-config Apache-2.0 OR MIT
rust_tokenizers Listed Dormant

High performance tokenizers for Rust

Python bindings

27,821 downloads over 30 days 12 345 8.1.1 GPU support unknown No native code found Apache-2.0

A high-performance pure-Rust implementation of OpenAI's tiktoken BPE tokenizer

25,714 downloads over 30 days 12 8 4.1.2 GPU support unknown No native code found Apache-2.0 OR MIT
rust-bert Listed Dormant

Ready-to-use NLP pipelines and language models

24,605 downloads over 30 days 23 3,091 0.23.0 CUDA Binds native code: torch-sys, ort-sys (feature onnx) Apache-2.0
snowball Listed

Rust implementation of Snowball stemming algorithms for 33 languages

21,654 downloads over 30 days 3 891 0.1.0 GPU support unknown No native code found BSD-3-Clause
regexr Listed

A high-performance regex engine built from scratch with JIT compilation and SIMD acceleration

8,809 downloads over 30 days 4 28 0.6.2 GPU support unknown No native code found Apache-2.0 OR MIT
nlprule Listed Dormant

A fast, low-resource Natural Language Processing and Error Correction library.

8,412 downloads over 30 days 6 679 0.6.4 GPU support unknown Binds native code: onig_sys (feature regex-onig) Apache-2.0 OR MIT
splintr Listed

Tokenizer for Rust and Python: pure Rust by default, with 18 bundled vocabularies and four backends covering BPE, SentencePiece and WordPiece. Its output matches Hugging Face tokenizers id for id on 14 model families, including GPT-2, Qwen, Whisper, T5 and BERT.

Python bindings

8,204 downloads over 30 days 7 63 0.22.2 GPU support unknown Binds native code: pcre2-sys (feature pcre2) MIT
toon-rs Listed Dormant

Token-Oriented Object Notation – a token-efficient JSON alternative for LLM prompts

8,018 downloads over 30 days 5 22 0.1.2 GPU support unknown No native code found MIT
yake-rust Listed

Yake (Yet Another Keyword Extractor) in Rust

6,959 downloads over 30 days 2 14 1.0.3 GPU support unknown No native code found MIT
edgeparse Listed

EdgeParse core library — PDF parsing and structured data extraction

6,764 downloads over 30 days 2 155 0.3.2 GPU support unknown No native code found Apache-2.0

Parse and convert numbers written in English, Danish, Dutch, Spanish, Portuguese, German, Italian or French into their digit representation.

6,096 downloads over 30 days 5 9 2.8.0 GPU support unknown No native code found MIT
tantivy-stemmers Listed Dormant

A collection of Tantivy stemmer tokenizers

5,962 downloads over 30 days 3 19 0.4.0 GPU support unknown No native code found BSD-3-Clause
chunk Listed

The fastest semantic text chunking library — up to 1TB/s chunking throughput

5,407 downloads over 30 days 8 361 0.10.2 GPU support unknown No native code found Apache-2.0 OR MIT
udpipe-rs Listed

Rust bindings for UDPipe - a trainable pipeline for tokenization, tagging, lemmatization and dependency parsing of CoNLL-U files

3,069 downloads over 30 days 2 5 0.2.0 GPU support unknown Build uses a native toolchain: cc Apache-2.0 OR MIT
kitoken Listed

Fast tokenizer for language models, supporting BPE, Unigram and WordPiece tokenization

2,949 downloads over 30 days 3 62 0.11.1 GPU support unknown No native code found BSD-2-Clause
serde_toon Listed

A Serde-compatible TOON (Token-Oriented Object Notation) serialization library

2,384 downloads over 30 days 4 13 0.3.0 GPU support unknown No native code found Apache-2.0 OR MIT
keyword-extraction-rs Listed Dormant

Collection of algorithms for keyword extraction from text

2,311 downloads over 30 days 2 34 1.5.0 GPU support unknown No native code found LGPL-3.0-or-later
extractous Listed Dormant

Extractous provides a fast and efficient way to extract content from all kind of file formats including PDF, Word, Excel CSV, Email etc... Internally it uses a natively compiled Apache Tika for formats are not supported natively by the Rust core

1,515 downloads over 30 days 3 1,787 0.3.0 GPU support unknown No native code found Apache-2.0
tokenx-rs Listed

Fast token count estimation for LLMs at 96% accuracy without a full tokenizer

1,235 downloads over 30 days 3 3 0.1.0 GPU support unknown No native code found MIT

Wrapper for the BlingFire tokenization library

1,162 downloads over 30 days 0 15 1.0.0 GPU support unknown Binds native code: blingfire-sys, blingfiretokdll. Build uses a native toolchain: cmake MIT
shimmytok Listed

Pure Rust tokenizer for GGUF models with llama.cpp compatibility (SentencePiece + BPE + WPM + UGM + RWKV)

914 downloads over 30 days 2 26 0.8.5 GPU support unknown No native code found Apache-2.0 OR MIT
semchunk-rs Listed Dormant

A fast and lightweight Rust library for splitting text into semantically meaningful chunks.

864 downloads over 30 days 3 4 0.1.1 GPU support unknown Binds native code: torch-sys (feature rust-bert) MIT
tokie Listed

Blazingly fast tokenizer - 50x faster tokenization, 10x smaller model files, 100% accurate drop-in replacement for HuggingFace

711 downloads over 30 days 3 56 0.1.4 GPU support unknown No native code found Apache-2.0 OR MIT
vtext Listed Dormant

NLP with Rust

Python bindings

68 downloads over 30 days 0 153 0.2.0 GPU support unknown No native code found Apache-2.0
snips-nlu-parsers App Listed Dormant

Rust crate for entity parsing

60 binary downloads per release Not applicable 18 Not measured Not measured Not measured
lumberjack Listed Dormant

Read and modify constituency trees.

21 downloads over 30 days 0 10 0.3.1 GPU support unknown No native code found Apache-2.0
txtai Listed

Rust client for txtai

4 downloads over 30 days 0 114 9.14.0 GPU support unknown No native code found Apache-2.0
treebender Listed Dormant

An HDPSG inspired symbolic NLP library for Rust

2 downloads over 30 days 0 63 0.1.1 GPU support unknown No native code found MIT
chunkr App Listed

Vision infrastructure to turn complex documents into LLM-ready data

0 binary downloads per release Not applicable 4,157 Not measured Not measured AGPL-3.0
instant-segment App Listed

Fast English word segmentation in Rust

0 binary downloads per release Not applicable 107 Not measured Not measured Apache-2.0
rsnltk Listed Dormant

Rust-based Natural Language Toolkit

Python bindings

0 downloads over 30 days 0 32 0.1.3 GPU support unknown No native code found MIT
snips-nlu-ontology App Listed Dormant

Ontology of Snips NLU

0 binary downloads per release Not applicable 60 Not measured Not measured Not measured
sudachi.rs App Listed

Sudachi in Rust 🦀 and new generation of SudachiPy

0 binary downloads per release Not applicable 490 Not measured Not measured Apache-2.0
tiktoken App Listed

tiktoken is a fast BPE tokeniser for use with OpenAI's models.

0 binary downloads per release Not applicable 19,621 Not measured Not measured MIT
NewsAggregator App Listed Dormant

A fast, searchable, knowledge engine using various machine learning models to aggregate based on importance, association and relevance

Not measured Not applicable 10 Not measured Not measured Not measured Apache-2.0
rs-natural App Listed Dormant

Natural Language Processing for Rust

Not measured Not applicable 236 Not measured Not measured Not measured MIT
New 6 projects

Fast PDF inspection, classification, and text extraction with smart scanned vs text-based detection

Python bindings

622,399 downloads over 30 days 16 19,959 1.25.2 GPU support unknown Binds native code: ort-sys (feature ocr-oar) MIT

Pre-built Snowball stemmers for Rust (tracks snowball main)

504,939 downloads over 30 days 4 4 2.20261016.1 GPU support unknown No native code found BSD-3-Clause
xberg New

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 107 formats and 371 programming languages via tree-sitter code intelligence with async/sync APIs.

26,095 downloads over 30 days 2 9,565 1.3.10 CUDA, Metal Binds native code: libheif-sys, libz-sys, xberg_libwpd, xberg_tesseract, clipper-sys and 4 more. Build uses a native toolchain: cc, bindgen (feature bindings), cmake (feature build-tesseract), pkg-config (feature dynamic-linking), vcpkg (feature dynamic-linking) MIT

Full Rust port of Python docling

9,879 downloads over 30 days 3 132 2.67.1 CUDA Binds native code: ort-sys, libsqlite3-sys (feature sqlite), libheif-sys (feature heif), libssh2-sys (feature remote-sources), libz-sys (feature remote-sources) and 1 more MIT

From-scratch pure-Rust SentencePiece inference (encode/decode), differentially verified against the upstream C++/Python implementation.

8,442 downloads over 30 days 3 1 0.1.1 GPU support unknown No native code found Apache-2.0

Readability metrics for English text: Flesch Reading Ease, Flesch-Kincaid, Gunning Fog, SMOG, ARI, Coleman-Liau, plus word/sentence/syllable counts. Zero-dependency, no_std.

95 downloads over 30 days 2 0 0.1.1 GPU support unknown No native code found Apache-2.0 OR MIT
Archived 6 projects
sticker Archived

Neural sequence labeler, superseded by SyntaxDot

21 downloads over 30 days 0 26 0.5.1 CUDA Binds native code: sentencepiece-sys, torch-sys, hdf5-sys (feature load-hdf5) Not measured

Wrapper around the Alpino tokenizer for Dutch

20 downloads over 30 days 0 3 0.4.0 GPU support unknown Binds native code: alpino-tokenizer-sys. Build uses a native toolchain: cc Apache-2.0
syntaxdot Archived

Neural sequence labeler

16 downloads over 30 days 0 81 0.5.0 CUDA Binds native code: sentencepiece-sys, torch-sys Apache-2.0 OR MIT
deepfrog Archived

A deep learning NLP suite (PoS,lemmatiser,NER) with FoLiA XML support

0 downloads over 30 days 0 19 0.2.1 GPU support unknown Binds native code: torch-sys GPL-3.0+
dpar App Archived

Neural network transition-based dependency parser (in Rust)

Not measured Not applicable 44 Not measured Not measured Not measured Apache-2.0
rustberta-snli App Archived

🦀 A Rust implementation of a RoBERTa classification model for the SNLI dataset

Not measured Not applicable 13 Not measured Not measured Not measured None stated