keras/src/legacy/preprocessing/text.py/Tokenizer/texts_to_matrix
class Tokenizer:    def texts_to_matrix(self, texts, mode="binary"):
        sequences = self.texts_to_sequences(texts)
        return self.sequences_to_matrix(sequences, mode=mode)