📅  最后修改于: 2022-03-11 14:51:15.534000             🧑  作者: Mango
$ sudo apt install git
$ git clone https://github.com/kpu/kenlm.git
$ cd kenlm/
$ mkdir -p build
$ sudo apt install cmake
$ sudo apt install gcc
$ sudo apt-get install g++
$ sudo apt install libeigen3-dev
$ sudo apt-get install build-essential
$ sudo apt-get install libboost-all-dev
$ sudo apt install libomp-dev
$ sudo apt install libbz2-dev
$ sudo apt install liblzma-dev
$ sudo cmake ..
$ cd kenlm/build
$ make -j 4