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
python30
V2EX  ›  Python

Python +django 开发网站。怎么根据内容或标题自动生成 tag 标签? 跟 V2EX 生成标签的方式差不多,不知道有什么思路没有?

  •  
  •   python30 · 2019-04-10 00:07:52 +08:00 · 2446 次点击
    这是一个创建于 1836 天前的主题,其中的信息可能已经有所发展或是发生改变。
    python +django 开发网站。怎么根据内容或标题自动生成 tag 标签? 跟 V2EX 差不多,不知道有什么思路没有?

    比如内容里有,某个省 市 县 镇 或者 某个名词
    会自动生成一个相关的标签?

    不知道有什么思路没有?
    4 条回复    2019-04-10 09:54:54 +08:00
    HypoChen
        1
    HypoChen  
       2019-04-10 00:11:47 +08:00
    结巴分词
    scriptB0y
        2
    scriptB0y  
       2019-04-10 00:14:33 +08:00 via iPhone
    v2ex,是用的 bosondata 的,我帮你艾特下
    @bosondata @alpha7happy @messense
    cyril4free
        3
    cyril4free  
       2019-04-10 09:28:48 +08:00
    跟语言没啥关系,就是找内容里的关键字,可能有个词库,里边放的是各种关键词,分词之后匹配词库
    shawndev
        4
    shawndev  
       2019-04-10 09:54:54 +08:00
    结巴分词,和现有的 tag 取交集。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4735 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 09:57 · PVG 17:57 · LAX 02:57 · JFK 05:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.