Thamme Gowda commited on
Commit
90e8cba
1 Parent(s): e0680be

add datasets and models

Browse files
README.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+
2
+ # Marian Regression Tests
3
+
4
+ This repository contains datasets and models for marian regression tests.
5
+ The regression test suite is at https://github.com/marian-nmt/marian-regression-tests
data/download-data.sh ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # If you want to add new data files to our Azure storage, open an issue at
4
+ # https://github.com/marian-nmt/marian-regression-tests
5
+
6
+ URL=https://romang.blob.core.windows.net/mariandev/regression-tests/data
7
+ TOKEN="${AZURE_STORAGE_SAS_TOKEN:-}"
8
+
9
+ # If the SAS token is not provided, switch to the mirror server
10
+ if [ -z $TOKEN ]; then
11
+ echo "No SAS token provided. Using statmt.org mirror"
12
+ URL=http://data.statmt.org/romang/marian-regression-tests/data
13
+ else
14
+ echo "SAS token provided. It has ${#TOKEN} characters"
15
+ fi
16
+ echo "Downloading from: $URL"
17
+
18
+ # Each tarball is a .tar.gz file that contains a single directory of the same
19
+ # name as the tarball
20
+ DATA_TARBALLS=(
21
+ europarl.de-en
22
+ exdb_mnist
23
+ )
24
+
25
+ AZCOPY=true
26
+ if ! grep -q "blob\.core\.windows\.net" <<< "$URL"; then
27
+ echo "Warning: URL does not look like Azure blob storage URI. Using wget"
28
+ AZCOPY=false
29
+ elif ! command -v azcopy &> /dev/null; then
30
+ echo "Warning: azcopy is not installed in your system. Using wget"
31
+ AZCOPY=false
32
+ fi
33
+
34
+ for name in ${DATA_TARBALLS[@]}; do
35
+ file=$name.tar.gz
36
+
37
+ echo Downloading checksum for $file ...
38
+ if $AZCOPY; then
39
+ azcopy copy "$URL/$file.md5?$TOKEN" $name.md5.newest
40
+ else
41
+ wget -nv -O- $URL/$file.md5 > $name.md5.newest
42
+ fi
43
+
44
+ # Do not download if the checksum files are identical, i.e. the archive has
45
+ # not been updated since it was downloaded last time
46
+ if test -s $name.md5 && $(cmp --silent $name.md5 $name.md5.newest); then
47
+ echo File $file does not need to be updated
48
+ else
49
+ echo Downloading $file ...
50
+ if $AZCOPY; then
51
+ azcopy copy "$URL/$file?$TOKEN" .
52
+ else
53
+ wget -nv $URL/$file
54
+ fi
55
+ # Extract the archive
56
+ #tar zxf $file
57
+ # Remove archive to save disk space
58
+ #rm -f $file
59
+ fi
60
+ mv $name.md5.newest $name.md5
61
+ done
62
+
63
+ DATA_FILES=(
64
+ europarl.de-en/corpus.bpe.de.gz
65
+ europarl.de-en/corpus.bpe.en.gz
66
+ )
67
+
68
+ for file in ${DATA_FILES[@]}; do
69
+ echo Extracting $file ...
70
+ test -s $file || exit 1
71
+ # Uncompress if needed
72
+ target="${file%.*}"
73
+ test -s $target || gzip -dc $file > $target
74
+ done
75
+
76
+ # Get de-BPEed small training data
77
+ test -s europarl.de-en/corpus.small.de.gz || head -n 100000 europarl.de-en/corpus.bpe.de | sed 's/@@ //g' | gzip > europarl.de-en/corpus.small.de.gz
78
+ test -s europarl.de-en/corpus.small.en.gz || head -n 100000 europarl.de-en/corpus.bpe.en | sed 's/@@ //g' | gzip > europarl.de-en/corpus.small.en.gz
data/europarl.de-en.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ 71c4349bbffc9db4991d90302d7ec1e4 europarl.de-en.tar.gz
data/europarl.de-en.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:feb4409d1bfe251ffae453f4bad8ef31a5717bfe0026acd92d78ad2a75b4535a
3
+ size 197000118
data/exdb_mnist.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ 00d7b1880699312aa0ac2a1765894b01 exdb_mnist.tar.gz
data/exdb_mnist.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e034e47a0182a4226966f39401502e6942852da8bd6acb137571bc64fadb64ce
3
+ size 11599046
models/ape.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ 41561ea441dfcff9345451adfe3919c1 ape.tar.gz
models/ape.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50e6ab7e6afb68047b1e1404b0a99da0af5deafcb840dcc17564a153e1494353
3
+ size 248241957
models/download-models.sh ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Download model tarballs from Marian storage on Azure.
4
+ #
5
+ # Usage examples:
6
+ # ./download-models.sh # download all tarbals
7
+ # ./download-models.sh wngt19 # download only wngt19.tar.gz
8
+ #
9
+ # If you want to add new model files to our Azure storage, open an issue at
10
+ # https://github.com/marian-nmt/marian-regression-tests
11
+
12
+ URL=https://romang.blob.core.windows.net/mariandev/regression-tests/models
13
+ TOKEN="${AZURE_STORAGE_SAS_TOKEN:-}"
14
+
15
+ # If the SAS token is not provided, switch to the mirror server
16
+ if [ -z $TOKEN ]; then
17
+ echo "No SAS token provided. Using statmt.org mirror"
18
+ URL=http://data.statmt.org/romang/marian-regression-tests/models
19
+ else
20
+ echo "SAS token provided. It has ${#TOKEN} characters"
21
+ fi
22
+ echo "Downloading from: $URL"
23
+
24
+ # Each tarball is a .tar.gz file that contains a single directory of the same
25
+ # name as the tarball without .tar.gz
26
+ MODEL_TARBALLS=(
27
+ wmt16_systems # A part of En-De WMT16 model from http://data.statmt.org/wmt16_systems/en-de/
28
+ wmt17_systems # A part of En-De WMT17 model from http://data.statmt.org/wmt17_systems/en-de/
29
+ ape # A multi-source Transformer model trained on WMT16: APE Shared Task data with SentencePiece
30
+ lmgec # LM from http://data.statmt.org/romang/gec-naacl18/models.tgz
31
+ rnn-spm # Small De-En RNN-based model trained with SentencePiece
32
+ transformer # En-De transformer model from marian-examples/transformer
33
+ wnmt18 # WNMT18 student models
34
+ wngt19 # WNGT19 student models
35
+ student-eten # Et-En student model from https://github.com/browsermt/students
36
+ factors # Small En-De model trained with factorized vocabs by Unbabel
37
+ #char-s2s # A character-level RNN model (obsolete)
38
+ )
39
+
40
+ AZCOPY=true
41
+ if ! grep -q "blob\.core\.windows\.net" <<< "$URL"; then
42
+ echo "Warning: URL does not look like Azure blob storage URI. Using wget"
43
+ AZCOPY=false
44
+ elif ! command -v azcopy &> /dev/null; then
45
+ echo "Warning: azcopy is not installed in your system. Using wget"
46
+ AZCOPY=false
47
+ fi
48
+
49
+ if [ $# -gt 0 ]; then
50
+ echo The list of parameters is not empty.
51
+ echo Skipping models not in the list: $*
52
+ fi
53
+
54
+ for model in ${MODEL_TARBALLS[@]}; do
55
+ file=$model.tar.gz
56
+
57
+ # If an argument list is provided, download only tarballs that are present
58
+ # in the list. Otherwise download all predefined tarballs
59
+ if [ $# -gt 0 ] && [[ "$file" != *"$*"* ]]; then
60
+ echo Skipping $file
61
+ continue;
62
+ fi
63
+
64
+ echo Downloading checksum for $file ...
65
+ if $AZCOPY; then
66
+ azcopy copy "$URL/$file.md5?$TOKEN" $model.md5.newest
67
+ else
68
+ wget -nv -O- $URL/$file.md5 > $model.md5.newest
69
+ fi
70
+
71
+ # Do not download if the checksum files are identical, i.e. the archive has
72
+ # not been updated since it was downloaded last time
73
+ if test -s $model.md5 && $(cmp --silent $model.md5 $model.md5.newest); then
74
+ echo File $file does not need to be updated
75
+ else
76
+ echo Downloading $file ...
77
+ if $AZCOPY; then
78
+ azcopy copy "$URL/$file?$TOKEN" .
79
+ else
80
+ wget -nv $URL/$file
81
+ fi
82
+ # Extract the archive
83
+ #tar zxf $file
84
+ # Remove archive to save disk space
85
+ #rm -f $file
86
+ fi
87
+ mv $model.md5.newest $model.md5
88
+ done
models/factors.md5 ADDED
File without changes
models/lmgec.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ c43cef0f4c1171eff0d50e89e99d03d8 lmgec.tar.gz
models/lmgec.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffd0e0009bad66df38f100b9fdf636615306953f79b7451b0f12367e451405cf
3
+ size 167140336
models/rnn-spm.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ beeeda1e4485c3dec4eefe8d2e643b19 rnn-spm.tar.gz
models/rnn-spm.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eded2b48851e74c6f7a80e685df85f682dfe1229e9eead06c4ac73e9e2be4d93
3
+ size 144291749
models/student-eten.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ 61c8ce07bb20799ff5366ac7774bf24b student-eten.tar.gz
models/student-eten.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8641d388c9ed786e64cae49b4f0793b35868f1843eea3a7cd2253d16b73052bf
3
+ size 81625920
models/transformer.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ 728f7b919ff1d8cd35ea1f95d6ab9f3e transformer.tar.gz
models/transformer.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cece52245f9a28ab85e06a9fd17f14834ee6e0a952fe678b45b1cd8743c61839
3
+ size 251408332
models/wmt16_systems.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ 9242ae9e3ae48769cf60fe98e18738d8 wmt16_systems.tar.gz
models/wmt16_systems.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee7e75c9c5977fc313cb86ecec04083307968b7a1ce982435721946089674a5b
3
+ size 2996984113
models/wmt17_systems.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ 30687485ee8c3bbd8b769804e764024d wmt17_systems.tar.gz
models/wmt17_systems.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5aeaa6c4750f3b2c9f0f3f1380b618d9eb888bfa1a1e8435df6e59f9733d50b
3
+ size 1487734876
models/wngt19.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ 72623a885afdfdc46ed8d6030d29dd32 wngt19.tar.gz
models/wngt19.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2e5f14dca2487754907bed6fac228d177c492669d8747eac52eb20eaad9d8b9
3
+ size 295235353
models/wnmt18.md5 ADDED
@@ -0,0 +1 @@
 
 
1
+ b7825f32b262284c0fa302f2aaeb0b8d wnmt18.tar.gz
models/wnmt18.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6a287801d70a2de3d95591f5539052bf2a43527cbaa5cccf8b82ce221127db4
3
+ size 224610011