diff --git a/scripts/analyze_all_results.py b/scripts/analyze_all_results.py index f925a92..9a08702 100644 --- a/scripts/analyze_all_results.py +++ b/scripts/analyze_all_results.py @@ -37,5 +37,6 @@ def get_results(dset): print('Minimum: {}'.format(minimum)) print('Standard deviaton: {}'.format(std)) + for dset in DATASETS: get_results(dset) diff --git a/scripts/convert_all_datasets.py b/scripts/convert_all_datasets.py index c6e3355..1224f6d 100644 --- a/scripts/convert_all_datasets.py +++ b/scripts/convert_all_datasets.py @@ -63,6 +63,7 @@ def convert_dataset(filepath, extend_with, vocab): print(' done. Coverage: {}'.format(cover)) + with open('../model/vocabulary.json', 'r') as f: vocab = json.load(f) diff --git a/scripts/download_weights.py b/scripts/download_weights.py index cfd713e..be6c231 100644 --- a/scripts/download_weights.py +++ b/scripts/download_weights.py @@ -33,6 +33,7 @@ def prompt(): else: print('Please respond with \'y\' or \'n\' (or \'yes\' or \'no\')') + download = True if os.path.exists(weights_path): print('Weight file already exists at {}. Would you like to redownload it anyway? [y/n]'.format(weights_path))