From a343b3f185726508fc44a790d16a812ef08a70d6 Mon Sep 17 00:00:00 2001 From: Jordi Villar Date: Wed, 4 Mar 2020 16:59:33 +0100 Subject: [PATCH] Fix nlp minor typo --- 10_nlp.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/10_nlp.ipynb b/10_nlp.ipynb index 4077abf..2945da1 100644 --- a/10_nlp.ipynb +++ b/10_nlp.ipynb @@ -880,7 +880,7 @@ "source": [ "#hide\n", "stream = \"In this chapter, we will go back over the example of classifying movie reviews we studied in chapter 1 and dig deeper under the surface. First we will look at the processing steps necessary to convert text into numbers and how to customize it. By doing this, we'll have another example of the PreProcessor used in the data block API.\\nThen we will study how we build a language model and train it for a while.\"\n", - "tokens = tfm(stream)\n", + "tokens = tkn(stream)\n", "bs,seq_len = 6,15\n", "d_tokens = np.array([tokens[i*seq_len:(i+1)*seq_len] for i in range(bs)])\n", "df = pd.DataFrame(d_tokens)\n",