DSCLIRMar 11, 2021

Imagined-Trailing-Whitespace-Agnostic Levenshtein Distance For Plaintext Table Detection

arXiv:2103.06942v1
Originality Incremental advance
AI Analysis

This work addresses a specific issue in text processing for table detection, offering an incremental improvement over existing methods.

The paper tackles the problem of non-intuitive Levenshtein distance values due to trailing whitespace treatment by proposing an efficient O(n^2) algorithm that aligns with human intuition, improving table detection and alignment tasks.

The standard algorithm for Levenshtein distance, treats trailing whitespace the same as any other letter or symbol. However, when humans compare 2 strings, we implicitly assume that both strings are padded by infinite trailing whitespace. This informs our expectations for what the costs for insertion, deletion and replacement, should be. This violation of our expectations results in non-intuitive edit distance values. To account for this specific human intuition, a naive approach which considers "all possible" substrings of trailing whitespace would yield an $O(n^3)$ algorithm. In this work, we provide an efficient $O(n^2)$ algorithm to compute the same. Keywords: Imagined Infinite Trailing Whitespace, Human Friendly, Intuitive Edit Distance, Table Detection, Table Alignment

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes