Text-to-Number
Convert textual numerical descriptions into their digit forms within strings, like turning "one apple" into "1 apple". Ideal for preprocessing text data for analysis or applications requiring numerical representations.
Installation
Install via pip:
pip install text-to-number
Usage
To convert text in your Python code:
from text_to_number import text_to_number
result = text_to_number("I have two apples and three bananas.")
print(result) # Outputs: "I have 2 apples and 3 bananas."
Features
- Converts words to digits within a string.
- Supports numbers from zero to billions.
- Handles both singular and compound numbers (e.g., "twenty-one").
Contributing
Contributions are welcome! See our contributing guidelines on GitHub.
License
Distributed under the MIT License. See LICENSE for more information.
Contact
Soham Padia - sohampadia10@gmail.com
Project Link: https://github.com/soham-padia/textToInt
Metadata
Release files for text-to-number 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| text_to_number-0.1.2.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| text_to_number-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / text_to_number-0.1.2.tar.gz
| Download URL | text_to_number-0.1.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27388333b47c531e04bbbf048a8ae6f60a4f6a39d19b26616fdef2161a774222
|
|
BLAKE2b-256 checksum How to use checksums |
1495ecb248df058b1a66ca3b1e9604189a3f61b46ce7d20ab211c77bbe6b6bbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Release files / text_to_number-0.1.2-py3-none-any.whl
| Download URL | text_to_number-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
930a07cd5249d579c60b6be13cc5afb5177609e8c2f9267d729e0100445abd1e
|
|
BLAKE2b-256 checksum How to use checksums |
2a5704d55db890e6161b4873c4ec2fc02ada21804d3ce39fd7463c3ae3cc6576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|