TensorFlow implementing Seq2seq Sentiment analysis
<p>I'm currently playing with Tensorflow Seq2seq model, trying to implement sentiment analysis. My idea is to feed the encoder with IMDB comment, the decoder with [Pad] or [Go] and the target with [neg]/[pos]. Most of my code is quite similar with the example of seq2seq translation. But the result I get is quite strange. For each batch, the results are either all [neg] or all [pos].</p>
<blockquote>
<p>&quot;encoder input : I was hooked almost immediately.[pad][pad][pad]&quot;</p>
<p>&quot;decoder input : [pad]&quot;</p>
<p>&quot;target : [pos]&quot;</p>
</blockquote>
<p>Since this result is very particular, I was wondering if anyone knows what would lead to this kind of thing?</p>