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

Feature: set a limit if distance greater than N , stop #21

Open
leobenkel opened this issue Aug 13, 2018 · 1 comment
Open

Feature: set a limit if distance greater than N , stop #21

leobenkel opened this issue Aug 13, 2018 · 1 comment

Comments

@leobenkel
Copy link

Would be great to have editdistance.eval(a, b, limit=5) if the result would be > 5 then it returns None

@dequeued0
Copy link

This would be a great feature, especially if it helps reduce the cost of comparing two texts that are significantly different for applications where the goal is determining whether two texts are similar or not and when knowing the distance is only important for small distances.

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