1、没有Python环境的安装
yum -y install python36
yum -y install git boost-devel boost-test boost zlib bzip2 xz cmake make
yum -y install python36-devel
2、有安装环境的直接安装
RUN yum -y install gcc-c++
3、安装依赖库
#install kenlm
pip3 install https://github.com/kpu/kenlm/archive/master.zip
#install pycorrector
git clone https://github.com/shibing624/pycorrector.git
cd pycorrector
python3 setup.py install
windows安装kenlm需要Microsoft Visual C++ 14.0(或更高版本)