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