mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-24 09:09:21 +00:00
Python - Update examples to use new models API
This commit is contained in:
@ -41,8 +41,8 @@ def tokenize(sentence):
|
||||
|
||||
|
||||
# Create a Tokenizer using a BPE model
|
||||
bpe = models.BPE.from_files(args.vocab, args.merges)
|
||||
tokenizer = Tokenizer(models.BPE.from_files(args.vocab, args.merges))
|
||||
bpe = models.BPE(args.vocab, args.merges)
|
||||
tokenizer = Tokenizer(bpe)
|
||||
|
||||
# Test the good custom classes
|
||||
good_custom = GoodCustom()
|
||||
|
Reference in New Issue
Block a user