用LSTM分析微博评论情感,准确率超98%
Three-Class Text Sentiment Analysis Based on LSTM
- 基于LSTM捕捉文本长距离依赖,提升情感识别能力
- 在微博数据上达到98.31%准确率和98.28%F1值
- 适合需要高精度情感分析的社交舆情场景
情感分析是自然语言处理中的关键任务,广泛应用于舆论监控、市场研究等领域。本文提出一种基于长短期记忆网络(LSTM)的微博评论三分类情感分析方法,用于区分正面、中性与负面情感。LSTM能有效捕捉文本中的长距离依赖关系,在性能上显著优于传统机器学习方法。通过对微博评论进行预处理与特征提取,所提模型实现了精准的情感预测。实验结果表明,该模型在测试集上取得了98.31%的准确率和98.28%的F1分数,明显优于传统模型及其他深度学习方法。这验证了LSTM在捕捉文本细微情感信息方面的有效性,从而提升了分类准确率。尽管如此,该模型仍面临计算复杂度高、长文本处理慢等挑战,且对讽刺、幽默等复杂情感表达识别困难。未来可探索结合预训练模型或改进特征工程以进一步提升精度与实用性。总体而言,本研究为微博评论情感分析提供了一种高效解决方案。
原文摘要 · Abstract (English)
Sentiment analysis is a crucial task in natural language processing (NLP) with applications in public opinion monitoring, market research, and beyond. This paper introduces a three-class sentiment classification method for Weibo comments using Long Short-Term Memory (LSTM) networks to discern positive, neutral, and negative sentiments. LSTM, as a deep learning model, excels at capturing long-distance dependencies in text data, providing significant advantages over traditional machine learning approaches. Through preprocessing and feature extraction from Weibo comment texts, our LSTM model achieves precise sentiment prediction. Experimental results demonstrate superior performance, achieving an accuracy of 98.31% and an F1 score of 98.28%, notably outperforming conventional models and other deep learning methods. This underscores the effectiveness of LSTM in capturing nuanced sentiment information within text, thereby enhancing classification accuracy. Despite its strengths, the LSTM model faces challenges such as high computational complexity and slower processing times for lengthy texts. Moreover, complex emotional expressions like sarcasm and humor pose additional difficulties. Future work could explore combining pre-trained models or advancing feature engineering techniques to further improve both accuracy and practicality. Overall, this study provides an effective solution for sentiment analysis on Weibo comments.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。