"ppocr/git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "8985f6c207fa36f52eb562f68afcc26c4dee149c"
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