使Python的nltk.wordnet模块可用于Jython [英] Getting Python's nltk.wordnet module working for Jython
问题描述
我已经阅读了有关Jython的常见问题解答和这篇文章 Jython和python模块,但是我不确定如何确定模块是纯粹用C还是Python编写的.
I've read through the FAQ for Jython and this post Jython and python modules but am not sure how I can determine if a module is written purely in C or Python.
此处提到了我面临的问题 http://old.nabble.com/using-NLTK-in-Jython-td28520926.html
The problem I'm facing is mentioned here http://old.nabble.com/using-NLTK-in-Jython-td28520926.html
任何这样做的人都能对此有所了解吗?我是Jython的新手.
Can anyone that has done this shed some light on this? I'm new to Jython.
谢谢
推荐答案
您是否按照问题中所述将C:\Python26\Lib\site-packages\nltk
添加到sys.path
?它实际上应该是C:\Python26\Lib\site-packages
,这是包含nltk
的目录.如果您不想添加整个site-packages
,请尝试将nltk
文件夹移动到另一个文件夹.
Did you add C:\Python26\Lib\site-packages\nltk
to sys.path
as stated in your question? It should really be C:\Python26\Lib\site-packages
, which is the directory containing nltk
. If you don't want to add the entire site-packages
, try moving the nltk
folder to another folder.
这篇关于使Python的nltk.wordnet模块可用于Jython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!