Python安装cocoNLP
直接输入pip指令安装即可:
pip install cocoNLP
from cocoNLP.extractor import extractor
会报错FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/jvm'
,需要安装java环境,执行下面指令安装java8。
apt update
apt install openjdk-8-jdk
java -version