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
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file words2numbers-5.12.22-py3-none-any.whl
.
File metadata
- Download URL: words2numbers-5.12.22-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79928b24ca42f908275c675455364930128725bfa19b7e9ffbb6b63f3dba921e |
|
MD5 | c9cc37d52ed0636fb9713502b5ed28a8 |
|
BLAKE2b-256 | de66b3aa69159d87045f04a485e122644e9e1f02949947e7c1f9f2912ffde119 |