module 'torchtext.data' has no attribute 'Iterator' · Issue ...
github.com › pytorch › textApr 04, 2021 · Yes, torchtext.data indeed have no attribute 'Iterator' in the latest release (https://github.com/pytorch/text/blob/release/0.9/torchtext/data/__init__.py#L9). To make use of the legacy code, you would need to use torchtext.legacy instead of torchtext. You may also find migration tutorial useful. Please note that as stated in the release notes, we may plan to complete remove legacy code in upcoming releases.