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

edit distance issue #121

Closed
mrkrcc opened this issue Apr 19, 2022 · 1 comment
Closed

edit distance issue #121

mrkrcc opened this issue Apr 19, 2022 · 1 comment

Comments

@mrkrcc
Copy link

mrkrcc commented Apr 19, 2022

CHANGES_MAP = { 1: 0, 2: 0, 3: 1, 4: 1, 5: 1, 6: 2, 7: 2, 8: 2, 13: 3, 14: 4, 19: 4, 20: 5, 26: 5, 27: 6, 36: 6 }
i have changes map like above(len(word): editDistance).
max_dictionary_edit_distance: int = 2

whenever i change editDistance to more than 2, i got an error

if max_edit_distance > self._max_dictionary_edit_distance:
raise ValueError("distance too large")

even if i change default max_dictionary_edit_distance it returns 2 again. i know it is possible to change, but i couldn't

@mrkrcc
Copy link
Author

mrkrcc commented Apr 19, 2022

i was using saved pickle so impossible to change distance.

@mrkrcc mrkrcc closed this as completed Apr 19, 2022
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

1 participant