Skip to content

Commit

Permalink
Fix tokenizers training in notebook (huggingface#10110)
Browse files Browse the repository at this point in the history
  • Loading branch information
n1t0 committed Feb 10, 2021
1 parent 85395e4 commit 1fbaa3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/01-training-tokenizers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
"\n",
"# We initialize our trainer, giving him the details about the vocabulary we want to generate\n",
"trainer = BpeTrainer(vocab_size=25000, show_progress=True, initial_alphabet=ByteLevel.alphabet())\n",
"tokenizer.train(trainer, [\"big.txt\"])\n",
"tokenizer.train(files=[\"big.txt\"], trainer=trainer)\n",
"\n",
"print(\"Trained vocab size: {}\".format(tokenizer.get_vocab_size()))"
]
Expand Down

0 comments on commit 1fbaa3c

Please sign in to comment.