我正在使用NLTK的nltk.tag.stanford,它需要调用java可执行文件.
我将JAVAHOME设置为安装了我的jdk的C:\ Program Files\Java\jdk1.6.0_25,但是在运行程序时出现错误
"NLTK was unable to find the java executable! Use the config_java() or set the JAVAHOME variable"
Run Code Online (Sandbox Code Playgroud)
然后我花了3个小时来调试它并尝试了
config_java("C:/Program Files/Java/jdk1.6.0_25/")
config_java("C:/Program Files/Java/jdk1.6.0_25/bin/")
and those without the ending "/".
Run Code Online (Sandbox Code Playgroud)
然而,nltk仍然无法找到它.
任何人都知道出了什么问题?谢谢你的loooot!