After the exercise of building convolutional, RNN, sentence level attention RNN, finally I have come to implement Hierarchical Attention Networks for Document Classification. I’m very thankful to Keras, which make building this project painless. The custom is very powerful and flexible to build your custom logic to into the existing work. Functional API makes the Hierarchical Input s very easy to implement.
Please note that all exercises are d on Kaggle’s IMDB dataset.
文件分类的分层注意网络
在构建卷积运算后,RNN,句级关注的 RNN,最后我来实现文档分类的分层注意网络。 我非常感谢Keras,这使得这个项目无痛。 自定义层是非常强大和灵活的,以构建您的自定义逻辑嵌入到现有的框架工作。 功能API使层次输入层很容易实现。
论文:https://www.cs.cmu.edu/~diyiy/docs/naacl16.pdf
项目:https://github.com/richliao/textClassifier
项目:https://github.com/ilivans/tf-rnn-attention
更多 Tensorflow 教程:http://www.tensorflownews.com
继续阅读与本文标签相同的文章
-
25个深度学习相关公开数据集
2026-05-26栏目: 教程
-
详解机器学习中的熵、条件熵、相对熵、交叉熵
2026-05-26栏目: 教程
-
使用Keras进行深度学习:(三)使用text-CNN处理自然语言(上)
2026-05-26栏目: 教程
-
粒子群优化算法(PSO)之基于离散化的特征选择(FS)(一)
2026-05-26栏目: 教程
-
DNN模型训练词向量原理
2026-05-26栏目: 教程
