From abf3cc70640199596cf92ab8f36a85073afe4f04 Mon Sep 17 00:00:00 2001 From: PolarisRisingWar <48322321+PolarisRisingWar@users.noreply.github.com> Date: Mon, 21 Mar 2022 20:10:24 +0800 Subject: [PATCH] Fix a typo (add a coma) (#16291) As mentioned: https://github.com/huggingface/transformers/issues/16277 --- docs/source/task_summary.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/task_summary.mdx b/docs/source/task_summary.mdx index 563cfb7073..f1adf47b86 100644 --- a/docs/source/task_summary.mdx +++ b/docs/source/task_summary.mdx @@ -213,7 +213,7 @@ Here is an example of question answering using a model and a tokenizer. The proc with the weights stored in the checkpoint. 2. Define a text and a few questions. 3. Iterate over the questions and build a sequence from the text and the current question, with the correct - model-specific separators token type ids and attention masks. + model-specific separators, token type ids and attention masks. 4. Pass this sequence through the model. This outputs a range of scores across the entire sequence tokens (question and text), for both the start and end positions. 5. Compute the softmax of the result to get probabilities over the tokens.