Skip to content

Commit

Permalink
Merge branch 'model_copy' into exp1
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Aug 12, 2024
2 parents de41b5a + 422a42d commit 2014792
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion languages/train-all-from-cat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ declare -a arr=("cat-eng" "cat-deu" "cat-fra" "cat-ita" "cat-spa" "cat-por" "cat
#declare -a arr=("cat-eng")

for dirname in "${arr[@]}"; do

echo Processing $dirname

src_lang="${dirname%-*}" # Extract everything before the last '-'
tgt_lang="${dirname##*-}" # Extract everything after the last '-'
inverted_pair="$tgt_lang-$src_lang"

if [ ! -d $dirname ]; then
mkdir $dirname
fi

pushd $dirname

cp ../master-language/* .
cp ../$inverted_pair/*.sh .
cp ../$inverted_pair/*.yml .
cp ../$inverted_pair/*.py .
./copy-corpus.sh
rm -r -f run/
./train.sh
Expand Down

0 comments on commit 2014792

Please sign in to comment.