amueller / word_cloud

A little word cloud generator in Python
https://amueller.github.io/word_cloud
MIT License
10.08k stars 2.31k forks source link

Multiple word phrases #645

Open horror-vacui opened 3 years ago

horror-vacui commented 3 years ago

It is an amazing tool! Thanks for sharing it!

I was curious how to create a "phrase cloud" from 2-3 words phrases beyond words. My use case is to visualize a long list; to make it fancy. It is not about visualizing the words in a text. I was not able to figure it out. Is it possible to do that? Do you have an example for it? I think it would be a great, and useful addition to the wordcloud. Sorry if it exists already. I have not found it in the help.

amueller commented 3 years ago

Sorry for the slow reply. You can use generate_from_frequencies and just provide a dictionary where the keys are phrases.