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
string_distance('method',str1, str2) as a generic distance function #7324
Comments
For extending MonetDB with more string distance functions, you can create a user defined function (in either SQL or C or Python). See https://www.monetdb.org/documentation/user-guide/sql-programming/function-definitions/ If you require this feature to be implemented natively in MonetDB source code (like levenshtein()), please contact MonetDB Solutions |
Some or all of these (or something closely related) is now in the Jun2023 releases. See the release notes at https://www.monetdb.org/release-notes/jun2023/ |
Hello @njnes and @sjoerdmullender First of all, thanks, that's cool to see you take users feedback into account. However, I'm a little surprised by what I read in the release notes : Levenshtein and Damerau-Levenshtein are two different things. Does it mean the old levenshstein distance function was actually a damerau-levenshtein? I'm ashamed I didn't even notice. Best regards, Simon |
When I look back at the older branches I indeed see that the levenshtein function we had in that time already included transpositions, which I think is the big difference between levenshtein and Damerau-Levenshtein. So yes we use to have the incorrect (or more advanced) implementation, the rename is correct. |
@njnes Thanks for the clarification ! |
Is your feature request related to a problem? Please describe.
I would like to use several different methods to calculate distance between two strings :
-levenshtein (already exists)
-hamming
-jaro winkler
-damerau levenshtein
-...
Describe the solution you'd like
a generic function string_distance('method',str1, str2) with useful error messages about methods when incorrect
Describe alternatives you've considered
several functions : seems too much for a simple usage
Best regards,
Simon
The text was updated successfully, but these errors were encountered: