ricky9123 / bert-for-slu Goto Github PK
View Code? Open in Web Editor NEW:lion: BERT for Spoken Language Understanding in Task-based Dialog
License: Apache License 2.0
:lion: BERT for Spoken Language Understanding in Task-based Dialog
License: Apache License 2.0
当我下载您的代码在本地运行的时候。发现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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.