From 3fd0172d1ad950b846c9c1c9de846bb71e13fe50 Mon Sep 17 00:00:00 2001 From: skt-hang <161189693+skt-hang@users.noreply.github.com> Date: Thu, 20 Jun 2024 15:32:58 +0800 Subject: [PATCH] Update machine-translation-and-dataset.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 小标题似乎有些问题,此处并未训练模型 --- chapter_recurrent-modern/machine-translation-and-dataset.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter_recurrent-modern/machine-translation-and-dataset.md b/chapter_recurrent-modern/machine-translation-and-dataset.md index d872f820d..0c00427fb 100644 --- a/chapter_recurrent-modern/machine-translation-and-dataset.md +++ b/chapter_recurrent-modern/machine-translation-and-dataset.md @@ -241,7 +241,7 @@ def build_array_nmt(lines, vocab, num_steps): return array, valid_len ``` -## [**训练模型**] +## [**词表生成**] 最后,我们定义`load_data_nmt`函数来返回数据迭代器, 以及源语言和目标语言的两种词表。