indiejoseph / doc-han-att

Hierarchical Attention Networks for Chinese Sentiment Classification
207 stars 55 forks source link
attention chinese deep-learning document nlp rnn tensorflow

Hierarchical Attention Networks for Chinese Sentiment Classification

This is HAN version of sentiment classification, with pre-trained character-level embedding, and used RAN instead of GRU.

Dataset

Downloaded from internet but i forget where is it ;p, the original dataset is in Simplified Chinese, i used opencc translated it into Traditional Chinese. After 100 epochs, the valid accuracy achieved 96.31%

Requirement

Tensorflow r1.1+

Attention Heatmap

attention heatmap