GithubHelp home page GithubHelp logo

textcnn's Introduction

TextCNN

简介

TextCNN网络的实现,并且在MR数据集中实现训练与测试

论文地址为:

Convolutional Neural Networks for Sentence Classification

环境

  • Pytorch = 1.5.0
  • GTX1080

代码说明

  1. MR数据集下载地址:https://www.cs.cornell.edu/people/pabo/movie-review-data/
  2. Word2vec下载地址: https://drive.google.com/file/d/0B7XkCwpI5KDYNlNUTTlSS21pQmM/edit 下载后放入根目录下的models文件夹中
  3. 正则化方法:根据论文中的方法1)Dropout.2)L2正则
  4. 采样10折交叉验证,提升模型的准确率
  5. 可根据需要在utils中设置earlystopping
  6. 数据集划分: 10%的Test数据集,90%的train,val数据集
  7. 模型的详细参数均可以在config类中设置

后续工作:

1)融合到大规模预训练模型输出端,实现文本分类。

2)。。。

textcnn's People

Contributors

qq751220449 avatar

Stargazers

Henry LOL avatar superwbb007 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.