Skip to content

Commit

Permalink
Updating the docs for max_seq_len in QA pipeline (huggingface#17316)
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil authored May 18, 2022
1 parent 60ad734 commit 1c9d1f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformers/pipelines/question_answering.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ def __call__(self, *args, **kwargs):
max_answer_len (`int`, *optional*, defaults to 15):
The maximum length of predicted answers (e.g., only answers with a shorter length are considered).
max_seq_len (`int`, *optional*, defaults to 384):
The maximum length of the total sentence (context + question) after tokenization. The context will be
split in several chunks (using `doc_stride`) if needed.
The maximum length of the total sentence (context + question) in tokens of each chunk passed to the
model. The context will be split in several chunks (using `doc_stride` as overlap) if needed.
max_question_len (`int`, *optional*, defaults to 64):
The maximum length of the question after tokenization. It will be truncated if needed.
handle_impossible_answer (`bool`, *optional*, defaults to `False`):
Expand Down

0 comments on commit 1c9d1f4

Please sign in to comment.