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

Fix some bug about SQuAD code #282

Merged
merged 1 commit into from
Feb 15, 2019
Merged

Fix some bug about SQuAD code #282

merged 1 commit into from
Feb 15, 2019

Conversation

wlhgtc
Copy link
Contributor

@wlhgtc wlhgtc commented Feb 15, 2019

Fix issue in #207
image

This error occurs when 'nbest' only contain 1 item, but none 'text'. So the code to add empty will not work.
I add another condition to solve it.

https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/examples/run_squad.py#L570-L590

@thomwolf thomwolf merged commit 5faf386 into huggingface:master Feb 15, 2019
@thomwolf
Copy link
Member

Ok, thanks @wlhgtc!

qwang70 pushed a commit to DRL36/pytorch-pretrained-BERT that referenced this pull request Mar 2, 2019
ZYC-ModelCloud pushed a commit to ZYC-ModelCloud/transformers that referenced this pull request Nov 14, 2024
ZYC-ModelCloud pushed a commit to ZYC-ModelCloud/transformers that referenced this pull request Nov 14, 2024
* enable auto_round lm_head quantize

* Update base.py

---------

Co-authored-by: LRL-ModelCloud <lrl@modelcloud.ai>
Co-authored-by: Qubitium-ModelCloud <qubitium@modelcloud.ai>
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

Successfully merging this pull request may close these issues.

2 participants