Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Word extracts based on Damerau Levenshtein Distance #1

Open
acerock6 opened this issue Nov 30, 2018 · 1 comment
Open

Word extracts based on Damerau Levenshtein Distance #1

acerock6 opened this issue Nov 30, 2018 · 1 comment

Comments

@acerock6
Copy link

Hi, Thanks for the Trie implementation in Python along with string matching based on Hamming and Levenshtein distance. Wonderful (since couldn't find a simpler way to get string matches using Trie)
Is it possible to also include Damerau-Levenshtein distance measure with a parameter for edit distance, since almost all the spell correct solutions use DL distance measure to get suggestion candidates from a dictionary?
Happy to work on it if needed :)

@jfjlaros
Copy link
Owner

I am not sure this will fit.

What worries me is that it is possible to edit the same substring more than once when using the DL distance. It seems to me that this is only possible by altering the trie or by forwarding some information in the recursive trie traversal.

I will give it some more thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants