grammatical-error-correctio.../install.sh

29 lines
559 B
Bash
Raw Normal View History

#!/bin/bash -v
mkdir -p tools
# download moses
if [ ! -e tools/moses-scripts ]; then
cd tools
git clone https://github.com/marian-nmt/moses-scripts
cd ..
fi
# download subword-nmt
if [ ! -e tools/subword-nmt ]; then
cd tools
git clone https://github.com/rsennrich/subword-nmt
cd ..
fi
# download and compile marian-nmt with webserver
if [ ! -e tools/marian ]; then
cd tools
git clone https://github.com/marian-nmt/marian
mkdir marian/build
cd marian/build
cmake -DCOMPILE_SERVER=on ..
make -j4
cd ..
fi