← Open Source
ilivans

tf-rnn-attention

Tensorflow implementation of attention mechanism for text classification tasks.

Model DevelopmentArchitecturePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
744
Stars
288
Forks
+0
This week
3
Contributors
Created 2017-02-27 · Updated 2026-07-28 · #14299 today
Top developers
ilivansnicolay-rHudsonHuang
README

Tensorflow implementation of attention mechanism for text classification tasks.
Inspired by "Hierarchical Attention Networks for Document Classification", Zichao Yang et al. (http://www.aclweb.org/anthology/N16-1174).

Requirements

  • Python >= 2.6
  • Tensorflow >= 1.0
  • Keras (IMDB dataset)
  • tqdm

To view visualization example visit http://htmlpreview.github.io/?https://github.com/ilivans/tf-rnn-attention/blob/master/visualization.html

My bachelor's thesis on sentiment classification of Russian texts using Bi-RNN with attention mechanism: https://github.com/ilivans/attention-sentiment

Nearby in the ranking
Similar items