disambiguate icon indicating copy to clipboard operation
disambiguate copied to clipboard

torchtext.data.Field deprecated

Open jkang1640 opened this issue 3 years ago • 0 comments

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.

jkang1640 avatar Jun 16 '21 14:06 jkang1640