The forward and backward LSTMs are respectively formulated as follows: where g (LST M ) is the same as that in Eq (1).
t+1 is the sentiment distuibution after transformation, T x j ∈ θ is the transformation matrix for a negation word x j , a parameter to be learned during training.