Skip to content
Hierarchical Attention Networks for Chinese Sentiment Classification
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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
README.md Update README.md Jul 6, 2017
attention.png Fix typo in picture Jul 6, 2017
data_helpers.py
model.py
ran_cell.py first commit Jul 4, 2017
train.py
visualizer.ipynb

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

You can’t perform that action at this time.