LSTM Recurrent Neural Networks for Short Text and Sentiment Classication文章阅读笔记

一、文本预处理

1、删除所有符号,例如:%

2、所有数字用例如'SPEC——NUM'来代替

3、为数据集创建词典


二、词向量化

采用one-hot来表示单词


三、词典大小

不需太大,原文中的词典大小是9000


四、数据集样本数不平衡

原文中Bad和Neutal类的样本数远远少于Good分类,因此将Bad和Neutral的样本数扩大了一倍

四、LSTM、BLSTM、GRU对比

 it has been shown in the experiments that GRU is well suited in simple cases where

we want to obtain fast results. Advantages of GRU are faster training as they

require less number of epochs to obtain the nal result. Results achived by LSTM

and BLSTM networks are more precise, but it is necessary to spend more time

for the training process. GRU does not work with very short phrases such as in

the case of third dataset. 

即GRU训练时间更短,但是只适合简单情况下的,不适合非常短的文本

LSTM、BLSTM更精确,但是训练时间更长。





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值