Text classification based on LSTM and attention

Xuemei Bai
{"title":"Text classification based on LSTM and attention","authors":"Xuemei Bai","doi":"10.1109/ICDIM.2018.8847061","DOIUrl":null,"url":null,"abstract":"An improved text classification method combining long short-term memory (LSTM) units and attention mechanism is proposed in this paper. First, the preliminary features are extracted from the convolution layer. Then, LSTM stores context history information with three gate structures - input gates, forget gates, and output gates. Attention mechanism generates semantic code containing the attention probability distribution and highlights the effect of input on the output. This mixed system model optimizes traditional models to represent features more accurately. The simulation shows that the proposed algorithm in this paper outperformed the RNN algorithm and the CNN algorithm which have long-distance dependency problem. Besides, the results also prove that the proposed algorithm works better than the LSTM algorithm by highlighting the impact of critical input in LSTM on the model.","PeriodicalId":120884,"journal":{"name":"2018 Thirteenth International Conference on Digital Information Management (ICDIM)","volume":"3 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"26","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 Thirteenth International Conference on Digital Information Management (ICDIM)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICDIM.2018.8847061","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 26

Abstract

An improved text classification method combining long short-term memory (LSTM) units and attention mechanism is proposed in this paper. First, the preliminary features are extracted from the convolution layer. Then, LSTM stores context history information with three gate structures - input gates, forget gates, and output gates. Attention mechanism generates semantic code containing the attention probability distribution and highlights the effect of input on the output. This mixed system model optimizes traditional models to represent features more accurately. The simulation shows that the proposed algorithm in this paper outperformed the RNN algorithm and the CNN algorithm which have long-distance dependency problem. Besides, the results also prove that the proposed algorithm works better than the LSTM algorithm by highlighting the impact of critical input in LSTM on the model.
基于LSTM和关注的文本分类
提出了一种结合长短期记忆单元和注意机制的改进文本分类方法。首先,从卷积层提取初步特征;然后,LSTM用三个门结构存储上下文历史信息——输入门、遗忘门和输出门。注意机制生成包含注意概率分布的语义代码,突出输入对输出的影响。该混合系统模型对传统模型进行了优化,能够更准确地表示特征。仿真结果表明,本文提出的算法优于存在远程依赖问题的RNN算法和CNN算法。此外,通过突出LSTM中关键输入对模型的影响,结果也证明了该算法优于LSTM算法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信