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 | |
|---|---|---|---|
| date_corrector-0.0.3.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| date_corrector-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
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
|