TextRNN

作者: 骑鲸公子_ | 来源:发表于2018-04-23 09:21 被阅读0次

论文:Recurrent Neural Network for TextClassification with Multi-Task Learning

1 Introduction

DNN缺点:usually need a large-scale corpus due to the large number of parameters,it is hard to train a network that generalizes well with limited data

The first model uses just one shared layer for all the tasks. 

The second model uses different layers for different tasks, but each layer can read information from other layers.

The third model not only assigns one specific layer for each task, but also builds a shared layer for all the tasks.


2 Recurrent Neural Network for Specific-Task Text Classification

2.1 Recurrent Neural Network

缺陷:梯度消失

RNN The activation of the hidden state ht

LSTM :learning long-term dependencies

LSTM The LSTM transition equations




论文:A Bi-LSTM-RNNModel for Relation Classification Using Low-Cost Sequence Features

1. Introduction

①performs bi-directional recurrent computation along all the tokens of the sentences which the relation spans. 

②the sequence of token representations, which are generated in the previous step, is divided into five parts according to the order that tokens occur in these sentences,picture1

③standard pooling functions are applied over the token representations of each part and we obtain five representations corresponding to the five parts.

④they are concatenated and fed into a softmaxlayer for relation classification

picture1

LSTMs are used to attenuate the gradientvanishing problem when two target entities aredistant in text.


2. Related Work

3. Our Bi-LSTM-RNN Model

3.1. Long Short Term Memory (LSTM)

equation1

3.2. Bi-LSTM-RNN

Bi-LSTM-RNN

补充:

RNN和LSTM

RNN Tensorflow中的实现

用TensorFlow构建RNN

相关文章

  • TextRNN

    论文:Recurrent Neural Network for TextClassification with M...

  • TextRNN

    本文为转载,原文链接: https://wmathor.com/index.php/archives/1446/[...

  • 五、深度学习文本分类textRNN

    原理讲解 TextRNN相关论文:Recurrent Neural Network for Text Classi...

  • 文本分类总结

    一、TextCNN→TextRNN→TextBiRNN→TextRCNN→Text-ATT-BI-RNN→HAN ...

  • TextRNN学习之路

    以下为个人学习TextRNN的学习历程(仅作为本人学习使用,如有侵权请私信) 未学习前的知识储备 传统机器学习的算...

  • 六、TextBiRNN

    原理讲解 TextBiRNN是基于TextRNN的改进版本,将网络结构中的RNN层改成双向(Biderection...

  • TextRNN用于文本分类

    1.单向RNN结构 上述公式中,权重矩阵U、V、W共享 2.双向RNN(Bidirection-RNN)结构 双向...

  • nlp入门笔记——Task 5 word2vec相关知识

    学习目标 学习word2vec的使用和基础原理 学习使用TextCNN、TextRNN进行文本表示 学习使用HAN...

网友评论

      本文标题:TextRNN

      本文链接:https://www.haomeiwen.com/subject/usrkhftx.html