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

求用 Python 做一个从 PDF 提取生词并翻译的工具的相关思路

  •  
  •   bill9109 · Apr 5, 2015 · 4809 views
    This topic created in 4242 days ago, the information mentioned may be changed or developed.
    本人编程小白…
    希望实现的功能是:有GUI,将PDF内所有单词与词典对比,如不在词典中,则翻译,并导出成生词表添加在文末新页。
    有类似的项目吗?
    有哪些库/API可以帮助完成这些功能呢?
    3 replies  •  2015-04-05 17:04:56 +08:00
    loading
    loading
    Apr 5, 2015 via Android
    1
    提取文本,按空格和常用符号将词取出(slip)为字符串组,从组中取一个,全换成小写,与你的字典(已学单词?)匹配,然后不在就存到另一个数组。
    skadiwea
    skadiwea
    Apr 5, 2015❤️1
    2
    用Python写过一个类似的,从文本里提取单词,然后排序比对字典,用扇贝的API查询,生成一个单词表。半成品,写得很渣,欢迎来完善。

    https://github.com/cdwind/xwords
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   874 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:14 · PVG 05:14 · LAX 13:14 · JFK 16:14
    ♥ Do have faith in what you're doing.