Skip to content

Commit 9dc7825

Browse files
Remove unused variable in example for Q&A (huggingface#10392)
1 parent 894db67 commit 9dc7825

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/source/task_summary.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ Here is an example of question answering using a model and a tokenizer. The proc
240240
... inputs = tokenizer(question, text, add_special_tokens=True, return_tensors="pt")
241241
... input_ids = inputs["input_ids"].tolist()[0]
242242
...
243-
... text_tokens = tokenizer.convert_ids_to_tokens(input_ids)
244243
... outputs = model(**inputs)
245244
... answer_start_scores = outputs.start_logits
246245
... answer_end_scores = outputs.end_logits
@@ -284,7 +283,6 @@ Here is an example of question answering using a model and a tokenizer. The proc
284283
... inputs = tokenizer(question, text, add_special_tokens=True, return_tensors="tf")
285284
... input_ids = inputs["input_ids"].numpy()[0]
286285
...
287-
... text_tokens = tokenizer.convert_ids_to_tokens(input_ids)
288286
... outputs = model(inputs)
289287
... answer_start_scores = outputs.start_logits
290288
... answer_end_scores = outputs.end_logits

0 commit comments

Comments
 (0)