[免费]TextCNN Pytorch实现 中文文本分类 情感分析

项目结构:

TextCNN Pytorch实现 中文文本分类

论文

Convolutional Neural Networks for Sentence Classification

参考

  • https://github.com/yoonkim/CNN_sentence
  • https://github.com/dennybritz/cnn-text-classification-tf
  • https://github.com/Shawn1993/cnn-text-classification-pytorch

依赖项

  • python3.5
  • pytorch==1.0.0
  • torchtext==0.3.1
  • jieba==0.39

词向量

https://github.com/Embedding/Chinese-Word-Vectors
(这里用的是Zhihu_QA 知乎问答训练出来的word Word2vec)

用法

训练

准确率

  • CNN-rand 随机初始化Embedding
  • CNN-static 使用预训练的静态词向量
  • CNN-non-static 微调预训练的词向量
  • CNN-multichannel 微调加静态

下载地址:微信扫一扫,关注下方【毕业设计组织】公众号,请回复数字”6671“获取下载链接