Skip to content

Conversation

@poke1024
Copy link

@poke1024 poke1024 commented Apr 21, 2019

Based on http://stevehanov.ca/blog/?id=114

The relevant commit here is:
7a2379a

Sort of depends on #38.

Allows you to compute fast Levenshtein distances over large vocabularies:

import dawg

keys = ["weather", "this", "there", "thus", "another"]

d = dawg.NearestDAWG(keys)

for k, cost in d.items("other", 2):
	print(k, cost)

With #38, this could be a single new function similar inside the DAWG class (my preferred solution).

tested with python 3.7.3 and python 2.7.10
@poke1024
Copy link
Author

This needs more work. I'll continue to work on this on a fork.

@poke1024 poke1024 closed this Apr 27, 2019
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

Successfully merging this pull request may close these issues.

1 participant