impl. TernarySentimentRNN