0e2a7f6d85a341959eba41d65019b2566084b406,inference.py,,,#,227

Before Change


        if questions:

            // Run inference
            answers_list = inference_helper(questions)

            // Process answers
            for answers in answers_list:
                answers = detokenize(answers)
                answers = replace_in_answers(answers, "answers")
                answers_score = score_answers(answers, "answers")

                best_index, best_score = get_best_score(answers_score)

                print(answers[best_index])
        sys.exit()

    // Interactive mode

After Change


    // QAs
    while True:
        question = input("\n> ")
        answers = process_questions(question)[0]
        if answers is None:
            print(colorama.Fore.RED + "! Question can"t be empty")
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: daniel-kukiela/nmt-chatbot
Commit Name: 0e2a7f6d85a341959eba41d65019b2566084b406
Time: 2017-12-03
Author: daniel@kukiela.pl
File Name: inference.py
Class Name:
Method Name:


Project Name: daniel-kukiela/nmt-chatbot
Commit Name: 0e2a7f6d85a341959eba41d65019b2566084b406
Time: 2017-12-03
Author: daniel@kukiela.pl
File Name: inference.py
Class Name:
Method Name: inference_internal


Project Name: daniel-kukiela/nmt-chatbot
Commit Name: 0e2a7f6d85a341959eba41d65019b2566084b406
Time: 2017-12-03
Author: daniel@kukiela.pl
File Name: inference.py
Class Name:
Method Name: inference