School of Information Technology, Hebei University of Economics and Business, Shijiazhuang, Hebei 050061, China.
School of Information Engineering, Shijiazhuang Vocational College of Finance & Economics, Shijiazhuang, Hebei, China.
Comput Intell Neurosci. 2023 May 29;2023:6618452. doi: 10.1155/2023/6618452. eCollection 2023.
Dialogue system is an important application of natural language processing in human-computer interaction. Emotion analysis of dialogue aims to classify the emotion of each utterance in dialogue, which is crucially important to dialogue system. In dialogue system, emotion analysis is helpful to the semantic understanding and response generation and is great significance to the practical application of customer service quality inspection, intelligent customer service system, chatbots, and so on. However, it is challenging to solve the problems of short text, synonyms, neologisms, and reversed word order for emotion analysis in dialogue. In this paper, we analyze that the feature modeling of different dimensions of dialogue utterances is helpful to achieve more accurate sentiment analysis. Based on this, we propose the BERT (bidirectional encoder representation from transformers) model that is used to generate word-level and sentence-level vectors, and then, word-level vectors are combined with BiLSTM (bidirectional long short-term memory) that can better capture bidirectional semantic dependencies, and word-level and sentence-level vectors are connected and inputted to linear layer to determine emotions in dialogue. The experimental results on two real dialogue datasets show that the proposed method significantly outperforms the baselines.
对话系统是自然语言处理在人机交互中的一个重要应用。对话中的情感分析旨在对对话中的每个话语进行情感分类,这对对话系统至关重要。在对话系统中,情感分析有助于语义理解和响应生成,对客服质量检查、智能客服系统、聊天机器人等实际应用具有重要意义。然而,对话中情感分析存在短文本、同义词、新词、词序颠倒等问题,难以解决。在本文中,我们分析了不同维度的对话话语的特征建模有助于实现更准确的情感分析。在此基础上,我们提出了 BERT(来自 Transformer 的双向编码器表示)模型,用于生成词级和句级向量,然后,将词级向量与 BiLSTM(双向长短时记忆)相结合,以更好地捕捉双向语义依赖关系,将词级和句级向量连接并输入到线性层中,以确定对话中的情感。在两个真实的对话数据集上的实验结果表明,所提出的方法显著优于基线。