Skip to content

Commit

Permalink
Change path for embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
nreimers committed Jul 11, 2017
1 parent 37bf65d commit 97c189e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion 2017-07_Seminar/Session 1 - SENNA/code for POS/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def getCasing(word, caseLookup):
basename = os.path.basename(embeddingsPath)
if basename == 'wiki_extvec.gz':
print("Start downloading word embeddings for English using wget ...")
os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
#os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
os.system("wget https://public.ukp.informatik.tu-darmstadt.de/reimers/2017_english_embeddings/"+basename+" -P embeddings/")
else:
print(embeddingsPath, "does not exist. Please provide pre-trained embeddings")
exit()
Expand Down
3 changes: 2 additions & 1 deletion 2017-07_Seminar/Session 2 - Sentence CNN/code/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def readFile(filepath):
basename = os.path.basename(embeddingsPath)
if basename == 'wiki_extvec.gz':
print("Start downloading word embeddings for English using wget ...")
os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
#os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
os.system("wget https://public.ukp.informatik.tu-darmstadt.de/reimers/2017_english_embeddings/"+basename+" -P embeddings/")
else:
print(embeddingsPath, "does not exist. Please provide pre-trained embeddings")
exit()
Expand Down
3 changes: 2 additions & 1 deletion 2017-07_Seminar/Session 3 - Relation CNN/code/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ def getWordIdx(token, word2Idx):
basename = os.path.basename(embeddingsPath)
if basename == 'wiki_extvec.gz':
print("Start downloading word embeddings for English using wget ...")
os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
#os.system("wget https://www.cs.york.ac.uk/nlp/extvec/"+basename+" -P embeddings/")
os.system("wget https://public.ukp.informatik.tu-darmstadt.de/reimers/2017_english_embeddings/"+basename+" -P embeddings/")
else:
print(embeddingsPath, "does not exist. Please provide pre-trained embeddings")
exit()
Expand Down

0 comments on commit 97c189e

Please sign in to comment.