asahi417's picture
test streaming
befd6a5
raw
history blame
4.74 kB
####################
# enA-jaA: 718_606 #
####################
export DIRECTION="enA-jaA"
export DATASET_ID=1
export LINE_NO_START=0
export LINE_NO_END=25000
python download_audio.py
export DATASET_ID=2
export LINE_NO_START=25000
export LINE_NO_END=50000
python download_audio.py
export DATASET_ID=3
export LINE_NO_START=50000
export LINE_NO_END=75000
python download_audio.py
export DATASET_ID=4
export LINE_NO_START=75000
export LINE_NO_END=100000
python download_audio.py
export DATASET_ID=5
export LINE_NO_START=100000
export LINE_NO_END=125000
python download_audio.py
export DATASET_ID=6
export LINE_NO_START=125000
export LINE_NO_END=150000
python download_audio.py
export DATASET_ID=7
export LINE_NO_START=150000
export LINE_NO_END=175000
python download_audio.py
export DATASET_ID=8
export LINE_NO_START=175000
export LINE_NO_END=200000
python download_audio.py
export DATASET_ID=9
export LINE_NO_START=200000
export LINE_NO_END=225000
python download_audio.py
export DATASET_ID=10
export LINE_NO_START=225000
export LINE_NO_END=250000
python download_audio.py
export DATASET_ID=11
export LINE_NO_START=250000
export LINE_NO_END=275000
python download_audio.py
export DATASET_ID=12
export LINE_NO_START=275000
export LINE_NO_END=300000
python download_audio.py
export DATASET_ID=13
export LINE_NO_START=300000
export LINE_NO_END=325000
python download_audio.py
export DATASET_ID=14
export LINE_NO_START=325000
export LINE_NO_END=350000
python download_audio.py
export DATASET_ID=15
export LINE_NO_START=350000
export LINE_NO_END=360000
python download_audio.py
python push_s2s_translation.py
######################
# enA-jpn: 1_468_292 #
######################
# AUDIO
export DIRECTION="enA-jpn"
export LINE_NO_START=0
export LINE_NO_END=50000
python download_audio.py
export LINE_NO_START=50000
export LINE_NO_END=100000
python download_audio.py
export LINE_NO_START=100000
export LINE_NO_END=150000
python download_audio.py
export LINE_NO_START=150000
export LINE_NO_END=300000
python download_audio.py
export LINE_NO_START=300000
export LINE_NO_END=360000
python download_audio.py
# TEXT
git clone https://github.com/kpu/preprocess
cd preprocess
git checkout wet
git submodule update --init --recursive
mkdir build
cd build
cmake ..
make -j4
alias wet_lines="${PWD}/build/bin/wet_lines"
cd ../
wget https://dl.fbaipublicfiles.com/seamless/data/seamless.dataset.metadata.public.enA-jpn.withduration.tsv.gz
cp ../download_text.py ./
python download_text.py
cat seamless.dataset.metadata.public.enA-jpn.withduration.reordered.batch_1.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee seamless.dataset.metadata.public.jpn.batch_1.tsv
cat seamless.dataset.metadata.public.enA-jpn.withduration.reordered.batch_2.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee seamless.dataset.metadata.public.jpn.batch_2.tsv
cat seamless.dataset.metadata.public.enA-jpn.withduration.reordered.batch_3.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee seamless.dataset.metadata.public.jpn.batch_3.tsv
cat seamless.dataset.metadata.public.enA-jpn.withduration.reordered.batch_4.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee seamless.dataset.metadata.public.jpn.batch_4.tsv
cat seamless.dataset.metadata.public.enA-jpn.withduration.reordered.batch_5.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee seamless.dataset.metadata.public.jpn.batch_5.tsv
cat seamless.dataset.metadata.public.enA-jpn.withduration.reordered.batch_6.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee seamless.dataset.metadata.public.jpn.batch_6.tsv
cat seamless.dataset.metadata.public.enA-jpn.withduration.reordered.batch_7.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee seamless.dataset.metadata.public.jpn.batch_7.tsv
cat seamless.dataset.metadata.public.enA-jpn.withduration.reordered.batch_8.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee seamless.dataset.metadata.public.jpn.batch_8.tsv
cat seamless.dataset.metadata.public.enA-jpn.withduration.reordered.batch_9.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee seamless.dataset.metadata.public.jpn.batch_9.tsv
cat seamless.dataset.metadata.public.enA-jpn.withduration.reordered.batch_10.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee seamless.dataset.metadata.public.jpn.batch_10.tsv
cat seamless.dataset.metadata.public.enA-jpn.withduration.reordered.batch_11.tsv | egrep ^crawl-data | tr '\t' ' ' | wet_lines | tee seamless.dataset.metadata.public.jpn.batch_11.tsv
cp ../format_text.py ./
python format_text.py
mv text.enA-jpn.json ../
cd ../
########
# NLLB #
########
# https://www.kecl.ntt.co.jp/icl/lirg/jparacrawl/
python -c "from datasets import load_dataset; load_dataset('allenai/nllb', 'eng_Latn-jpn_Jpan')"