Chapter 6/sarcasm_swivel.ipynb contains a cell from another NB
STRZGR opened this issue · comments
Matthew Corsmeier commented
The eighth cell in sarcasm_swivel.ipynb appears to be from a different notebook, since it references two variables (training_padded
and testing_padded
) that have not yet been defined.
# Need this block to get it to work with TensorFlow 2.x
import numpy as np
training_sentences = np.array(training_padded)
training_labels = np.array(training_labels)
testing_padded = np.array(testing_padded)
testing_labels = np.array(testing_labels)
Laurence Moroney commented
This is fixed now, thanks!