[NLP的那些坑] HanLP

戏子无情 提交于 2019-11-29 00:34:26

问题1. 

D:\Anaconda3\lib\site-packages\jpype\_core.py:210: UserWarning: 
D:\Java\jdk1.8\jre\bin\server\jvm.dll
-------------------------------------------------------------------------------
Deprecated: convertStrings was not specified when starting the JVM. The default
behavior in JPype will be False starting in JPype 0.8. The recommended setting
for new code is convertStrings=False.  The legacy value of True was assumed for
this session. If you are a user of an application that reported this warning,
please file a ticket with the developer.
-------------------------------------------------------------------------------

  """)

解决方案:

pip安装的jpype1-0.7.0,而我的anaconda版本是【Anaconda3-5.0.1-Windows-x86_64】,python版本是【Python 3.6.3 MSC v.1900 64 bit 】,jdk版本是【java 1.8.0_144  64-Bit 】,所以得安装0.7.0以下版本的jpype。

pip install jpype1==0.6.3  【报错】

下载【JPype1-0.6.3-cp36-cp36m-win_amd64.whl

pip install .\JPype1-0.6.3-cp36-cp36m-win_amd64.whl  【成功】

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!