推荐学习书目
› 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 · 3143 views
    This topic created in 2324 days ago, the information mentioned may be changed or developed.

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

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