I have a list of strings and I want to classify it by using clustering in Python.
list = ['String1', 'String2', 'String3',...]
I want to use Levenshtein distance, so I used jellyfish library. Given two strings, I know that their distance can be found this way:
jellyfish.levenshtein_distance('string1', 'string2')
My problem is that I don't know how to use scipy.cluster.hierarchy to get a list in Python of each cluster. I have also tried using linkage function:
linkage(y[, method, metric])
But I am not able to get the final list with clusters.
Any help?