arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.09896cs.CL
收藏

TWSSenti: 一种基于Transformer模型的面向主题的混合情感分析框架

TWSSenti: A Novel Hybrid Framework for Topic-Wise Sentiment Analysis on Social Media Using Transformer Models

Jouf University(朱夫大学);Auburn University(阿伯茨伦斯大学)

Aish Albladi, Md Kaosar Uddin, Minarul Islam, Cheryl Seals

AI总结:

TWSSenti提出一种基于Transformer模型的混合框架,通过结合BERT、GPT-2、RoBERTa、XLNet和DistilBERT提升社交媒体上主题情感分析的准确性和鲁棒性。

摘要:

情感分析是自然语言处理(NLP)中的关键任务,能够从文本数据中提取有意义的洞察,尤其是在动态平台如Twitter和IMDB上。本研究探索了一种混合框架,结合基于Transformer的模型,特别是BERT、GPT-2、RoBERTa、XLNet和DistilBERT,以提高情感分类的准确性和鲁棒性。该框架通过利用这些模型的独特优势来解决噪声数据、上下文模糊性和跨多样化数据集泛化等挑战。BERT捕捉双向上下文,GPT-2增强生成能力,RoBERTa通过更大的语料库和动态掩码优化上下文理解,XLNet通过排列学习建模依赖关系,DistilBERT在减少计算开销的同时保持高精度。我们通过术语频率逆文档频率(TF-IDF)和词袋(BoW)进行文本清理、分词和特征提取,确保为模型提供高质量的输入数据。混合方法在基准数据集Sentiment140和IMDB上进行了评估,分别实现了94%和95%的准确率,优于单独模型。结果验证了在类似集合设置中结合多个Transformer模型以解决单个架构限制的有效性。本研究突显了其在实际任务如社交媒体监控、客户情感分析和公众意见跟踪中的适用性,为未来混合NLP框架的发展提供了路径。

英文摘要:

Sentiment analysis is a crucial task in natural language processing (NLP) that enables the extraction of meaningful insights from textual data, particularly from dynamic platforms like Twitter and IMDB. This study explores a hybrid framework combining transformer-based models, specifically BERT, GPT-2, RoBERTa, XLNet, and DistilBERT, to improve sentiment classification accuracy and robustness. The framework addresses challenges such as noisy data, contextual ambiguity, and generalization across diverse datasets by leveraging the unique strengths of these models. BERT captures bidirectional context, GPT-2 enhances generative capabilities, RoBERTa optimizes contextual understanding with larger corpora and dynamic masking, XLNet models dependency through permutation-based learning, and DistilBERT offers efficiency with reduced computational overhead while maintaining high accuracy. We demonstrate text cleaning, tokenization, and feature extraction using Term Frequency Inverse Document Frequency (TF-IDF) and Bag of Words (BoW), ensure high-quality input data for the models. The hybrid approach was evaluated on benchmark datasets Sentiment140 and IMDB, achieving superior accuracy rates of 94\% and 95\%, respectively, outperforming standalone models. The results validate the effectiveness of combining multiple transformer models in ensemble-like setups to address the limitations of individual architectures. This research highlights its applicability to real-world tasks such as social media monitoring, customer sentiment analysis, and public opinion tracking which offers a pathway for future advancements in hybrid NLP frameworks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑