Skip to content

Commit

Permalink
Create kenLM docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
merwan committed Nov 22, 2021
0 parents commit f98fd76
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM python:3.8

WORKDIR /

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
libboost-system-dev \
libboost-thread-dev \
libboost-program-options-dev \
libboost-test-dev \
libeigen3-dev \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN git clone https://github.com/kpu/kenlm /opt/kenlm
RUN mkdir -p /opt/kenlm/build && cd /opt/kenlm/build \
&& cmake .. \
&& make -j $(nproc)

RUN pip install git+https://github.com/kpu/kenlm.git

0 comments on commit f98fd76

Please sign in to comment.