Skip to content

Commit

Permalink
Fix Google download permission issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Madelon Hulsebos committed Jun 9, 2023
1 parent f05882d commit f194013
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sherlock/features/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def prepare_feature_extraction():
print("Downloading GloVe word embedding vectors.")
file_name = word_embedding_file
gdown.download(
url="https://drive.google.com/uc?id=1kayd5oNRQm8-NCvA8pIrtezbQ-B1_Vmk",
url="https://drive.google.com/uc?export=download&confirm=pbef&id=1kayd5oNRQm8-NCvA8pIrtezbQ-B1_Vmk",
output=file_name,
)

Expand All @@ -53,15 +53,15 @@ def prepare_feature_extraction():
print("Downloading first paragraph vector file.")
file_name = first_paragraph_vector_file
gdown.download(
url="https://drive.google.com/uc?id=1vdyGJ4aB71FCaNqJKYX387eVufcH4SAu",
url="https://drive.google.com/uc?export=download&confirm=pbef&id=1vdyGJ4aB71FCaNqJKYX387eVufcH4SAu",
output=file_name,
)

if not os.path.exists(second_paragraph_vector_file):
print("Downloading second paragraph vector file.")
file_name = second_paragraph_vector_file
gdown.download(
url="https://drive.google.com/uc?id=1hwE8We05oZLrACRibY8jc81NGughv79q",
url="https://drive.google.com/uc?export=download&confirm=pbef&id=1hwE8We05oZLrACRibY8jc81NGughv79q",
output=file_name,
)

Expand All @@ -71,7 +71,7 @@ def prepare_feature_extraction():
print("Downloading third paragraph vector file.")
file_name = third_paragraph_vector_file
gdown.download(
url="https://drive.google.com/uc?id=1StGoalk5SMbWX8Z-5weSbIAtK771UwoC",
url="https://drive.google.com/uc?export=download&confirm=pbef&id=1StGoalk5SMbWX8Z-5weSbIAtK771UwoC",
output=file_name,
)

Expand Down

0 comments on commit f194013

Please sign in to comment.