First data preprocessing is realized. After that, since the dataset is not huge, only one layer CNN model is built.
Using from tensorflow.keras.preprocessing.text import Tokenizer, numerical values are assigned to words in dictionary format so that each word has its own word_index.
Each sentence will be converted into a sequence where each word is replaced by its number in the word index using tokenizer.texts_to_sequences(sentences).