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
date_corrector-0.0.2.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for date_corrector-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84cec1fcb89feb4921dd9b4e4f26ca0f99c6054a9dd4b0f6e4a722dbab752e34 |
|
MD5 | e90818a8c6d22e74fbeb4bcc01ff06eb |
|
BLAKE2b-256 | 8864586e43794287d4c28ebde816a4768dd7d3e1ff5d375c1407d7093c54cdba |