Hey so I have been using ugrep's fuzzy search feature for some of my university projects which involve OCR scanning huge corpus of documents. One problem which I run into often is that finetuning the edit distance parameter to match common OCR errors, is a bit of chore.
My current pipeline is somewhat similar to what is describe in #304, followed by manual scanning as I have to keep the edit distance a bit wide to get all possible OCR errors
I propose a sort of OCR aware fuzzy search, something like:
Normal edit distance:
rn → m cost 2
I → l cost 1
O → 0 cost 1
OCR aware:
rn → m cost ~0.5
I → l cost ~0.2
O → 0 cost ~0.2
We can let the user describe these configurations, and if possible, have some preset ones for common OCR technologies like Tesseract
Hey so I have been using ugrep's fuzzy search feature for some of my university projects which involve OCR scanning huge corpus of documents. One problem which I run into often is that finetuning the edit distance parameter to match common OCR errors, is a bit of chore.
My current pipeline is somewhat similar to what is describe in #304, followed by manual scanning as I have to keep the edit distance a bit wide to get all possible OCR errors
I propose a sort of OCR aware fuzzy search, something like:
Normal edit distance:
rn → m cost 2
I → l cost 1
O → 0 cost 1
OCR aware:
rn → m cost ~0.5
I → l cost ~0.2
O → 0 cost ~0.2
We can let the user describe these configurations, and if possible, have some preset ones for common OCR technologies like Tesseract