def transform(self, data):
    sequences = self.tokenizer.texts_to_sequences(data)
    return pad_sequences(sequences, maxlen=self.maxlen)
def transform(self, data):
    sequences = self.tokenizer.texts_to_sequences(data)
    return pad_sequences(sequences, maxlen=self.maxlen)