From efbd443130ad0e4568e3e6a521ff2bb3b4147f18 Mon Sep 17 00:00:00 2001 From: your_github_username Date: Sun, 5 May 2024 13:28:55 -0700 Subject: [PATCH] Fix replaced text with context in question_answering.ipynb --- transformers_doc/en/tensorflow/question_answering.ipynb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/transformers_doc/en/tensorflow/question_answering.ipynb b/transformers_doc/en/tensorflow/question_answering.ipynb index 9e8302d0..9977b1fd 100644 --- a/transformers_doc/en/tensorflow/question_answering.ipynb +++ b/transformers_doc/en/tensorflow/question_answering.ipynb @@ -585,7 +585,7 @@ "from transformers import AutoTokenizer\n", "\n", "tokenizer = AutoTokenizer.from_pretrained(\"my_awesome_qa_model\")\n", - "inputs = tokenizer(question, text, return_tensors=\"tf\")" + "inputs = tokenizer(question, context, return_tensors=\"tf\")" ] }, { @@ -653,7 +653,11 @@ ] } ], - "metadata": {}, + "metadata": { + "language_info": { + "name": "python" + } + }, "nbformat": 4, "nbformat_minor": 4 }