Skip to content
Advertisement

Tag: levenshtein-distance

How would I make clusters from a Levenshtein similarity matrix?

I have a similarity matrix of words and would like to apply an algorithm that can put the words in clusters. Here’s the example I have so far: Obviously this is a very simple dummy example, but what I would expect the output to be is 2 clusters, one with ‘The Bachelor’,’The Bachelorette’,’The Bachelor Special’, and the other with ‘SportsCenter’,’SportsCenter

Edit Distance w/ operational weights in Python

I am learning about edit distance for the first time and have only been coding for a few months. I’m trying to modify the algorithm such that the different editing operations carry different weights as follows: insertion weighs 20, deletion weighs 20 and replacement weighs 5. I have been able to implement the basic code that calculates minimum edit distance

Advertisement