节点文献

基于爬虫和TFIDF-NB算法的微博情感分析

Sentiment analysis of Weibo based on TFIDF-NB algorithm

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 杨戈杨麓涛

【Author】 Yang Ge;Yang Lutao;Key Laboratory of Intelligent Multimedia Technology , Beijing Normal University (Zhuhai Campus);Engineering Lab on Intelligent Perception for Internet of Things (ELIP), Shenzhen Graduate School, Peking University;

【通讯作者】 杨戈;

【机构】 北京师范大学珠海分校智能多媒体技术重点实验室北京大学深圳研究生院深圳物联网智能感知技术工程实验室

【摘要】 针对微博网络舆情信息量大、无规则、随机变化的特点,提出TFIDF-NB(Term Frequency Inverse Document Frequency-Naive Bayes)用于微博情感分析,设计与实现了一个基于Scrapy框架的微博评论爬虫,将某热点事件的若干条微博评论进行爬取并存进数据库,然后进行文本分割、LDA (Latent Dirichlet Allocation)主题聚类,最后使用TFIDF-NB算法进行情感分类。实验结果表明,TFIDF-NB算法平均准确率高于线性支持向量机算法和K近邻算法,在精确率和召回率方面高于K近邻算法,具有较好的情感分类效果。

【Abstract】 In view of the large amount of public opinion information on Weibo, irregular and random changes, this paper proposes a Weibo sentiment analysis method based on TFIDF-NB( Term Frequency Inverse Document Frequency-Naive Bayes) algorithm. By coding a Weibo comment crawler based on the Scrapy framework, several Weibo comments on a hot event are crawled and stored in the database. Then text segmentation and LDA( Latent Dirichlet Allocation) topic clustering are performed. And finally the TFIDF-NB algorithm is used for sentiment classification. Experimental results show that the accuracy of the algorithm is higher than that of the standard linear Support Vector Machine algorithm and the K-Nearest Neighbor algorithm, and it is higher than the K-Nearest Neighbor algorithm in terms of accuracy and recall, and it has a better effect on sentiment classification.

【基金】 广东高校省级重大科研项目(2018KTSCX288,2019KZDXM015,2020ZDZX3058);广东省学科建设专项(2013WYXM0122);智能多媒体技术重点实验室(201762005);北京师范大学珠海分校2019校级“质量工程”课程思政项目(201932)
  • 【文献出处】 电子技术应用 ,Application of Electronic Technique , 编辑部邮箱 ,2021年04期
  • 【分类号】TP391.1
  • 【被引频次】5
  • 【下载频次】1202
节点文献中: 

本文链接的文献网络图示:

本文的引文网络