recognizers-text-number-with-unit
recognizers-text-number-with-unit README
What it is and what it does
This package extracts and normalizes numbers paired with units from natural language text. It handles quantities expressed in words by identifying the numeric value and its associated unit, then resolving both to a canonical form. The package is part of Microsoft's Recognizers-Text ecosystem and powers entity recognition in LUIS, Power Virtual Agents, and the Bot Framework.
The module depends on recognizers-text and recognizers-text-number as its core runtime dependencies, plus regex for pattern matching. It supports full recognition in Chinese, English, French, Spanish, Portuguese, German, Italian, Turkish, Hindi, and Dutch, with partial support for Japanese, Korean, Arabic, and Swedish. The package is distributed as a pure-Python wheel with low installation friction.
Use it for:
- Extract currency amounts and units from financial documents or user input for chatbots and virtual assistants
- Parse measurement specifications in product descriptions or technical documentation across multiple languages
- Normalize age and other personal metrics from user-provided text in healthcare or fitness applications
- Identify temperature readings and unit conversions in weather data or IoT sensor logs
- Build multilingual NLP pipelines that need to recognize and standardize numeric quantities with units
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Recognizes and extracts numbers with units (age, currency, dimensions, temperature) from text in multiple languages, resolving them to standardized values.
Yes, with conditions. The package is permissively licensed, has low install friction, and addresses a real need for multilingual unit extraction. However, it is in alpha status with no releases since November 2019—verify that the recognition accuracy and language coverage meet your use case before committing to production. The active repository and 1793 stars suggest ongoing community interest, but the stale release cycle warrants caution.
Install
recognizers-text-number-with-unit on PyPI
pip
pip install recognizers-text-number-with-unituv
uv add recognizers-text-number-with-unitpoetry
poetry add recognizers-text-number-with-unitInstalling recognizers-text-number-with-unit
Before you install
Low install friction with a pure-Python wheel. Actively maintained as of April 2026 with 1793 repository stars. However, the package is in alpha status (version 1.0.2a2) and has not received a release since November 2019, which may indicate limited recent development on this specific module.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install recognizers-text-number-with-unit
from recognizers_text_number_with_unit import recognize_number_with_unit
results = recognize_number_with_unit("I am 25 years old", "en-us")
Verify before relying
- Current stability and active maintenance status of the Python implementation, given the alpha version and 2019 release date
- Whether partial language support (Japanese, Korean, Arabic, Swedish) is available in this specific module
- Performance characteristics and accuracy benchmarks for unit recognition across supported languages
- Specific numeric examples and edge cases handled by the recognizer
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — recognizers-text, recognizers-text-number, regex |
| Maintenance | actively maintained — 2,467 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 99,743/month — #13,012 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: recognizers_text_number_with_unit-1.0.2a2-py3-none-any.whl
Keywords: nlp, nlp-entity-extraction, entity-extraction, parser-library
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
quantulum3Extracts quantities, measurements, and their…
permissive · top 15,000 on PyPI
recognizers-textRecognizes and extracts entities like numbers,…
permissive · top 15,000 on PyPI
recognizers-text-numberRecognizes and extracts numeric entities…
permissive · top 15,000 on PyPI
recognizers-text-choiceRecognizes and resolves entities like numbers,…
permissive · top 15,000 on PyPI
recognizers-text-date-timeRecognizes and resolves date and time entities…
permissive · top 15,000 on PyPI
num2wordsConverts numbers to their word representations…
copyleft · top 5,000 on PyPI
number-parserConverts numbers written in natural language…
permissive · top 15,000 on PyPI
presidio-analyzerDetects personally identifiable information…
permissive · top 5,000 on PyPI
date-spacyAdds a spaCy pipeline component that identifies…
permissive · top 15,000 on PyPI
cn2anConverts between Chinese numerals and Arabic…
permissive · top 15,000 on PyPI