Exemplo n.º 1
0
Arquivo: lab2.py Projeto: tjacek/WSJN
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))
Exemplo n.º 2
0
Arquivo: lab2.py Projeto: tjacek/WSJN
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))
Exemplo n.º 3
0
Arquivo: lab2.py Projeto: tjacek/WSJN
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)
Exemplo n.º 4
0
Arquivo: lab2.py Projeto: tjacek/WSJN
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)