application_vnd.jupyter.stderr_output_1.png
import numpy as np

import numpy as np # linear algebra

import numpy as np
train_data, test_data = (imdb['train'], imdb['test'])
training_sentences = []
training_labels = []
testing_sentences = []
testing_labels = []
for s, l in train_data:
    training_sentences.append(str(s.numpy()))
    training_labels.append(l.numpy())
for s, l in test_data:
    testing_sentences.append(str(s.numpy()))
    testing_labels.append(l.numpy())
training_labels_final = np.array(training_labels)
testing_labels_final = np.array(testing_labels)