Word clustering in python
Word clustering will be really disappointing because the computer does not understand language.
You could use levenshtein distance and then do hierarchical clustering.
But:

dog and fog have a distance of 1, i.e. are highly similar.
dog and cat have 3 out of 3 letters different.

So unless you can define a good measure of similarity, don't cluster words.
How to cluster only words in a given set of Data: i have been going through few algorithms online like k-Means algotihm,but it seems they are related to document clustering instead of word clustering.Can anyone suggest me some way to only cluster words in a given set of data???.
please am new to python.