File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Session 1 - SENNA/code for POS
Session 2 - Sentence CNN/code
Session 3 - Relation CNN/code Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,8 @@ def getCasing(word, caseLookup):
187
187
basename = os .path .basename (embeddingsPath )
188
188
if basename == 'wiki_extvec.gz' :
189
189
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/" )
191
192
else :
192
193
print (embeddingsPath , "does not exist. Please provide pre-trained embeddings" )
193
194
exit ()
Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ def readFile(filepath):
118
118
basename = os .path .basename (embeddingsPath )
119
119
if basename == 'wiki_extvec.gz' :
120
120
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/" )
122
123
else :
123
124
print (embeddingsPath , "does not exist. Please provide pre-trained embeddings" )
124
125
exit ()
Original file line number Diff line number Diff line change @@ -145,7 +145,8 @@ def getWordIdx(token, word2Idx):
145
145
basename = os .path .basename (embeddingsPath )
146
146
if basename == 'wiki_extvec.gz' :
147
147
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/" )
149
150
else :
150
151
print (embeddingsPath , "does not exist. Please provide pre-trained embeddings" )
151
152
exit ()
You can’t perform that action at this time.
0 commit comments