Python调用自然语言处理包HanLP
Python调用自然语言处理包HanLP3.png一句话安装pyhanlp,全自动下载安装配置,还支持升级。 pip install pyhanlp调用方法参考项目主页:https://github.com/hankcs/pyhanlp Windows用户如果遇到: building '_jpype' extensionerror: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft VisualC++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools可以按提示安装Visual C++,也可以安装轻量级的Miniconda(推荐,超方便): 然后通过conda安装jpype1和pyhanlp: conda install -c conda-forge jpype1pip install pyhanlp 以前的文章已经过时,不用看了。 文章来源于网络
