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.data.Field import error #2199

Open
premiitr opened this issue Aug 16, 2023 · 2 comments
Open

Torchtext.data.Field import error #2199

premiitr opened this issue Aug 16, 2023 · 2 comments

Comments

@premiitr
Copy link

premiitr commented Aug 16, 2023

I'm trying to import field module from torchtext 0.15.2 version
But it is throwing "AttributeError: module 'torchtext.data' has no attribute 'Field'" Like this

Can anyone help me with this issue?

Thanks in Advance

@bhavyashahh
Copy link

'Field' was moved to torchtext.legacy since torchtext 0.9.0 release and legacy retired from torchtext==0.12.0 onwards. Refer here https://github.com/pytorch/text/issues/664

@Kousik-Sasmal
Copy link

Kousik-Sasmal commented Aug 20, 2023

@premiitr Field is deprecated. You can check one of my repo for the updated version of torchtext. Link: https://github.com/Kousik-Sasmal/experiment-with-pytorch-torchtext

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