Recurrent Neural Network, Text Classification, Sentiment Analysis, Imdb Text Classification, Binary Classification.
element_spec=(TensorSpec(shape=(), dtype=tf.string, name=None), TensorSpec(shape=(), dtype=tf.int64, name=None))> Take one train_dataset and view the text and label for text, label in train_dataset.take(1): print('Text: ', text.numpy()) print('\nLabel: ', label.numpy()) pass Output: Create batches