Git Product home page Git Product logo

text_cnn_classify_paddle's Introduction

text_cnn_classify_paddle

基于PaddlePaddletext_cnn文本分类
一、更新位置
1 所有文件的路径/home/aistudio/data 改成./data/
2 train.py 64行增加paddle.enable_static()#####add by mart 21-3-19
3 predict.py 8行增加paddle.enable_static()#####add by mart 21-3-19
4 predict.py 35行改成data.append(np.int64(dict_txt[s]))#change by mart 21-3-19

二、
data.py 生产字典构造数据集
train.py 训练模型
predict.py 基于训练好的模型进行预测
data 存放数据集的文件夹
work 存放模型的文件夹

三、
运行predict.py结果示例
预测结果标签为:0, 名称为:文化, 概率为:0.906921
预测结果标签为:8, 名称为:国际, 概率为:0.488133

text_cnn_classify_paddle's People

Contributors

ai-mart avatar

Stargazers

Rita XU 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.