mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
download word embedding in proper order
This commit is contained in:
@@ -51,11 +51,11 @@ class WordEmbedding:
|
||||
raise ValueError(f"Could not find word embedding {embedding_type}")
|
||||
|
||||
# Download embeddings if they're not cached.
|
||||
word_embeddings_root_path = textattack.shared.utils.download_if_needed(
|
||||
WordEmbedding.PATH
|
||||
)
|
||||
word_embeddings_folder = os.path.join(
|
||||
word_embeddings_root_path, word_embeddings_folder
|
||||
WordEmbedding.PATH, word_embeddings_folder
|
||||
)
|
||||
word_embeddings_folder = textattack.shared.utils.download_if_needed(
|
||||
word_embeddings_folder
|
||||
)
|
||||
|
||||
# Concatenate folder names to create full path to files.
|
||||
|
||||
Reference in New Issue
Block a user