"notebooks/Comparing-TF-and-PT-models.ipynb" did not exist on "e6646751acca380e81c5fbb0cdcc4d413063333a"
  1. 04 Nov, 2020 1 commit
    • Nicolas Patry's avatar
      Improve QA pipeline error handling (#8286) · 7342d9a5
      Nicolas Patry authored
      - 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.
      7342d9a5
  2. 23 Oct, 2020 1 commit