From 61c8499d5e03eec5006eb6e6e8539075e384c95a Mon Sep 17 00:00:00 2001 From: H-Chlor <32020828+HCL-271@users.noreply.github.com> Date: Wed, 17 May 2023 03:56:13 +0300 Subject: [PATCH] Update lab02_Neural_Machine_Translation.ipynb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Проверьте чат на ошибку from torchtext.legacy.datasets import cannot import TranslationDataset, Multi30k Это её фикс. --- .../Lab02_NMT/lab02_Neural_Machine_Translation.ipynb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeworks_advanced/Lab02_NMT/lab02_Neural_Machine_Translation.ipynb b/homeworks_advanced/Lab02_NMT/lab02_Neural_Machine_Translation.ipynb index 57f3baa6..abc50de8 100644 --- a/homeworks_advanced/Lab02_NMT/lab02_Neural_Machine_Translation.ipynb +++ b/homeworks_advanced/Lab02_NMT/lab02_Neural_Machine_Translation.ipynb @@ -44,9 +44,7 @@ "# You might need to install the libraries below. Do it in the desired environment\n", "# if you are working locally.\n", "\n", - "# ! pip install subword-nmt\n", - "# ! pip install nltk\n", - "# ! pip install torchtext" + "# !pip install subword-nmt torchtext==0.6.0 nltk\n" ] }, {