← 开源
ilivans

tf-rnn-attention

Tensorflow implementation of attention mechanism for text classification tasks.

Model DevelopmentArchitecturePython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
744
Star
288
Fork
+0
本周
3
贡献者
创建于 2017-02-27 · 更新于 2026-07-28 · 今日第 14182 名
主要开发者
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

排名相邻
同类项目