When the corpus lenght is over 1e5 uses the sys library and it throw a error.
def estimate_alphabets(self, corpus):
if len(corpus) > 1e5:
print("Error: Too many sequences. Pass the alphabet list as an input. Exiting.")
sys.exit(1)
else:
return(np.unique(np.asarray(self.__flatten(corpus))).tolist())
When the corpus lenght is over 1e5 uses the
sys
library and it throw a error.I think it is easy to solve, just import.