From 50cd6f81dcff064e14695b8e04c4f5f3843c3add Mon Sep 17 00:00:00 2001 From: "Wesley A. Cheng" <15952538+wesleyacheng@users.noreply.github.com> Date: Mon, 28 Mar 2022 19:57:23 -0700 Subject: [PATCH] fix wrong variable name --- docs/source/preprocessing.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/preprocessing.mdx b/docs/source/preprocessing.mdx index d6ffb0cf4a41..390acd72731d 100644 --- a/docs/source/preprocessing.mdx +++ b/docs/source/preprocessing.mdx @@ -175,7 +175,7 @@ Set the `return_tensors` parameter to either `pt` for PyTorch, or `tf` for Tenso ... "Don't think he knows about second breakfast, Pip.", ... "What about elevensies?", ... ] ->>> encoded_input = tokenizer(batch, padding=True, truncation=True, return_tensors="tf") +>>> encoded_input = tokenizer(batch_sentences, padding=True, truncation=True, return_tensors="tf") >>> print(encoded_input) {'input_ids':