推荐学习书目
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
naldo0193
V2EX  ›  Python

请问有快速和准确的汇总长短文相似文章的方法吗?

  •  
  •   naldo0193 · Jun 24, 2020 · 2687 views
    This topic created in 2173 days ago, the information mentioned may be changed or developed.

    需要汇总改动少于 30%的文章(或者说相似到达 70%不包括标点符号),请问有这样的方法吗?

    5 replies    2020-06-25 10:31:34 +08:00
    ygtq
        1
    ygtq  
       Jun 24, 2020
    google 一些相似度匹配算法,有挺多的。 我用过一个 simhash
    fanfou
        2
    fanfou  
       Jun 24, 2020
    是的,有一些文本相似度匹配的库。
    bigboNed3
        3
    bigboNed3  
       Jun 24, 2020
    这个感觉最长公共子序列可以啊
    return len(longest_common_subsequence(s)) > 0.7 * len(s)
    joApioVVx4M4X6Rf
        4
    joApioVVx4M4X6Rf  
       Jun 24, 2020
    结巴分词,集合交集,取百分数
    lithbitren
        5
    lithbitren  
       Jun 25, 2020
    最长公共子序列要用的话,得回溯除出所有连续的公共序列,过滤掉重复几个字或十几个字的,然后再加总求百分比,直接求只能求出最长的那个长度,多个短公共序列是不能直接得出的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2928 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 13:41 · PVG 21:41 · LAX 06:41 · JFK 09:41
    ♥ Do have faith in what you're doing.