transformers
285c6262 - Adding a test to prevent late failure in the Table question answering (#9808)

Commit
5 years ago
Adding a test to prevent late failure in the Table question answering (#9808) pipeline. - If table is empty then the line that contain `answer[0]` will fail. - This PR add a check to prevent `answer[0]`. - Also adds an early check for presence of `table` and `query` to prevent late failure and give better error message. - Adds a few tests to make sure these errors are correctly raised.
Author
Parents
Loading