一、问题
用spm 进行分词时,报错:
error while loading shared libraries:libsentencepiece.so.0: cannot openshared object file: No such file or directory
二、 解决方法
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig
若报错 permission denied:
sudo sh -c "echo '/usr/local/lib' >> /etc/ld.so.conf"
参考链接: https://blog.csdn.net/sinat_33455447/article/details/90265938
https://blog.csdn.net/weixin_43046653/article/details/86157081