-
Notifications
You must be signed in to change notification settings - Fork 30.9k
Fix QA sample #16648
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 QA sample #16648
Conversation
|
I would like to have a feedback to see if this is in good direction. @sgugger |
|
cc @vumichien and @bhadreshpsavani to keep them updated |
|
The documentation is not available anymore as the PR was closed or merged. |
src/transformers/utils/doc.py
Outdated
| >>> target_start_index, target_end_index = torch.tensor([{qa_target_start_index}]), torch.tensor( | ||
| ... [{qa_target_end_index}] | ||
| ... ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be on two separate lines since there is formatting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
I should do the same for |
|
I also changed Ran locally for Ready for @sgugger to give a final look :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
|
Could you pull the latest change into the master/main branch of your local clone, rebase your working branch for this sprint, and check if the QA doc example can now pass the doctest, please? Thanks a lot! |
What does this PR do?
Try to address the issue about
PT_QUESTION_ANSWERING_SAMPLEdiscussed in the following 2 comments:#16523 (comment)
#16523 (comment)