Merge pull request #28 from jrdi/patch-1

Fix nlp minor typo
This commit is contained in:
Jeremy Howard
2020-03-04 11:58:22 -08:00
committed by GitHub

View File

@@ -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",