From TorchText 0.9.0
Release Notes
torchtext.data.Field
->torchtext.legacy.data.Field
This means, all features are still available, but withintorchtext.legacy
instead oftorchtext
.
torchtext.data.Field
has been moved to torchtext.legacy.data.Field
And the imports would change this way:
from torchtext.legacy import data