This release is a pre-release and may not be stable for production use.
numtag
numtag finds every number in a text. For each number it gives the exact words, their character offsets, the value and the kind.
from numtag import tag_numbers
tag_numbers("comprou duas dúzias de ovos e um milhão de euros", "pt-PT")
# [NumberMention(char_span=(8, 19), text='duas dúzias', value='24', kind=Kind.CARDINAL, ...),
# NumberMention(char_span=(30, 39), text='um milhão', value='1000000', kind=Kind.CARDINAL, ...)]
A value is a digit string with no limit on its length: "24", "-2.5" or "1/3". numtag never converts a value to int or float, so no rounding changes a digit. Convert it with int(), decimal.Decimal() or fractions.Fraction() when you need a number.
The language rules are data files in numtag/lexicon/, one per language, with the source of each rule in the file.
Metadata
Release files for numtag 0.0.2a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| numtag-0.0.2a1.tar.gz | 10.1 kB | Without provenance | Details for numtag-0.0.2a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| numtag-0.0.2a1-py3-none-any.whl | Python 3 | none | any | Details for numtag-0.0.2a1-py3-none-any.whl |
Total release size: 18.2 kB
Release files / numtag-0.0.2a1.tar.gz
| Download URL | numtag-0.0.2a1.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44d33ebf006e4aee31dba6db6a9784431314dcb35684d9b388740b4bff8461e2
|
|
BLAKE2b-256 checksum How to use checksums |
2459b0f31df63cf494b48780fa87e6dc8d6bd4269aef5b9d2288730aeda9af54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / numtag-0.0.2a1-py3-none-any.whl
| Download URL | numtag-0.0.2a1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
339771e92f860da9800594588dee10df78bdff1724e1a7b73471e69d3422ba98
|
|
BLAKE2b-256 checksum How to use checksums |
3044dbe10dd04342bb8029cdcb3435d60f56924cf2679576510dd0f0ef67c0a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for numtag 0.0.2a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.