'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).
# Returns
A list of sequences.'

def texts_to_sequences(self, texts):

    res = []
    for vect in self.texts_to_sequences_generator(texts):
        res.append(vect)
    return res
