Skip to content

Commit

Permalink
Copy from the inverted language pair instead of the master for all
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Aug 12, 2024
1 parent b76e9db commit 422a42d
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 422a42d

Please sign in to comment.