APP下载

基于情感主题特征词加权的微博评论聚类算法研究

2020-12-23吴迪杨瑞欣申超

现代电子技术 2020年23期

吴迪 杨瑞欣 申超

摘  要: 为了提高微博评论的情感分析聚类效果,提出一种基于情感主题特征词加权的微博评论聚类算法。该算法首先通过定义情感主题词袋提取情感主题词;然后利用语义相似度计算获得情感主题特征词,进一步通过定义情感主题特征词重要度和分布度对其进行加权,充分考虑情感主题特征词对主题的贡献度;最后通过LDA聚类获得加权的情感主题特征词。实验结果表明,该算法表现出较好的情感分析聚类效果,对网络舆情分析有一定的指导作用。

关键词: 微博评论; 聚类算法; LDA聚类; 情感分析; 特征词加权; 主题词提取

中图分类号: TN911.1?34; TP391.1                 文献标识码: A                   文章编号: 1004?373X(2020)23?0067?05

Abstract: In order to enhance clustering effect of sentiment analysis on microblog comments, a microblog comment clustering algorithm based on the weighted sentiment topic feature words is proposed in this paper. With the algorithm, the sentiment topic words are extracted by defining the sentiment topic word bag, and then the sentiment topic feature words are obtained by calculation of semantic similarity. The sentiment topic feature words are weighted by defining their importance and distribution. The contribution of sentiment topic feature words to the topic is considered fully in the algorithm. The weighted sentiment topic feature words have been obtained by latent Dirichlet allocation (LDA) clustering. The experimental results show that the algorithm has a good clustering effect of sentiment analysis, and has a certain guiding role for network public opinion analysis.

Keywords: microblog comment; clustering algorithm; LDA clustering; sentiment analysis; feature word weighting; topic word extraction

0  引  言

隨着网络的普及,微博已成为获取社会资讯的重要渠道[1]。用户微博上的评论包含主观情感的表达,并携带大量用户信息和数据信息,微博用户的情感表达也会对其他用户的情感甚至对政府的决策行为产生影响。因此,亟需对微博评论进行有效的情感分析,从而把握网络舆情走向[2]。

目前,主题模型已成为微博评论分析领域的热点。LDA(Latent Dirichlet Allocation,隐含的狄利克雷分配)主题模型是包括词项、主题和文档三层结构的文档生成概率模型[3],可以识别大规模文档集或语料库中潜在的主题信息。传统的LDA主题模型只能对微博评论中隐含的主题进行建模,仅考虑了微博评论表面语义信息之间的关系,在情感分析方面能力欠佳。

文献[4]在LDA中加入情感层与微博用户关系参……

登录APP查看全文