Giter Site home page Giter Site logo

porn_fiction_classify's Introduction

色情文章检测

简介

利用 文本卷积神经网络 (TextCNN)训练的文章分类模型,检测是否为色情文章。

Author:yudake
date:2018/2/22

项目详细解析可以参考我的这篇博文

考虑到社会主义核心价值观,没有上传训练集。不过data_processed中有处理过的数据集和分词集,可以直接使用。
或者可以自己寻找训练数据,根据自己的训练数据扩充分词集,然后利用本模型作迁移学习。

开发环境:

  • python3.x;
  • tensorflow1.2;
  • jieba;
  • 其他相关类库,程序内会有提及。

目标:实现色情文章检测。

模型效果:最终准确率在98%以上。

模型

系统模型

  • 输入:文章经过处理后的句子矩阵;
  • 模型:文本卷积神经网络;
  • 输出:分类结果。

准确率曲线

准确率

平均准确率在98%。具体内容请看代码与博客。

porn_fiction_classify's People

Contributors

yudake avatar

Watchers

James Cloos 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.