Skip to main content

A python package for extracting numbers from text

Project description

wordswnumbers

words2numbers is a python library for extracting numbers from unstructured text.

Installation

Use the package manager pip to install words2numbers.

pip install words2numbers

Usage

from words2numbers import words2numbers

print(words2numbers("I have six hundred and twenty nine dollars"))
[('six hundred and twenty nine',
  629,
  {'number_type': 'number', 'span': (7, 34), 'value_type': 'integer'})]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

words2numbers-5.12.22-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file words2numbers-5.12.22-py3-none-any.whl.

File metadata

File hashes

Hashes for words2numbers-5.12.22-py3-none-any.whl
Algorithm Hash digest
SHA256 79928b24ca42f908275c675455364930128725bfa19b7e9ffbb6b63f3dba921e
MD5 c9cc37d52ed0636fb9713502b5ed28a8
BLAKE2b-256 de66b3aa69159d87045f04a485e122644e9e1f02949947e7c1f9f2912ffde119

See more details on using hashes here.

Supported by

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