'Transforms each text in texts in a sequence of integers.
Only top "num_words" most frequent words will be taken into account.
Only words known by the tokenizer will be taken into account.
# Arguments
texts: A list of texts (strings).
# Yields
Yields individual sequences.'

def texts_to_sequences_generator(self, texts):

    num_words = self.num_words
    for text in texts:
        seq = (text if self.char_level else text_to_word_sequence(text, self.filters, self.lower, self.split))
        vect = []
        for w in seq:
            i = self.word_index.get(w)
            if (i is not None):
                if (num_words and (i >= num_words)):
                    continue
                else:
                    vect.append(i)
        (yield vect)
