download.sh 467 字节
Newer Older
R
ranqiu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/usr/bin/env bash

CUR_PATH=`pwd`
git clone https://github.com/moses-smt/mosesdecoder.git
git clone https://github.com/rizar/actor-critic-public

export MOSES=`pwd`/mosesdecoder
export LVSR=`pwd`/actor-critic-public

cd actor-critic-public/exp/ted
sh create_dataset.sh

cd $CUR_PATH
mkdir data
cp actor-critic-public/exp/ted/prep/*-* data/
cp actor-critic-public/exp/ted/vocab.* data/

cd data
python ../preprocess.py

cd ..
rm -rf actor-critic-public mosesdecoder