Skip to main content

Convert written numbers to digits using Rust + Python

Project description

text2num-py

Convert Dutch written out numbers (e.g. "duizendnegenhonderddrieënzeventig") into digits using Rust + Python.

Installation

pip install dutchtext2num

Usage

from polytext2num import text_to_number

print(text_to_number("duizendnegenhonderddrieënzeventig", "dutch"))    # → "1973"
print(text_to_number("one thousand nine hundred seventy-three", "en")) # → "1973"
print(text_to_number("quatre-vingt-dix", "french"))                    # → "90"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polytext2num-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl (297.7 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file polytext2num-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for polytext2num-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cc72607cc8227ace117c67cd127b8b2241329e825d795bb570684ce0c9722e99
MD5 998ab95feff14fb378890c2beaa7a389
BLAKE2b-256 085366fd7760b023a6284537938843ea208d84d843bb2e61bfe37c3e28bc4fac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page