File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 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
1313 case " $FORMAT " in
1414 ucca)
1515 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
1717 TRAIN_DATA=" pickle/train/*"
1818 DEV_DATA=" pickle/dev/*"
1919 ;;
2020 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
2222 rename ' s/.txt/.amr/' alignment-release-* -bio.txt
2323 python -m semstr.scripts.split -q alignment-release-training-bio.amr -o alignment-release-training-bio
2424 CONVERT_DATA=alignment-release-dev-bio.amr
@@ -27,7 +27,7 @@ if ! [[ "$ACTION" =~ ^(toy|unit)$ ]]; then
2727 ;;
2828 sdp)
2929 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
3131 python -m semstr.scripts.split -q data/sdp/trial/dm.sdp -o data/sdp/trial/dm
3232 python -m scripts.split_corpus -q data/sdp/trial/dm -t 120 -d 36 -l
3333 CONVERT_DATA=data/sdp/trial/* .sdp
Original file line number Diff line number Diff line change @@ -55,10 +55,14 @@ def run(self):
5555 out_file = os .path .join ("semstr" , "util" , "resources" , filename )
5656 if not os .path .exists (out_file ):
5757 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
6266
6367 # Install actual package
6468 _install .run (self )
You can’t perform that action at this time.
0 commit comments