Recurrent Neural Network, Text Classification, Sentiment Analysis, Imdb Text Classification, Binary Classification.
encode text into indices. The tensors of indices are 0-padded to the longest sequence in the batch. encoded_text = encoder(text)[:3].numpy() encoded_text Output: for n in range(3): print("Original: ", text[n].numpy()) print("Round-trip: ", " ".join(vocab[encoded_text[n]])) print() Output: Create