Research Article

Interactive Dual Attention Network for Text Sentiment Classification

Algorithm 1

Sentimental tendency information extraction.
Input: The dataset . The set , , and .
Output: Sentimental tendency information set .
(1);
(2)For each text in do
(3);
(4)For each word in do
(5)  obtain element using equation (1);
(6)  Ifthen
(7)   add to ;
(8)  End If
(9)End For
(10) add to ;
(11)End For
(12)Return