V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
Devin36
V2EX  ›  Python

一个英语单词词频统计的问题,请帮忙看下

  •  
  •   Devin36 · Aug 6, 2018 · 2483 views
    This topic created in 2834 days ago, the information mentioned may be changed or developed.
    我不会编程,但是最近在准备考试,想要统计下这个词频,遇到的问题是:单词的原形和单词的变形怎么统一统计成单词原形,有个哥们在知乎上写了代码,但不懂,运行起来出了问题,代码链接在这里,https://github.com/Enaunimes/freeq,知乎原问题链接在这里,https://www.zhihu.com/question/20632675/answer/100615805,有哪位哥哥帮我看下啊,谢谢了。
    2 replies    2018-08-07 19:24:08 +08:00
    mimzy
        1
    mimzy  
       Aug 6, 2018
    我猜你可以用 NLTK https://www.nltk.org/ 做词形还原,一个简单的例子: https://pythonprogramming.net/lemmatizing-nltk-tutorial/
    Devin36
        2
    Devin36  
    OP
       Aug 7, 2018
    @mimzy 谢谢~,你们英语真好。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   977 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:59 · PVG 02:59 · LAX 11:59 · JFK 14:59
    ♥ Do have faith in what you're doing.