From 3015d12bfb8b5d65affe05476ee9fe636c7bba0e Mon Sep 17 00:00:00 2001 From: "Wesley A. Cheng" <15952538+wesleyacheng@users.noreply.github.com> Date: Tue, 29 Mar 2022 09:55:40 -0700 Subject: [PATCH] fix wrong variable name (#16467) --- 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 d6ffb0cf4a..390acd7273 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':