Skip to content

Commit

Permalink
Small changes related to words-to-numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
alumae committed Jun 5, 2019
1 parent d64a8e7 commit 2059fe1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions misc/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,18 @@ RUN apt-get install -y python3-numpy && \
make .init

RUN ln -s -f /usr/bin/python2 /usr/bin/python && \
apt-get install -y python-numpy python-scipy python3-simplejson && \
apt-get install -y python-numpy python-scipy python3-simplejson python3-pytest && \
pip2 install theano --no-deps

# Set up punctuator
RUN cd /opt/kaldi-offline-transcriber && \
RUN echo 1 > /dev/null && \
cd /opt/kaldi-offline-transcriber && \
wget -q -O - http://bark.phon.ioc.ee/tanel/est_punct2.tar.gz | tar xvz && \
echo 'DO_PUNCTUATION=yes' >> /opt/kaldi-offline-transcriber/Makefile.options && \
echo 'PUNCTUATE_JSON_CMD=(cd punctuator-data/est_punct2/; temp_file1=$$(mktemp); temp_file2=$$(mktemp); cat > $$temp_file1; python2 punctuator_pad_emb_json.py Model_stage2p_final_563750_h256_lr0.02.pcl $$temp_file1 $$temp_file2 > /dev/stderr; cat $$temp_file2; rm $$temp_file1 $$temp_file2)' >> /opt/kaldi-offline-transcriber/Makefile.options

# Do a final git pull. This is actually not needed if building from scratch
RUN echo 2 > /dev/null && \
RUN echo 7 > /dev/null && \
cd /opt/kaldi-offline-transcriber && \
git pull

Expand Down

0 comments on commit 2059fe1

Please sign in to comment.