Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行时出现的故障 #1

Open
kokolerk opened this issue Sep 14, 2021 · 0 comments
Open

运行时出现的故障 #1

kokolerk opened this issue Sep 14, 2021 · 0 comments

Comments

@kokolerk
Copy link

当我下载您的代码在本地运行的时候。发现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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant