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

AttributeError: module 'torchtext.data' has no attribute 'Field' #198

Open
changzhiy opened this issue Jun 22, 2023 · 2 comments
Open

AttributeError: module 'torchtext.data' has no attribute 'Field' #198

changzhiy opened this issue Jun 22, 2023 · 2 comments

Comments

@changzhiy
Copy link

The expression seems to be deprecated in PyTorch. How can I fix it?

@HanSLY-GISer
Copy link

I also want to know how to solve it.

@fq863390229
Copy link

I get that you may should use 'from torchtext.legacy.data import Field' instead of 'torchtext.data'

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

3 participants