Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
4bbad604
Unverified
Commit
4bbad604
authored
Feb 05, 2021
by
Lysandre Debut
Committed by
GitHub
Feb 05, 2021
Browse files
Clarify QA pipeline output based on character (#10021)
* Clarify QA pipeline output based on character * Style
parent
ad2c4310
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/transformers/pipelines/question_answering.py
src/transformers/pipelines/question_answering.py
+3
-2
No files found.
src/transformers/pipelines/question_answering.py
View file @
4bbad604
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment