clustering list of words in python

后端 未结 3 1636
無奈伤痛
無奈伤痛 2021-01-03 11:37

I am a newbie in text mining, here is my situation. Suppose i have a list of words [\'car\', \'dog\', \'puppy\', \'vehicle\'], i would like to cluster words into k groups, I

3条回答
  •  感情败类
    2021-01-03 12:22

    If you want to cluster words by their "semantic similarity" (i.e. likeness of their meaning) take a look at Word2Vec and GloVe. Gensim has an implementation for Word2Vec. This web page, "Word2Vec Tutorial", by Radim Rehurek gives a tutorial on using Word2Vec to determine similar words.

提交回复
热议问题