Skip to main content

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)

Source distribution for date-corrector 0.0.3
File Size Uploaded
date_corrector-0.0.3.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for date-corrector 0.0.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page