V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
YOUMA
V2EX  ›  Python

请问 Python 如何高效的在大量文本里面搜索匹配大量词

  •  
  •   YOUMA · 2020-05-20 14:10:04 +08:00 · 2476 次点击
    这是一个创建于 1442 天前的主题,其中的信息可能已经有所发展或是发生改变。
    6 条回复    2020-06-23 16:00:13 +08:00
    wellsc
        1
    wellsc  
       2020-05-20 14:21:49 +08:00
    这属于每个面经必有的题目了,随便搜一下就有解决方案
    TimePPT
        2
    TimePPT  
       2020-05-20 16:45:17 +08:00 via Android
    字符匹配还是语义匹配。这俩差别可大
    HashV2
        3
    HashV2  
       2020-05-20 17:47:14 +08:00
    有人讲讲吗~~我也想知道
    DeanThompson
        4
    DeanThompson  
       2020-05-21 11:46:11 +08:00
    AC 自动机
    yyb123456789
        5
    yyb123456789  
       2020-05-22 09:10:29 +08:00
    我只想知道,正则是干什么的,不香吗?
    Tachi
        6
    Tachi  
       2020-06-23 16:00:13 +08:00
    AC 自动机 or 先分词再匹配
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   952 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:45 · PVG 02:45 · LAX 11:45 · JFK 14:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.