def textfile_to_semi_redundant_sequences(path, seq_maxlen=25, redun_step=3,
                                         to_lower_case=False):
    text = open(path).read()
    if to_lower_case:
        text = text.lower()
    return string_to_semi_redundant_sequences(text, seq_maxlen, redun_step)
Vectorize Text file
dataset/ETHPy150Open tflearn/tflearn/tflearn/data_utils.py/textfile_to_semi_redundant_sequences