agnews_train, agnews_test = torchtext.datasets.text_classification.DATASETS["AG_NEWS"](root="./datasets")
上記の行を実行した後、属性エラーが発生します。
AttributeError トレースバック (最新の呼び出しが最後) ----> 1 agnews_train, agnews_test = torchtext.datasets.text_classification.DATASETS"AG_NEWS"
AttributeError: モジュール 'torchtext.datasets' には属性 'text_classification' がありません