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
1c9d1f4c
Unverified
Commit
1c9d1f4c
authored
May 18, 2022
by
Nicolas Patry
Committed by
GitHub
May 18, 2022
Browse files
Updating the docs for `max_seq_len` in QA pipeline (#17316)
parent
60ad7344
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/pipelines/question_answering.py
src/transformers/pipelines/question_answering.py
+2
-2
No files found.
src/transformers/pipelines/question_answering.py
View file @
1c9d1f4c
...
@@ -228,8 +228,8 @@ class QuestionAnsweringPipeline(ChunkPipeline):
...
@@ -228,8 +228,8 @@ class QuestionAnsweringPipeline(ChunkPipeline):
max_answer_len (`int`, *optional*, defaults to 15):
max_answer_len (`int`, *optional*, defaults to 15):
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).
max_seq_len (`int`, *optional*, defaults to 384):
max_seq_len (`int`, *optional*, defaults to 384):
The maximum length of the total sentence (context + question)
after
token
ization. The context will b
e
The maximum length of the total sentence (context + question)
in
token
s of each chunk passed to th
e
split in several chunks (using `doc_stride`) if needed.
model. The context will be
split in several chunks (using `doc_stride`
as overlap
) if needed.
max_question_len (`int`, *optional*, defaults to 64):
max_question_len (`int`, *optional*, defaults to 64):
The maximum length of the question after tokenization. It will be truncated if needed.
The maximum length of the question after tokenization. It will be truncated if needed.
handle_impossible_answer (`bool`, *optional*, defaults to `False`):
handle_impossible_answer (`bool`, *optional*, defaults to `False`):
...
...
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