update script

pull/1459/head
Junkun 3 years ago
parent 0202b8caf4
commit 0165c450ad

@ -198,10 +198,14 @@ if [ ${stage} -le 2 ] && [ ${stop_stage} -ge 2 ]; then
fi fi
if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
x=(${feat_tr_dir} ${feat_dt_dir} ${feat_trans_dir})
y=(train dev test)
echo "stage 3: Format the Json Data" echo "stage 3: Format the Json Data"
python3 local/espnet_json_to_manifest.py --json-file ${feat_tr_dir}/data_${bpemode}${nbpe}.json --manifest-file data/manifest.train for (( i=0; i<${#x[*]}; ++i)); do
python3 local/espnet_json_to_manifest.py --json-file ${feat_dt_dir}/data_${bpemode}${nbpe}.json --manifest-file data/manifest.dev python3 ${MAIN_ROOT}/utils/espnet_json_to_manifest.py \
python3 local/espnet_json_to_manifest.py --json-file ${feat_trans_dir}/data_${bpemode}${nbpe}.json --manifest-file data/manifest.test --json-file ${x[$i]}/data_${bpemode}${nbpe}.json
--manifest-file data/manifest.${y[$i]}
done
fi fi
echo "Ted En-Zh Data preparation done." echo "Ted En-Zh Data preparation done."
exit 0 exit 0

Loading…
Cancel
Save