(from_file=None)
Train the speller
Train the speller
Train the speller
def train_speller(from_file=None):
    """Train the speller"""
    if from_file:
        model = load_model(from_file)
    else:
        model = generate_model(CONFIG.max_input_len, chars=read_top_chars())
    itarative_train(model)
def train_speller ( from_file = None ) : if from_file : model = load_model ( from_file ) else : model = generate_model ( CONFIG . max_input_len , chars = read_top_chars ( ) ) itarative_train ( model )