$npx skillfedfor your agent

blingfire

Python wrapper of lightning fast Finite State Machine based NLP library.

With conditionsPyPI LinguisticReleased Sep 2021879.9K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — blingfire-0.1.8-py3-none-any.whl
v0.1.8 · released 2021-09-24

Yes, if you need fast tokenization for NLP inference. The package is stable, has no dependencies, and offers significant speed advantages over pure-Python alternatives. However, be aware it is dormant (last release September 2021) and may not receive updates for new Python versions or model formats. Suitable for production use where the existing models and algorithms meet your needs.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is straightforward with no runtime dependencies.
  • The package is dormant (last release September 2021, no commits since December 2024), but the underlying C++ library is stable and widely used in production at Microsoft.

License · maintenance · safety

permissive license (permissive) — Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.

last release 2021-09-24 (1785 days) · last repo commit 2024-12-08 · 1,893 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 879,860 downloads/mo, #4,823 on PyPI

Verify before relying

pip install blingfire

from blingfire import text_to_words, text_to_sentences

text = 'Hello world. This is a test.'
print(text_to_sentences(text))
print(text_to_words(text))
  • Whether the package works with Python versions beyond 3.x (exact version support unspecified in metadata)
  • Current maintenance status and whether dormancy affects compatibility with modern Python tooling
Same gist for agents: .md · .json

What it is and what it does

Blingfire is a Python wrapper around Microsoft's finite state machine–based NLP library, designed for high-performance text tokenization and linguistic operations. It provides a unified interface across multiple tokenization algorithms (pattern-based, WordPiece, SentencePiece variants, and BPE) and ships with prebuilt models for popular frameworks like BERT, XLNET, GPT-2, and XLM-RoBERTa, as well as multilingual models for 80+ languages.

The library is optimized for low-latency inference and requires no runtime dependencies beyond Python itself. Models are loaded on demand from binary files, and the package includes default models for sentence breaking and word tokenization that work without additional configuration. It's particularly useful when you need fast, production-grade tokenization that outperforms pure-Python alternatives.

Use it for

  • Tokenizing text for BERT, XLNET, or GPT-2 models in inference pipelines where latency matters
  • Sentence segmentation and word tokenization in high-throughput NLP applications
  • Multilingual text processing using prebuilt models trained on 80+ languages
  • Custom tokenization workflows by loading your own finite state machine models
  • Replacing slower tokenizers (SpaCy, Hugging Face) when speed is critical

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need fast tokenization for NLP inference.

The package is stable, has no dependencies, and offers significant speed advantages over pure-Python alternatives. However, be aware it is dormant (last release September 2021) and may not receive updates for new Python versions or model formats. Suitable for production use where the existing models and algorithms meet your needs.

Install

blingfire on PyPI

Before you install

Installation is straightforward with no runtime dependencies. The package is dormant (last release September 2021, no commits since December 2024), but the underlying C++ library is stable and widely used in production at Microsoft.

License in practice

Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.

Quickstart

pip install blingfire

from blingfire import text_to_words, text_to_sentences

text = 'Hello world. This is a test.'
print(text_to_sentences(text))
print(text_to_words(text))

Verify before relying

  • Whether the package works with Python versions beyond 3.x (exact version support unspecified in metadata)
  • Current maintenance status and whether dormancy affects compatibility with modern Python tooling

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 1,785 days since the last release
Last repo commit
First released
Downloads879,860 / month, #4,823 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Evidence: blingfire-0.1.8-py3-none-any.whl

Tags

Capabilities
fast tokenization nlpbert wordpiece tokenizersentence segmentationtext tokenization libraryfinite state machine nlpmultilingual tokenizationsentencepiece alternative
Topics
tokenizationnlpperformance-critical

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “fast tokenization nlp”

  • blingfireBlingfire provides fast tokenization and text processing using finite…
  • livekit-blingfireProvides BlingFire tokenization bindings for the LiveKit Agents…
  • rjiebaA Python binding to the Rust-based jieba-rs Chinese text segmentation…

Give your agent the search over MCP, or paste the wish link into any chat.

More Linguistic packages

charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
tiktoken Worth it
PyPI · Linguistic · released May 2026

tiktoken is a fast BPE tokenizer that converts text into token sequences compatible with OpenAI models, supporting multiple encoding schemes including o200k_base and model-specific encodings.

Install it if you work with OpenAI APIs or need to understand token boundaries in GPT-family models.

permissive licensecompiled wheel · 3.9+
233.0Mdownloads / mo
chardet Worth it
PyPI · Python Modules · released Aug 2026

Detects character encoding and language in byte sequences with high accuracy, supporting 99 encodings and returning confidence scores, language tags, and MIME types.

Install it if you need to detect character encoding or language in byte data; the rewrite makes it substantially faster and more accurate than its predecessors.

0BSDpure Python · 3.10+
199.0Mdownloads / mo
text-unidecode With conditions
PyPI · Python Modules · released Aug 2019

Converts Unicode text to ASCII by transliterating non-ASCII characters into their closest ASCII equivalents, with no runtime dependencies.

However, if transliteration quality or ongoing maintenance matters, consider unidecode instead despite its GPL-only license.

GPL-2.0-or-laterpure Pythonabandoned
89.0Mdownloads / mo
lark Worth it
PyPI · Python Modules · released Oct 2025

Lark is a parsing library that builds abstract syntax trees from context-free grammars, supporting multiple parsing algorithms (Earley, LALR(1), CYK) with automatic line and column tracking.

MITpure Python · 3.8+
79.7Mdownloads / mo
tree-sitter Worth it
PyPI · Linguistic · released Jun 2026

Python bindings to the tree-sitter parsing library, enabling incremental parsing and syntax tree analysis for source code.

MITcompiled wheel · 3.10+
79.0Mdownloads / mo

See also curated-tokenizers · tokenizers · tokie · torchtext · livekit-blingfire · fastokens · tokenizer · snowballstemmer · tensorflow-text · jieba3k