From 5fa02af25a2bdc009b8d40a49b2fce9ce64c1bb2 Mon Sep 17 00:00:00 2001 From: Daulet Zhanguzin Date: Thu, 7 Nov 2024 13:08:11 -0800 Subject: [PATCH] fix: README example --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ea06a3a..6cf1eb0a 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,7 @@ Load a tokenizer from Huggingface: ```go import "github.com/daulet/tokenizers" -tokenizerPath := "../huggingface-tokenizers/google-bert/bert-base-uncased" -tk, err := tokenizers.LoadTokenizerFromHuggingFace("google-bert/bert-base-uncased", &tokenizerPath, nil) +tk, err := tokenizers.FromPretrained("google-bert/bert-base-uncased") if err != nil { return err }