Tensorflow 基于分层注意网络的文件分类器

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 layer is very powerful and flexible to build your custom logic to embed into the existing frame work. Functional API makes the Hierarchical InputLayers very easy to implement.

Please note that all exercises are based 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

原创文章,作者:fendouai,如若转载,请注明出处:http://panchuang.net/2017/09/20/hierarchical-attention-networks-for-document-classification/

发表评论

电子邮件地址不会被公开。

联系我们

400-800-8888

在线咨询:点击这里给我发消息

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息