text2numde
This python package converts numbers written as text into float or integer values.
It can furthermore:
- Validate a text to see if it represents a numbers
- Replace numbers in sentences without modifying the sentence around the numbers.
Example usage
>>> from text2numde import text2num, is_number, sentence2num
>>> text2numde('Eins')
1
>>> text2num('Einhundertunddrei')
103
>>> text2numd'Vierzehnkommaachtneundrei')
14.893
>>> is_number('Einhundertunddrei')
True
>>> is_number('Zehnzehnhundert')
False
>>> sentence2num('Ich habe zwei Hunde und vierzig Vögel.')
Ich habe 2 Hunde und 40 Vögel.
Release files for text2numde 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| text2numde-1.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| text2numde-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / text2numde-1.0.tar.gz
| Download URL | text2numde-1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ff319cbc266548e24b02ffe0fde91e30c3b9b0280a850d947ed94f04bcac3a3
|
|
BLAKE2b-256 checksum How to use checksums |
3657845c6e55803d262df413d7421997da9898db1a236506790516652a9cf3f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / text2numde-1.0-py3-none-any.whl
| Download URL | text2numde-1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da2eceacedbd1435d543257c5671a0ac666d69b2df9d919e4f86d9b3a6bd6b1c
|
|
BLAKE2b-256 checksum How to use checksums |
1d2c3e56b8d9f7adb31636236726c1e7820fe669709da3e7fc6b32930e651531
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|