V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2015-04-05 11:24:10 +08:00 · 3310 次点击
    这是一个创建于 3315 天前的主题,其中的信息可能已经有所发展或是发生改变。
    本人编程小白…
    希望实现的功能是:有GUI,将PDF内所有单词与词典对比,如不在词典中,则翻译,并导出成生词表添加在文末新页。
    有类似的项目吗?
    有哪些库/API可以帮助完成这些功能呢?
    3 条回复    2015-04-05 17:04:56 +08:00
    loading
        1
    loading  
       2015-04-05 11:52:18 +08:00 via Android
    提取文本,按空格和常用符号将词取出(slip)为字符串组,从组中取一个,全换成小写,与你的字典(已学单词?)匹配,然后不在就存到另一个数组。
    skadiwea
        2
    skadiwea  
       2015-04-05 12:11:39 +08:00   ❤️ 1
    用Python写过一个类似的,从文本里提取单词,然后排序比对字典,用扇贝的API查询,生成一个单词表。半成品,写得很渣,欢迎来完善。

    https://github.com/cdwind/xwords
    josephshen
        3
    josephshen  
       2015-04-05 17:04:56 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2262 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 169ms · UTC 03:07 · PVG 11:07 · LAX 20:07 · JFK 23:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.