From 9d99ae9f9fefa0d2ef1c124e5cec860a789c7da9 Mon Sep 17 00:00:00 2001 From: Ian Beauregard Date: Mon, 19 Oct 2020 12:38:17 -0400 Subject: [PATCH] Correct small coding typo --- 16_nlp_with_rnns_and_attention.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/16_nlp_with_rnns_and_attention.ipynb b/16_nlp_with_rnns_and_attention.ipynb index 328e421..7944feb 100644 --- a/16_nlp_with_rnns_and_attention.ipynb +++ b/16_nlp_with_rnns_and_attention.ipynb @@ -1383,7 +1383,7 @@ "outputs": [], "source": [ "def string_to_ids(s, chars=POSSIBLE_CHARS):\n", - " return [POSSIBLE_CHARS.index(c) for c in s]" + " return [chars.index(c) for c in s]" ] }, {