Skip to content

Commit

Permalink
Update lang-model-dataset.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yanwenlei authored Dec 28, 2018
1 parent a7026fc commit 27b6e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter_recurrent-neural-networks/lang-model-dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ with zipfile.ZipFile('../data/jaychou_lyrics.txt.zip') as zin:
corpus_chars[:40]
```

这个数据集有五万多个字符。为了打印方便,我们把换行符替换成空格,然后仅使用前一万个字符来训练模型。
这个数据集有六万多个字符。为了打印方便,我们把换行符替换成空格,然后仅使用前一万个字符来训练模型。

```{.python .input n=14}
corpus_chars = corpus_chars.replace('\n', ' ').replace('\r', ' ')
Expand Down

0 comments on commit 27b6e2d

Please sign in to comment.