文本分类算法TextCNN,TextRNN

1.TextCNN
1.1相关代码下载
https://github.com/dennybritz/cnn-text-classification-tf

https://github.com/gaussic/text-classification-cnn-rnn

1.2 讲解
https://blog.csdn.net/weixin_36604953/article/details/78324834

https://zhuanlan.zhihu.com/p/25928551

https://hunto.github.io/nlp/2018/03/29/TextCNN文本分类详解.html

https://zhuanlan.zhihu.com/p/40276005
在这里插入图片描述
https://www.jianshu.com/p/f69e8a306862

https://blog.csdn.net/u010223750/article/details/51437854
1.3 https://github.com/gaussic/text-classification-cnn-rnn中相关函数说明
(1)learn.preprocessing.VocabularyProcessor
实现的功能就是,根据所有已分词好的文本建立好一个词典,然后找出每个词在词典中对应的索引,不足长度或者不存在的词补0
https://blog.csdn.net/The_lastest/article/details/81771723

(2)kr.preprocessing.sequence.pad_sequences
将多个序列截断或补齐为相同长度。
https://keras.io/zh/preprocessing/sequence/

2.TextRNN
2.1TextRNN讲解
https://zhuanlan.zhihu.com/p/28196873

https://zhuanlan.zhihu.com/p/44424550

2.2RNN讲解
https://cloud.tencent.com/developer/article/1011162

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章