doppio/word2num
A Python package for converting numbers expressed in natural language to numerical values.
This tool helps you convert numbers written out in words, like 'fifty-seven thousand,' into their numerical form (57421). It takes text where numbers are spelled out and gives you the actual digits. Anyone who works with text data that contains numbers written in natural language, such as transcribers, data entry specialists, or researchers, would find this useful.
No commits in the last 6 months. Available on PyPI.
Use this if you need to quickly and accurately convert numbers expressed in natural language text into their numerical values, even with misspellings or complex phrasing.
Not ideal if your data exclusively contains numbers already in digit form or if you require conversion for unsupported languages.
Stars
13
Forks
2
Language
Python
License
MIT
Category
Last pushed
Nov 25, 2023
Commits (30d)
0
Dependencies
2
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/doppio/word2num"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
PyThaiNLP/nlpo3
Thai natural language processing library in Rust, with Python and Node bindings.
forzagreen/n2words
Convert numerical numbers to written numbers, in 52+ languages.
greyblake/whatlang-rs
Natural language detection library for Rust. Try demo online: https://whatlang.org/
wikimedia/sentencex
A sentence segmentation library with wide language support optimized for speed and utility.
pemistahl/lingua-rs
The most accurate natural language detection library for Rust, suitable for short text and...