0e2a7f6d85a341959eba41d65019b2566084b406,inference.py,,inference,#Any#Any#,184
Before Change
// Main inference function
def inference(question, include_blacklisted = True):
answers = inference_helper(tokenize(question))[0]
answers = detokenize(answers)
answers = replace_in_answers(answers, "answers")
answers_score = score_answers(answers, "answers")
After Change
def inference(questions, include_blacklisted = True):
// Process questions
answers_list = process_questions(questions, include_blacklisted)
// Return (one or more?)
if len(answers_list) == 1:
return answers_list[0]
else:
return answers_list
// Internal inference function (for direct call)
def inference_internal(questions):
// Process questions and return
return process_questions(questions)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: inference
Project Name: gooofy/zamia-speech
Commit Name: 9f376975884e7a0d7a553dcdfa1ab54b66ddbb1f
Time: 2018-12-10
Author: guenter@zamia.org
File Name: speech_editor.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: