File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ if ! [[ "$ACTION" =~ ^(toy|unit)$ ]]; then
13
13
case " $FORMAT " in
14
14
ucca)
15
15
mkdir pickle
16
- curl -L https://github.com/UniversalConceptualCognitiveAnnotation/UCCA_English-Wiki/releases/download/v1.2.4/ucca-sample.tar.gz | tar xz -C pickle
16
+ curl -L --insecure https://github.com/UniversalConceptualCognitiveAnnotation/UCCA_English-Wiki/releases/download/v1.2.4/ucca-sample.tar.gz | tar xz -C pickle
17
17
TRAIN_DATA=" pickle/train/*"
18
18
DEV_DATA=" pickle/dev/*"
19
19
;;
20
20
amr)
21
- curl --remote-name-all https://amr.isi.edu/download/2016-03-14/alignment-release-{training,dev,test}-bio.txt
21
+ curl --insecure -- remote-name-all https://amr.isi.edu/download/2016-03-14/alignment-release-{training,dev,test}-bio.txt
22
22
rename ' s/.txt/.amr/' alignment-release-* -bio.txt
23
23
python -m semstr.scripts.split -q alignment-release-training-bio.amr -o alignment-release-training-bio
24
24
CONVERT_DATA=alignment-release-dev-bio.amr
@@ -27,7 +27,7 @@ if ! [[ "$ACTION" =~ ^(toy|unit)$ ]]; then
27
27
;;
28
28
sdp)
29
29
mkdir data
30
- curl -L http://svn.delph-in.net/sdp/public/2015/trial/current.tgz | tar xz -C data
30
+ curl -L --insecure http://svn.delph-in.net/sdp/public/2015/trial/current.tgz | tar xz -C data
31
31
python -m semstr.scripts.split -q data/sdp/trial/dm.sdp -o data/sdp/trial/dm
32
32
python -m scripts.split_corpus -q data/sdp/trial/dm -t 120 -d 36 -l
33
33
CONVERT_DATA=data/sdp/trial/* .sdp
Original file line number Diff line number Diff line change @@ -55,10 +55,14 @@ def run(self):
55
55
out_file = os .path .join ("semstr" , "util" , "resources" , filename )
56
56
if not os .path .exists (out_file ):
57
57
self .announce ("Getting '%s'..." % filename )
58
- try :
59
- urllib .request .urlretrieve ("https://amr.isi.edu/download/lists/" + filename , out_file )
60
- except :
61
- self .warn ("Failed downloading https://amr.isi.edu/download/lists/" + filename + " to " + out_file )
58
+ for attempt in 1 , 2 :
59
+ try :
60
+ urllib .request .urlretrieve ("https://amr.isi.edu/download/lists/" + filename , out_file )
61
+ except Exception as e :
62
+ self .warn ("Failed downloading https://amr.isi.edu/download/lists/" + filename + " to " + out_file + ": " + str (e ))
63
+ import ssl
64
+ if getattr (ssl , '_create_unverified_context' , None ):
65
+ ssl ._create_default_https_context = ssl ._create_unverified_context
62
66
63
67
# Install actual package
64
68
_install .run (self )
You can’t perform that action at this time.
0 commit comments