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 deprecated #19

Open
jkang1640 opened this issue Jun 16, 2021 · 0 comments
Open

torchtext.data.Field deprecated #19

jkang1640 opened this issue Jun 16, 2021 · 0 comments

Comments

@jkang1640
Copy link

jkang1640 commented Jun 16, 2021

Since the release of v.0.9.0 of torchtext, torchtext.data.Field is deprecated and moved totorchtext.legacy.data.Field(see the list of deprecated classes on their README). This affects most of python scripts in the inputters. For those who use the latest tortchtext, from torchtext.data import FIeld should be from torchtext.legacy.text import Field, otherwise it throws an error. The same goes for the Iterator and Datasets used in the scripts.

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