keras/src/legacy/preprocessing/text.py/Tokenizer/fit_on_sequences
class Tokenizer:    def fit_on_sequences(self, sequences):
        self.document_count += len(sequences)
        for seq in sequences:
            seq = set(seq)
            for i in seq:
                self.index_docs[i] += 1