Coder Social home page Coder Social logo

chinesetextclassifier's Introduction

ChineseTextClassifier

中文商品评论短文本分类器,可用于情感分析,各模型的准确率均达到90%以上

运行环境:

tensorflow2.0

python3

数据集:

京东商城评论文本,10万条,标注为0的是差评,标注为1的是好评。

路径:data/goods_zh.txt

已实现的模型:

  1. Transfromer
  2. word2vec+textCNN
  3. fastext
  4. word2vec+LSTM/GRU
  5. word2vec+LSTM/GRU+Attention
  6. word2vec+Bi_LSTM+Attention

后期会增加glove/GPT/bert/ERNIE等方法对模型的改进

更多机器学习/深度学习项目知识,欢迎关注微信公众号ID:datanlp

chinesetextclassifier's People

Contributors

ami66 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chinesetextclassifier's Issues

文件缺失

报错:OSError: Unable to create file (unable to open file: name = './model/best_model\model_01-0.93.hdf5', errno = 2, error message = 'No such file or directory', flags = 13, o_flags = 302)
发现是源文件中./textCNN/model/下的文件缺失了,可以麻烦大佬再传一份吗TUT

代码错误求问

ValueError: Error when checking target: expected dense_4 to have shape (2,) but got array with shape (4,),请问您的代码不会报错吗?为什么我的是这样的

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.