Skip to content

Instantly share code, notes, and snippets.

@Anwarvic
Created December 26, 2019 09:33
Show Gist options
  • Select an option

  • Save Anwarvic/cd296c5ed653068c69a69dbb894b1522 to your computer and use it in GitHub Desktop.

Select an option

Save Anwarvic/cd296c5ed653068c69a69dbb894b1522 to your computer and use it in GitHub Desktop.
This gits is used to install Ken Language Model package made by Kenneth Heafield. This package is used to create ARPA language models.
# install dependencies (src: https://kheafield.com/code/kenlm/dependencies/)
sudo apt-get install build-essential libboost-all-dev cmake zlib1g-dev libbz2-dev liblzma-dev
# clone official GitHub repo
git clone https://github.com/kpu/kenlm/
# build the repo using cmake
cd kenlm
mkdir -p build
cd build
cmake ..
make -j 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment