Giter Site home page Giter Site logo

ricky9123 / bert-for-slu Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 12 KB

:lion: BERT for Spoken Language Understanding in Task-based Dialog

License: Apache License 2.0

Python 100.00%
bert natural-language-understanding spoken-language-understanding dialog-system

bert-for-slu's People

Contributors

ricky9123 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bert-for-slu's Issues

运行时出现的故障

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.