From 10fc8b142f254d00c868cbb828897c2c76ff5189 Mon Sep 17 00:00:00 2001 From: Michael Krabbe Borregaard Date: Wed, 15 Mar 2017 14:57:46 +0100 Subject: [PATCH] Add semicolon after readstring BTW this code is slightly different from the version in the examples folder (e.g in that there is a specification to look in the home folder) --- docs/src/examples/char-rnn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/examples/char-rnn.md b/docs/src/examples/char-rnn.md index 3f874e9d..42cd401a 100644 --- a/docs/src/examples/char-rnn.md +++ b/docs/src/examples/char-rnn.md @@ -20,7 +20,7 @@ getbatches(chars, alphabet) = batches((getseqs(part, alphabet) for part in chunk Because we want the RNN to predict the next letter at each iteration, our target data is simply our input data offset by one. For example, if the input is "The quick brown fox", the target will be "he quick brown fox ". Each letter is one-hot encoded and sequences are batched together to create the training data. ```julia -input = readstring("shakespeare_input.txt") +input = readstring("shakespeare_input.txt"); alphabet = unique(input) N = length(alphabet)