Clarify QA pipeline output based on character (#10021)

* Clarify QA pipeline output based on character

* Style
This commit is contained in:
Lysandre Debut 2021-02-05 11:40:30 +01:00 committed by GitHub
parent ad2c431097
commit 4bbad604eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,8 +196,9 @@ class QuestionAnsweringPipeline(Pipeline):
A :obj:`dict` or a list of :obj:`dict`: Each result comes as a dictionary with the following keys:
- **score** (:obj:`float`) -- The probability associated to the answer.
- **start** (:obj:`int`) -- The start index of the answer (in the tokenized version of the input).
- **end** (:obj:`int`) -- The end index of the answer (in the tokenized version of the input).
- **start** (:obj:`int`) -- The character start index of the answer (in the tokenized version of the
input).
- **end** (:obj:`int`) -- The character end index of the answer (in the tokenized version of the input).
- **answer** (:obj:`str`) -- The answer to the question.
"""
# Set defaults values