JiyaoWei / bilstm_mpoa

Sentiment analysis has been a popular field in natural language processing. Sentiments can be expressed explicitly or implicitly. Most current studies on sentiment analysis focus on the identification of explicit sentiments. However, implicit sentiment analysis has become one of the most difficult tasks in sentiment analysis due to the absence of explicit sentiment words. In this article, we propose a BiLSTM model with multi-polarity orthogonal attention for implicit sentiment analysis. Compared to the traditional single attention model, the difference between the words and the sentiment orientation can be identified by using multi-polarity attention. This difference can be regarded as a significant feature for implicit sen timent analysis. Moreover, an orthogonal restriction mechanism is adopted to ensure that the discrim inatory performance can be maintained during optimization. The experimental results on the SMP2019 implicit sentiment analysis dataset and two explicit sentiment analysis datasets demonstrate that our model more accurately captures the characteristic differences among sentiment polarities.
14 stars 1 forks source link

last question. #4

Open StudentWorker opened 2 years ago

StudentWorker commented 2 years ago

I would like to ask how query_matrix is generated and how to train without elmo Your training code always includes elmo yes, can it be left blank? predicted_idsbatch, , orthogonal_loss = model(input_ids_batch, length_ids_batch, elmo_embedding)

JiyaoWei commented 2 years ago

你好,你可以将elmo初始化为None进行训练即可