def textfile_to_semi_redundant_sequences(path, seq_maxlen=25, redun_step=3, to_lower_case=False, pre_defined_char_idx=None):
 text = open(path).read()
 if to_lower_case:
  text = text.lower()
 return string_to_semi_redundant_sequences(text, seq_maxlen, redun_step, pre_defined_char_idx)

def textfile_to_semi_redundant_sequences ( path , seq_maxlen = 25 , redun_step = 3 , to_lower_case = False , pre_defined_char_idx = None ) : text = open ( path ) . read ( ) if to_lower_case : text = text . lower ( ) return string_to_semi_redundant_sequences ( text , seq_maxlen , redun_step , pre_defined_char_idx )
vectorize text file .