Blame view

tools/extras/install_faster_rnnlm.sh 505 Bytes
8dcb6dfcb   Yannick Estève   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  #!/bin/bash
  
  # The script downloads and installs faster-rnnlm
  # https://github.com/yandex/faster-rnnlm
  
  set -e
  
  # Make sure we are in the tools/ directory.
  if [ `basename $PWD` == extras ]; then
    cd ..
  fi
  
  ! [ `basename $PWD` == tools ] && \
     echo "You must call this script from the tools/ directory" && exit 1;
  
  echo "Installing Faster RNNLM"
  
  if [ ! -d "faster-rnnlm" ]; then
      git clone https://github.com/yandex/faster-rnnlm.git
  fi
  
  cd faster-rnnlm
  git pull
  ./build.sh
  ln -sf faster-rnnlm/rnnlm