Description
date-corrector is a simple postprocessing library to provide correction suggestions for dates extracted by an OCR. The library utilizes the levenshtein distance concept and uses backtracking with dynamic programming to search for possible date corrections. It can correct both english and arabic dates.
Installation
pip install date-corrector
Usage
from date_corrector import correctDate, listLanguages
languages = listLanguages()
print(languages) # ['en', 'ar']
suggestions = correctDate('IZIo212O21', 'en')
print(suggestions) # [('17/02/2021', 40.0), ('12/02/2021', 40.0)]
Metadata
Release files for date-corrector 0.0.3
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 |
|---|---|---|---|---|
| date_corrector-0.0.3.tar.gz | 8.3 kB | Without provenance | Details for date_corrector-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| date_corrector-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for date_corrector-0.0.3-py3-none-any.whl |
Total release size: 18.2 kB
Release files / date_corrector-0.0.3.tar.gz
| Download URL | date_corrector-0.0.3.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f00b7759c504afcb7538b9641455c7d9c0ebe3be59b7c3e0446c729fd9ddda63
|
|
BLAKE2b-256 checksum How to use checksums |
ad600679dea15ea6951f737b3c68df1a14e99122ba8ceedab84ea1a12b81678b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / date_corrector-0.0.3-py3-none-any.whl
| Download URL | date_corrector-0.0.3-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe020d319a59bbb424c3cb2a245c295a1b29cbca73d3df8944047759bf56df0e
|
|
BLAKE2b-256 checksum How to use checksums |
cb457d8c709959d05876d728181bb832d9ae9e3913f7eb3dc9b325ea766b5076
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for date-corrector 0.0.3
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.