V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
alexapollo
V2EX  ›  程序员

共享给 V 友:找了一圈 TFIDF,发现没有很好的实现,于是就自己实现了一个~

  •  
  •   alexapollo ·
    geekan · Nov 19, 2015 · 2059 views
    This topic created in 3820 days ago, the information mentioned may be changed or developed.

    运行前:
    pip install psu textblob

    当前的默认行为:
    扫描同文件夹下所有的以 txt 为结尾的文件,并且给出每篇文档的 TF (使用 textblob 分词)

    快来试试,来提下 bug 什么的楼主来改进~

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2665 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:04 · PVG 12:04 · LAX 21:04 · JFK 00:04
    ♥ Do have faith in what you're doing.