Hierarchical Attention Networks for Chinese Sentiment Classification
Switch branches/tags
Nothing to show
Clone or download
Latest commit b6e26db Jul 6, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data first commit Jul 4, 2017
.editorconfig first commit Jul 4, 2017
.gitignore Add attention picture Jul 6, 2017
.pylintrc first commit Jul 4, 2017
README.md Update README.md Jul 6, 2017
attention.png Fix typo in picture Jul 6, 2017
data_helpers.py first commit Jul 4, 2017
model.py first commit Jul 4, 2017
ran_cell.py first commit Jul 4, 2017
train.py first commit Jul 4, 2017
visualizer.ipynb Fix typo in picture Jul 6, 2017

README.md

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