How to create a word cloud from a corpus in Python?

后端 未结 5 1659
刺人心
刺人心 2020-12-04 09:57

From Creating a subset of words from a corpus in R, the answerer can easily convert a term-document matrix into a word cloud easily.

Is there a similar

5条回答
  •  死守一世寂寞
    2020-12-04 10:55

    In case you require these word clouds for showing them in website or web app you can convert your data to json or csv format and load it to a JavaScript visualisation library such as d3. Word Clouds on d3

    If not, Marcin's answer is a good way for doing what you describe.

提交回复
热议问题