01 NLP入门-HanLP自然语言工具包
1、环境搭建
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel -y
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
tar zxvf Python-3.7.3.tgz
cd Python-3.7.3 && ./configure --prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
python3 --version
pip3 --version
2、HanLP环境搭建
这里需要走国内的pip网
pip3 install hanlp[full]
3、使用
作者:何贤刚 创建时间:2025-08-01 18:02
最后编辑:何贤刚 更新时间:2025-08-14 09:08
最后编辑:何贤刚 更新时间:2025-08-14 09:08