Coder Social home page Coder Social logo

sensitivepy's Introduction

SensitivePy

使用python开发的极简的敏感词过滤系统

API LIST

1.检测敏感词
URL http://your_domain/check
参数名 请求类型 可选 长度
words POST false 65535
返回格式:json
{"count":1,"data":[[0,6,"\u6bcd\u5b5d"]]}
2.过滤敏感词
URL http://your_domain/replace
参数名 请求类型 可选 长度
words POST false 65535
返回格式:text
这是已经过滤的文本,还好

words.txt为敏感词文件

安装说明

先通过pip或easy_install安装bottle框架
再修改localbottle里的端口设置和域名设置,再使用python 启动即可
*通过云环境的需要修改一下配置,保留wsgi.py,具体参考云环境的说明

更新说明

2014/10/7
1.完成核心检测和过滤API
2.集成bottle框架
3.检测使用DFA过滤算法


caroltc([email protected])

sensitivepy's People

Contributors

caroltc avatar

Watchers

James Cloos avatar 王阿觉 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.