Skip to content
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

Torchtext undefined module when using gpt2bpe tokenizer #4013

Open
jhudsy opened this issue Jun 6, 2024 · 0 comments
Open

Torchtext undefined module when using gpt2bpe tokenizer #4013

jhudsy opened this issue Jun 6, 2024 · 0 comments

Comments

@jhudsy
Copy link

jhudsy commented Jun 6, 2024

When trying to use the gpt2bpe tokenizer, I get an error that "module torchtext has no attribute util".

Fixed by adding

import torchtext.utils
import torchtext.transforms

to ludwig/utils/tokenizers.py

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