摘要
在机器学习中,利用Python语言制作词云图为保护环境提供了新途径。基于此,本文主要讲述了如何利用Python词云生成技术对文本进行训练并生成词云图,首先对摘选文本进行jieba分词,然后利用IF-IWF算法更加精确地提取关键词,最终使用wordcloud绘制出词云图,实现可视化,希望能够为相关研究提供借鉴。
In machine learning,the use of Python language to produce word cloud maps provides a new way to protect the environment.Based on this,this article mainly describes how to use Python word cloud generation technology to train text and generate word cloud images.First,the selected text is segmented by jieba,and then the IF-IWF algorithm is used to extract keywords more accurately,and finally drawn using wordcloud The word cloud diagram realizes visualization,hoping to provide reference for related research.
作者
张若琪
王涵
闫凌云
刘一辰
ZHANG Ruoqi;WANG Han;YAN Lingyun;LIU Yichen(School of Software,Henan Normal University,Xinxiang Henan 453007,China;School of International Education,Henan Normal University,Xinxiang Henan 453007,China)
出处
《信息与电脑》
2021年第5期201-203,共3页
Information & Computer
关键词
TF-IWF
分词
词云生成
环境治理
TF-IWF
word segmentation
word cloud generation
environmental governance