摘要
微博是当今公众传播信息的主要媒介之一,获取和分析微博数据能帮助研究者及时了解舆情信息。笔者以Python语言在网络爬虫和情感分析中的应用为基础,提出了一种微博情感简易分析方案,并建立了一个完整的微博情感分析过程。首先,应用Python语言采集微博中需要调查的相关关键词;其次,使用SnowNLP包对该数据进行情感分析并转换为数值和图像;最后,得出相关关键词之间的支持情况。
Microblog is one of the main media for the public to disseminate information nowadays.Obtaining and analyzing microblog data can help researchers understand public opinion information in time.Based on the application of Python language in web crawler and emotional analysis,the author puts forward a simple emotional analysis scheme of micro-blog,and establishes a complete emotional analysis process of micro-blog.Firstly,we use Python language to collect the relevant keywords in microblog.Secondly,we use SnowNLP package to analyze the data and convert it into data and images.Finally,we get the support among the relevant keywords.
作者
王欣
周文龙
Wang Xin;Zhou Wenlong(The College of Post and Telecommunication of WIT,Wuhan Hubei 430073,China)
出处
《信息与电脑》
2019年第6期76-77,80,共3页
Information & Computer
基金
2018年院级大学生创新创业项目"微博情绪简易分析系统"(项目编号:CXCY1812)