From 70fd132872d08dd0fe33d4731ae19c9b2d737b24 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Sun, 21 Apr 2024 01:24:40 +0900 Subject: [PATCH] Update misc_utils.py occurence -> occurrence --- model_lib/misc_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_lib/misc_utils.py b/model_lib/misc_utils.py index 6ee526b..acc8cc3 100644 --- a/model_lib/misc_utils.py +++ b/model_lib/misc_utils.py @@ -32,7 +32,7 @@ def cosine(A, B): def find_within_text(prompt, parts, tokenizer): """ A function that identifies the indices of tokens of a part of the prompt. - By default we use the first occurence. + By default we use the first occurrence. """ prompt_tokens = tokenizer.encode(prompt) part_tokens = [tokenizer.encode(p)[2:] for p in parts]