File size: 3,528 Bytes
b184add
 
 
 
4fefb4c
b184add
cccf8d7
b184add
 
cccf8d7
 
b184add
 
cccf8d7
 
b184add
 
cccf8d7
 
b184add
 
cccf8d7
 
b184add
 
1125f7c
 
 
 
 
cccf8d7
1125f7c
 
b184add
 
1125f7c
 
b184add
 
1125f7c
 
b184add
 
1125f7c
b184add
 
 
 
 
 
 
1125f7c
b184add
 
 
 
 
 
 
 
1125f7c
 
b184add
1125f7c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b184add
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
####################
# enA-jaA: 718_606 #
####################
export DIRECTION="enA-jaA"

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

######################
# 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


########
# 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')"