Пример #1
0
def main(new_word):
    words = tools.read_lines(FORMS_SOURCE, clean_text=False)
    #words=distance.eff_heuristic(new_word,words)
    correct_word = distance.curry_correct(words)
    print(correct_word(new_word))
Пример #2
0
def main(new_word):
    words=tools.read_lines(FORMS_SOURCE,clean_text=False)
    #words=distance.eff_heuristic(new_word,words)
    correct_word=distance.curry_correct(words)
    print(correct_word(new_word))
Пример #3
0
def main_loop():
    full_words = tools.read_lines(FORMS_SOURCE, clean_text=False)
    words = [distance.code_digraphs(word_i) for word_i in full_words]
    correct_word = distance.curry_correct(words, full_words)
    tools.ui_loop(correct_word, get_word)
Пример #4
0
def main_loop():
    full_words=tools.read_lines(FORMS_SOURCE,clean_text=False)
    words=[distance.code_digraphs(word_i) 
            for word_i in full_words]
    correct_word=distance.curry_correct(words,full_words)
    tools.ui_loop(correct_word,get_word)