How to visualize a friend's lap data using Python word cloud and WordArt visualization tools

Source: Internet
Author: User

---restore content starts---

2, after you may also need some fonts, such as SIMHEI.TTF, these fonts are available on the Internet, can be downloaded directly, when the word cloud will be used, as shown in.

This place needs to notice, because our Memoent.json file is a Chinese character, if the open () function does not include encoding= ' utf-8 ' words will lead to GBK coding error, remember to add the code.

4, after running the program, get keys.png picture file, the effect of the program run as shown. You can see that the keys.png is already under the items.py directory.

5. Double-click the Keys.png, as shown in.

6, have to admit that the word cloud picture content is indeed rich, but also very ugly. Small series use WordArt (a word cloud website) to visualize your friends ' data in a more flattering and beautiful format.

7. For example, visualize with an animal's pattern, as shown in.

, write the code, the text is participle, the code implementation is as follows.

10, after the completion of the program, get the Moment_outputs.txt file, the content as shown, you can clearly see the word segmentation situation. The red part is the process of running the program.

11, continue to write code, the frequency of the statistical summary, the code implementation as shown.

12, the program run, get a TXT and Excel file, inside is about the word frequency statistics information, as shown. The red part is the result of the program running, and there is no error.

13. Import these keywords into WordArt for visualization, as shown in.

14, set a case, font, typesetting, color and so on, you can generate brilliant word cloud, is Wang word cloud.

15, is the small cloud word cloud, can bring a gluttonous feast to the vision.

Little friends, do you think it's magical? Favorite Words Welcome collection and Reprint Oh ~ ~

Welcome to follow my blog OH: https://home.cnblogs.com/u/sm123456/

You are welcome to join million people Exchange Learning Group: 125240963

---restore content ends---

How to visualize a friend's lap data using Python word cloud and WordArt visualization tools

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.