推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wuxqing
V2EX  ›  Python

python开发的敏感词检查代码有吗?

  •  
  •   wuxqing · May 18, 2013 · 8775 views
    This topic created in 4770 days ago, the information mentioned may be changed or developed.
    一个小站,天天随机的被阻止,提示可能保护敏感信息。白天还好一些,到了晚上基本都是阻止的
    想找个敏感词检查代码,把网站的页面查一边
    10 replies    2023-06-27 15:23:51 +08:00
    harmy
        1
    harmy  
       May 18, 2013
    micyng
        2
    micyng  
       May 18, 2013   ❤️ 1
    http://cooder.sinaapp.com/?p=81070 之前看到一兄弟用ac自动机写的,代码其实可以更精简 ;)
    est
        3
    est  
       May 18, 2013
    头痛医头么。。。。
    wuxqing
        4
    wuxqing  
    OP
       May 18, 2013
    @harmy 试了下
    敏感词:开锁

    内容:
    我提供开×锁

    还是过滤不了
    harmy
        5
    harmy  
       May 18, 2013
    @wuxqing 这当然屏蔽不了,关键字中间加干扰字符体现了网民对抗屏蔽的智慧和无奈
    likuku
        6
    likuku  
       May 18, 2013
    这个,因为没有统一的有关部门官方版词库,所以很难搞。大些的网站的确会有时被通知某些关键词需要过滤,但不会给到完整列表,只是有需求了才通知一次。
    troycheng
        7
    troycheng  
       May 20, 2013
    @micyng 那是我在学校的时候写的,没什么经验,请多指教
    troycheng
        8
    troycheng  
       May 20, 2013
    @wuxqing 这个得改造一下算法了,我见过这边有加入距离的方式计算的,搜搜相关的文献?
    wuxqing
        9
    wuxqing  
    OP
       May 20, 2013
    @troycheng 你挺厉害嘛
    lchynn
        10
    lchynn  
       Jun 27, 2023
    加符号屏蔽什么的不算啥, 你看过运营商过滤短信的哪个库,就知道多麻烦了。
    简直就是各种火星文,同音字,同形字,甚至白字错字的大集成。
    太佩服垃圾短信制造者了,把汉语缺字、倒序、错序、白字、仍然能正确读出主要语义的特点发挥了到了极点。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1002 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 67ms · UTC 22:28 · PVG 06:28 · LAX 15:28 · JFK 18:28
    ♥ Do have faith in what you're doing.