安装polyglot过程中需要安装icu。
1. 安装polyglot
https://polyglot.readthedocs.io/en/latest/Tokenization.html
2. 安装icu
polyglot文档中给出在ubantu上使用apt-get的方法:
sudo apt-get install libicu-dev
在CentOS上,如果有root权限可以使用yum https://www.ivdone.top/article/1544.html。
作为非root用户,首先尝试 ICU 官网源码安装 https://pkgs.org/download/libicu,https://centos.pkgs.org/7/centos-x86_64/libicu-50.2-3.el7.x86_64.rpm.html,选择版本 libicu-50.2-4.el7_7.x86_64.rpm
我最终没有使用该文件,而是使用教程