From c5a17393fcae5f617e1a67849a070aa93c20dd4e Mon Sep 17 00:00:00 2001 From: rasbt Date: Fri, 5 Apr 2024 07:26:42 -0500 Subject: [PATCH] variable renaming for clarity --- ch05/01_main-chapter-code/ch05.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch05/01_main-chapter-code/ch05.ipynb b/ch05/01_main-chapter-code/ch05.ipynb index 61ea3ca..3f9bb9e 100644 --- a/ch05/01_main-chapter-code/ch05.ipynb +++ b/ch05/01_main-chapter-code/ch05.ipynb @@ -873,10 +873,10 @@ } ], "source": [ - "total_char = len(text_data)\n", + "total_characters = len(text_data)\n", "total_tokens = len(tokenizer.encode(text_data))\n", "\n", - "print(\"Characters:\", total_char)\n", + "print(\"Characters:\", total_characters)\n", "print(\"Tokens:\", total_tokens)" ] },