torchtext0.9.0,LanguageModelingDataset does not exist

The model (LanguageModelingDataset) was available in the previous version, but in version 0.9, this function is no longer available. How can it be replaced.

AttributeError: module ‘torchtext.datasets’ has no attribute ‘LanguageModelingDataset’

You could access this class via torchtext.legacy.datasets.LanguageModelingDataset.

Thank you for your help