You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if it is possible to have a function that returns early when the levenshtein distance is gauranteed to be < an input k, and returns a boolean. I think this might speed up queries that only ask for words that are close but do not care exactly how close they are.
Any thoughts? Thanks in advance.
The text was updated successfully, but these errors were encountered:
The main reason I didn't do so yet is that I haven't really seen any cases, where:
this is the wanted behaviour. In most cases you still want to know the similarity. One case I could think of is something like deduplication.
the score_cutoff is relatively high. For a low score_cutoff this wouldn't really help, since we would essentially need to calculate pretty much the complete distance anyway. In fact the additional check of the exit condition would cause slowdowns when we can't exit early.
I wonder if it is possible to have a function that returns early when the levenshtein distance is gauranteed to be < an input k, and returns a boolean. I think this might speed up queries that only ask for words that are close but do not care exactly how close they are.
Any thoughts? Thanks in advance.
The text was updated successfully, but these errors were encountered: