-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
file location checker to check if all the files have been downloaded …
…correctly
- Loading branch information
Showing
2 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import os.path | ||
|
||
# Check for /resources check for vectors_gl.npy and vocab_gl.npy | ||
|
||
catch_exception = False | ||
if not os.path.isfile('resources/vectors_gl.npy'): | ||
print("vectors_gl.npy file not found in resources. Please download the file and add it to the resources folder.") | ||
catch_exception = True | ||
|
||
|
||
if not os.path.isfile('resources/vocab_gl.pickle'): | ||
print("vocab_gl.pickle file not found in resources. Please download the file and add it to the resources folder.") | ||
catch_exception = True | ||
|
||
if not os.path.isfile('data/data/common/rdf_type_lookup.json'): | ||
print("rdf_type_lookup.json not found in data/data/common. Please download the file and add it to the " | ||
"data/data/common folder.") | ||
catch_exception = True | ||
|
||
if not os.path.isfile('data/data/common/relations.pickle'): | ||
print("relations.pickle not found in data/data/common. Please download the file and add it to the " | ||
"data/data/common folder.") | ||
catch_exception = True | ||
|
||
if not os.path.isfile('data/data/lcquad/id_big_data.json'): | ||
print("id_big_data.json file not found in data/data/lcquad. Please download the file and " | ||
"add it to the data/data/lcquad folder to perform experiments on lcquad.") | ||
catch_exception = True | ||
|
||
if not os.path.isfile('data/data/qald/id_big_data.json'): | ||
print("id_big_data.json file not found in data/data/qald. Please download the file and " | ||
"add it to the data/data/lcquad folder to perform experiments on qald.") | ||
catch_exception = True | ||
|
||
if not catch_exception: | ||
print("Found all required files") |