详细信息

基于TF-IDF和多头注意力Transformer模型的文本情感分析    

Text Emotion Analysis Based on TF-IDF and Multihead Attention Transformer Model

文献类型:期刊文献

中文题名:基于TF-IDF和多头注意力Transformer模型的文本情感分析

英文题名:Text Emotion Analysis Based on TF-IDF and Multihead Attention Transformer Model

作者:高佳希[1];黄海燕[1]

机构:[1]华东理工大学信息科学与工程学院,上海200237

年份:2024

卷号:50

期号:1

起止页码:129

中文期刊名:华东理工大学学报(自然科学版)

外文期刊名:Journal of East China University of Science and Technology

收录:;Scopus;北大核心:【北大核心2023】;CSCD:【CSCD_E2023_2024】;

语种:中文

中文关键词:文本情感分析;自然语言处理;多头注意力机制;TF-IDF算法;Transformer模型

外文关键词:text emotion analysis;natural language processing;multihead attention mechanism;TF-IDF algorithm;Transformer model

摘要:文本情感分析旨在对带有情感色彩的主观性文本进行分析、处理、归纳和推理,是自然语言处理中一项重要任务。针对现有的计算方法不能充分处理复杂度和混淆度较高的文本数据集的问题,提出了一种基于TF-IDF(Term Frequency-Inverse Document Frequency)和多头注意力Transformer模型的文本情感分析模型。在文本预处理阶段,利用TF-IDF算法对影响文本情感倾向较大的词语进行初步筛选,舍去常见的停用词及其他文本所属邻域对文本情感倾向影响较小的专有名词。然后,利用多头注意力Transformer模型编码器进行特征提取,抓取文本内部重要的语义信息,提高模型对语义的分析和泛化能力。该模型在多领域、多类型评论语料库数据集上取得了98.17%的准确率。
Text emotion analysis is an important task in natural language processing.Aiming at the problem that the existing calculation methods can not fully deal with the text datasets with high complexity and confusion,a text emotion analysis model based on TF-IDF(Term Frequency-Inverse Document Frequency)and multihead attention Transformer model is proposed.In the text pre-processing stage,TF-IDF algorithm is used to preliminarily screen words that have a greater impact on the text's emotional orientation,leaving out common stop words and proper nouns that have less impact on the text's emotional orientation from the neighborhood of other texts.After that,the multihead attention Transformer model encoder is used for feature extraction to capture the important semantic information inside the text,which improves the model's semantic analysis and generalization ability.The experimental results show that this model achieves 98.17%accuracy in the multi-field and multi-type comment corpus dataset,which is significantly improved compared with other groups of comparative models.

参考文献:

正在载入数据...

版权所有©华东理工大学 重庆维普资讯有限公司 渝B2-20050021-7 
渝公网安备 50019002500408号 违法和不良信息举报中心