SRILM installation inside kaldi docker image

165 views
Skip to first unread message

Monta B

unread,
Oct 1, 2021, 11:11:00 AM10/1/21
to kaldi-help

Hello everyone,

I am using kaldiasr/kaldi:gpu-latest docker image as a base

I wanted to install srilm using the command

RUN cd /opt/kaldi/tools && extras/install_srilm.sh > /dev/null &&\
    export EESEN_ROOT=/opt/eesen &&\
    export SRILM=/opt/kaldi/tools/srilm &&\
    export PATH=${PATH}:${SRILM}/bin:${SRILM}/bin/i686-m64 &&\
    export KALDI_ROOT=/opt/kaldi &&\
    export PATH=${PATH}:$PWD/utils/:$EESEN_ROOT/src/netbin:$EESEN_ROOT/src/featbin:$EESEN_ROOT/src/decoderbin:$EESEN_ROOT/src/fstbin:$EESEN_ROOT/tools/openfst/bin:$EESEN_ROOT/tools/irstlm/bin/:$KALDI_ROOT/src/nnet2bin:$KALDI_ROOT/src/nnet3bin:$KALDI_ROOT/src/online2bin:$KALDI_ROOT/src/nnetbin:$KALDI_ROOT/src/latbin:$KALDI_ROOT/src/bin:$KALDI_ROOT/src/sgmm2bin:$KALDI_ROOT/src/gmmbin:$KALDI_ROOT/src/fgmmbin:$KALDI_ROOT/src/bin:$PWD:$PATH &&\
    export LC_ALL=C

the build stops and exits. I tried to build the image without it and install it inside the container and it is working perfectly.

I want to install everythin during the build not after it when launching.
Any idea about how to do it?

Thanks in advance.

Jan Yenda Trmal

unread,
Oct 1, 2021, 12:30:24 PM10/1/21
to kaldi-help
you will have to figure out what's wrong, e.g. by attaching the failed image and running the command again, maybe using bash -x (and definitely removing the  > /dev/null  redirection in the dockerfile)
y.

--
Go to http://kaldi-asr.org/forums.html to find out how to join the kaldi-help group
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/9af5c73f-e9d2-414a-afea-63581eb65a0dn%40googlegroups.com.

Monta B

unread,
Oct 1, 2021, 1:02:58 PM10/1/21
to kaldi-help
I found that the install_srilm script has been updated on github. I figure it out how to solve it.
Thank you

Jan Yenda Trmal

unread,
Oct 1, 2021, 1:06:59 PM10/1/21
to kaldi-help
I guess the point is that the command as you wrote it effectively gets rid of any information useful for debugging purposes.
So I'm not saying you need to figure out the issue yourself, but you need to get us at least some information.
You could start with removing the redirection to /dev/null
y.

Reply all
Reply to author
Forward
0 new messages