Loading...
In Optical Character Recognition (OCR), text extracted from images often contains errors. Edit Distance (Levenshtein Distance) measures how different two strings are, which helps in:
Given two strings source and target, find the minimum number of operations required to convert source to target. The allowed operations are:
source = "kitten", target = "sitting"
3
kitten → sitten (replace k with s) → sittin (replace e with i) → sitting (insert g)