"zh_CN/tools/vscode:/vscode.git/clone" did not exist on "df4f05c78a5cc3fd3dc5f9929bf35df414a2fff6"
Improve QA pipeline error handling (#8286)
- The issue is that with previous code we would have the following: ```python qa_pipeline = (...) qa_pipeline(question="Where was he born ?", context="") -> IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1) ``` The goal here is to improve this to actually return a ValueError wherever possible. While at it, I tried to simplify QuestionArgumentHandler's code to make it smaller and more compat while keeping backward compat.
Showing
Please register or sign in to comment