Skip to content

godweiyang/wordcloud

Repository files navigation

wordcloud

wordcloud in python

File System

  • data

    • templates: users' pictures
    • stopwords.txt: stopwords which you do not want
  • fonts: users' fonts

  • create_word_cloud.py: main function

  • preprocess.py: preprocess the QQ chat records

Usage

First install jieba and wordcloud: pip3 install jieba and pip3 install wordcloud

Then run code in terminal: python3 create_word_cloud.py filename.txt

If you want to generate the wordcloud of QQ chat record, first preprocess the text file: python3 preprocess.py filename.txt

Then run the main code: python3 create_word_cloud.py __filename.txt

For more details, read my blog post: wordcloud

About

wordcloud in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy