Skip to content

运行train.py报错 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lucheng07082221 opened this issue Oct 10, 2024 · 0 comments
Open

运行train.py报错 #2

lucheng07082221 opened this issue Oct 10, 2024 · 0 comments

Comments

@lucheng07082221
Copy link

Traceback (most recent call last):
File "/home/quiana/work/python-toturial/Tokenization/BBPE/train.py", line 11, in
BBPETokenizer.train_tokenizer(data, vocab_size, vocab_outfile=vocab_outfile, merges_outfile=merges_outfile)
File "/home/quiana/work/python-toturial/Tokenization/BBPE/bbpe.py", line 170, in train_tokenizer
most_common_pair = pair_freq.most_common(1)[0][0]
~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant