Skip to content

Commit 97c189e

Browse files
committed
Change path for embeddings
1 parent 37bf65d commit 97c189e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

2017-07_Seminar/Session 1 - SENNA/code for POS/preprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ def getCasing(word, caseLookup):
187187
basename = os.path.basename(embeddingsPath)
188188
if basename == 'wiki_extvec.gz':
189189
print("Start downloading word embeddings for English using wget ...")
190-
os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
190+
#os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
191+
os.system("wget https://public.ukp.informatik.tu-darmstadt.de/reimers/2017_english_embeddings/"+basename+" -P embeddings/")
191192
else:
192193
print(embeddingsPath, "does not exist. Please provide pre-trained embeddings")
193194
exit()

2017-07_Seminar/Session 2 - Sentence CNN/code/preprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ def readFile(filepath):
118118
basename = os.path.basename(embeddingsPath)
119119
if basename == 'wiki_extvec.gz':
120120
print("Start downloading word embeddings for English using wget ...")
121-
os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
121+
#os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
122+
os.system("wget https://public.ukp.informatik.tu-darmstadt.de/reimers/2017_english_embeddings/"+basename+" -P embeddings/")
122123
else:
123124
print(embeddingsPath, "does not exist. Please provide pre-trained embeddings")
124125
exit()

2017-07_Seminar/Session 3 - Relation CNN/code/preprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ def getWordIdx(token, word2Idx):
145145
basename = os.path.basename(embeddingsPath)
146146
if basename == 'wiki_extvec.gz':
147147
print("Start downloading word embeddings for English using wget ...")
148-
os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
148+
#os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
149+
os.system("wget https://public.ukp.informatik.tu-darmstadt.de/reimers/2017_english_embeddings/"+basename+" -P embeddings/")
149150
else:
150151
print(embeddingsPath, "does not exist. Please provide pre-trained embeddings")
151152
exit()

0 commit comments

Comments
 (0)