You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
当我下载您的代码在本地运行的时候。发现python main.py --eval 出现了keyerror的问题。我现在猜测可能是不同版本导致的不同,但是我也非常困惑,想请求您的帮助。
错误信息如下:
C:\Users\dell\Desktop\bert_for_SLU\bert-for-slu>python main.py --eval
D:\python\anaconda\lib\site-packages\sklearn\utils\linear_assignment_.py:22: FutureWarning: The linear_assignment_ module is deprecated in 0.21 and will be removed from 0.23. Use scipy.optimize.linear_sum_assignment instead.
FutureWarning)
1it [00:00, ?it/s]
0%| | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "main.py", line 94, in
predictor.predict_instances_to_file(dataset, opts.predict_path, opts.batch_size)
File "C:\Users\dell\Desktop\bert_for_SLU\bert-for-slu\hanzo\predicts.py", line 34, in predict_instances_to_file
outputs = self._decode_by_output(model_outputs[j])
File "C:\Users\dell\Desktop\bert_for_SLU\bert-for-slu\hanzo\predicts.py", line 48, in _decode_by_output
for catalog, spans in bio_tags_to_spans(slots[: len(outputs['text'])]):
KeyError: 'text'
The text was updated successfully, but these errors were encountered:
当我下载您的代码在本地运行的时候。发现python main.py --eval 出现了keyerror的问题。我现在猜测可能是不同版本导致的不同,但是我也非常困惑,想请求您的帮助。
错误信息如下:
C:\Users\dell\Desktop\bert_for_SLU\bert-for-slu>python main.py --eval
D:\python\anaconda\lib\site-packages\sklearn\utils\linear_assignment_.py:22: FutureWarning: The linear_assignment_ module is deprecated in 0.21 and will be removed from 0.23. Use scipy.optimize.linear_sum_assignment instead.
FutureWarning)
1it [00:00, ?it/s]
0%| | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "main.py", line 94, in
predictor.predict_instances_to_file(dataset, opts.predict_path, opts.batch_size)
File "C:\Users\dell\Desktop\bert_for_SLU\bert-for-slu\hanzo\predicts.py", line 34, in predict_instances_to_file
outputs = self._decode_by_output(model_outputs[j])
File "C:\Users\dell\Desktop\bert_for_SLU\bert-for-slu\hanzo\predicts.py", line 48, in _decode_by_output
for catalog, spans in bio_tags_to_spans(slots[: len(outputs['text'])]):
KeyError: 'text'
The text was updated successfully, but these errors were encountered: