如何在 python 中导入和使用 WordNet 3.0?
我已经下载了最新版本的WordNet 3.0。我无法找到如何在 python 中使用它的正确文档。
NLTK 有 wordnet 3.0 吗?
我已经在 nltk 中使用了旧版本的 wordnet。
请帮我。
I have downloaded the latest version of WordNet 3.0. I am not able to find a proper documentation of how to use it in python.
Does NLTK have wordnet 3.0 ?
I have already used an older version of wordnet in nltk.
Please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不行,NLTK好像只支持3.0。
如果我这样做,我会选择通过 Jython 使用 3.0 Java API 或生成
wn
使用 subprocess 模块执行。如果我需要与广泛的现有代码库集成,我会倾向于后一种方法。不幸的是,这意味着所做的工作在 NLTK 中的未来 3.0 实现中将变得过时,但好吧 - 这就是生活。
No, it seems that NLTK only supports 3.0.
If I were doing this, I'd choose between using the 3.0 Java API through Jython or spawn the
wn
executable using the subprocess module.I'd lean towards the latter method in case I needed to integrate with an extensive existing codebase. Unfortunately this means doing work that a future 3.0 implementation in NLTK will make obsolete, but well - that's life.