text
text copied to clipboard
How to use my own data?
I copied the code and got this working on my computer, but when I try to change the path to file, and give it something other than the example text, it crashes.
Default (This one always works)
path_to_file = tf.keras.utils.get_file('shakespeare.txt', 'https://storage.googleapis.com/download.tensorflow.org/data/shakespeare.txt')
What I want:
path_to_file = tf.keras.utils.get_file('mytexttxt', 'file:///C:/Users/my_path/mytext.txt')
I am confused, what am I missing? rnn.zip
What's the error? Can it not load the file? parse it? other?
`Traceback (most recent call last):
File "C:\Users\path\python\rnn\fresh\Start.py", line 220, in
Detected at node 'strided_slice' defined at (most recent call last):
File "
Specifically, that error is happening because predicted_logits
isn't at least rank 2 (needs to be 3).
Broadly, this is likely happening because the text your using is problematic. Can you review your input text. Where did you get it? Is it formatted the same? Does Romeo have lines in it?