Skip to content

EthanD4869/wc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wc

Sensitive word detection - 敏感词检测
附有词库大约5W

requirements

flask
jieba

usage

./build.sh
./run.sh
python3 test.py

默认跑起来服务位于http://127.0.0.1:5002/api/check
传参: http://127.0.0.1:5002/api/check?input=content

返回示例

{
  "divide" : "哈哈",
  "pass" : true,
  "time" : 0.00537023871
}

自定义词库

blacklist.txt(黑名单):添加违禁词汇
whitelist.txt(白名单):添加解禁词汇

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published