-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare.sh
executable file
·33 lines (23 loc) · 1.16 KB
/
prepare.sh
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
26
27
28
29
30
31
32
33
#!/bin/bash
train_batch_name=$1
preprocessed_dataset=$2
dictionary_file=$3
embeddings_file=$4
train_size=$5
echo -e "\n*************************************************************************************"
echo -e "Preparation: $train_batch_name"
echo -e "\nPreparing training resources (datasets, vocabulary, dictionary, embedding, etc)..."
python preparation/prepare_training_resources.py \
--dataset $preprocessed_dataset --dataset_name $train_batch_name \
--dictionary $dictionary_file \
--embeddings $embeddings_file \
--train_size $train_size || exit 1
echo -e "\nTraining resources prepared"
base_prepared_resources_dir="resources/$train_batch_name"
echo -e "\nCopying original preprocessed dataset to '$base_prepared_resources_dir' folder..."
cp $preprocessed_dataset $base_prepared_resources_dir
echo -e "\nMoved dataset to '$base_prepared_resources_dir' folder"
echo -e "\nCopying dictionary to '$base_prepared_resources_dir' folder..."
cp $dictionary_file $base_prepared_resources_dir
echo -e "\nMoved dictionary to '$base_prepared_resources_dir' folder"
echo -e "\n*************************************************************************************"