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
QA pipeline fails during convert_squad_examples_to_features #8787
Comments
After updating the run_squad.py script with a newer version of transformers, it works now! Thank you! |
@TrupeshKumarPatel Seems that this is not working still. What was the actual solution to this? |
Hi @aleSuglia, |
I have exactly the same error that you reported: |
If you googled this error and you are reading this post, please do the following. When you create your tokenizer make sure that you set the flag AutoTokenizer.from_pretrained(tokenizer_name, use_fast=False) This fixes the error. However, I wonder why there is no backward compatibility... |
Had the similar issue with the above. What @aleSuglia suggested indeed works, but the issue still persists; fast version of the tokenizer should be compatible with the previous methods. In my case, I narrowed the problem down to transformers/src/transformers/data/processors/utils.py Lines 47 to 48 in 447808c
but the tokenizer apparently doesn't accept
I'm not sure this completely solves the issue though. |
Environment info
transformers
version: 4.0.0-rc-1Who can help
@LysandreJik @mfuntowicz
IDK who else can help, but in sort, I am looking for someone who can help me in QA tasks.
Information
Model I am using (Bert, XLNet ...): Bert
The problem arises when using:
The tasks I am working on is:
To reproduce
Steps to reproduce the behavior:
The test fails with error
TypeError: TextInputSequence must be str
Complete failure result:
Expected behavior
for more details check here:
link: https://github.com/uabinf/nlp-group-project-fall-2020-deepbiocomp/blob/cancer_ask/scripts/qa_script/qa_squad_v1.ipynb
The text was updated successfully, but these errors were encountered: