We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66ce401 commit 5ce3020Copy full SHA for 5ce3020
feature-decoding/featdec_fastl2lir_train.py
@@ -101,12 +101,12 @@ def main(conf):
101
info_file = os.path.join(results_dir, 'info.yaml')
102
if os.path.exists(info_file):
103
with open(info_file, 'r') as f:
104
- info = yaml.load(f)
+ info = yaml.safe_load(f)
105
while info is None:
106
warnings.warn('Failed to load info from %s. Retrying...'
107
% info_file)
108
109
110
if '_status' in info and 'computation_status' in info['_status']:
111
if info['_status']['computation_status'] == 'done':
112
print('%s is already done and skipped' % analysis_id)
0 commit comments