A simple package for date correction
Project description
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)]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file date_corrector-0.0.3.tar.gz.
File metadata
- Download URL: date_corrector-0.0.3.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f00b7759c504afcb7538b9641455c7d9c0ebe3be59b7c3e0446c729fd9ddda63
|
|
| MD5 |
87f658dc6bebf7737e7558ca8f46dda3
|
|
| BLAKE2b-256 |
ad600679dea15ea6951f737b3c68df1a14e99122ba8ceedab84ea1a12b81678b
|
File details
Details for the file date_corrector-0.0.3-py3-none-any.whl.
File metadata
- Download URL: date_corrector-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe020d319a59bbb424c3cb2a245c295a1b29cbca73d3df8944047759bf56df0e
|
|
| MD5 |
e04dffe69b612884fd8b7c2a8ae76d6d
|
|
| BLAKE2b-256 |
cb457d8c709959d05876d728181bb832d9ae9e3913f7eb3dc9b325ea766b5076
|