计算机与数字工程2025,Vol.53Issue(3):637-642,707,7.DOI:10.3969/j.issn.1672-9722.2025.03.005
基于有效距离和注意力机制的方面级情感分析
Aspect-level Sentiment Analysis Based on Effective Distance and Attention Mechanism
刘跃 1张琨 1朱浩华 1江浩俊 1方自正1
作者信息
摘要
Abstract
At present,location-based aspect sentiment analysis mainly studies aspect words and other words based on seman-tic position,but this method is prone to unreasonable word weight allocation,which reduces the accuracy of sentiment analysis.Therefore,a new emotion analysis model,ED-BERT-BIGRU(EDBB),is proposed by studying the grammatical aspects of sen-tences.The model firstly inputs three kinds of texts into BERT model to obtain corresponding word vectors,and uses bidirectional GRU to capture context representation.Then it uses rely on syntax tree in each word and the word of the relative position,combining with the calculating CED algorithm to obtain the effective distance each word and the word of the effective distance,at the same time,combined with local text weight LDAW dynamic assignment algorithm and the attention mechanism for each word gives differ-ent weights,so as to improve the accuracy of sentiment analysis.Compared with other deep neural network models,this model achieves higher Accuracy and F1 values on the Restaurant and Laptop public data sets of Semeval-2014,and the training results of the model are better.关键词
相对位置/有效距离/CED算法/LDAW算法Key words
relative position/effective distance/CED algorithm/LDAW algorithm分类
信息技术与安全科学引用本文复制引用
刘跃,张琨,朱浩华,江浩俊,方自正..基于有效距离和注意力机制的方面级情感分析[J].计算机与数字工程,2025,53(3):637-642,707,7.