first_answerer.remove_generalized_tasks() first_answerer.set_united_results() simple_results = [] for united_result in first_answerer.united_results: tasks = united_result[0][0] result_tasks = [] for task in tasks: aspects = first_answerer.graph.node[task]['aspects'] task_noun = task.split('_')[0] task_verb = task.split('_')[2] if len(aspects) > 2: if not noun in task_noun: if not verb in task_noun: if not verb in task_verb: if not noun in task_verb: if not task_noun in verb: result_tasks.append(task) if not result_tasks in simple_results: if result_tasks: simple_results.append(result_tasks) first_answerer.simple_results = simple_results printer = AnswererPrinter(answerer=first_answerer, query=query) pm = PathMover() pm.go_or_create_and_go_to('results') pm.go_or_create_and_go_to(query) printer.output(method_name='first') pm.go_up() pm.go_up()
answerer.remove_generalized_tasks() print('set_task_scores') answerer.set_united_results() simple_results = [] for united_result in answerer.united_results: tasks = united_result[0][0] result_tasks = [] for task in tasks: aspects = answerer.graph.node[task]['aspects'] task_noun = task.split('_')[0] task_verb = task.split('_')[2] if len(aspects) > 2: if not noun in task_noun: if not verb in task_noun: if not verb in task_verb: if not noun in task_verb: if not task_noun in verb: result_tasks.append(task) if not result_tasks in simple_results: if result_tasks: simple_results.append(result_tasks) answerer.simple_results = simple_results printer = AnswererPrinter(answerer=answerer, query=query) pm.go_or_create_and_go_to('results') pm.go_or_create_and_go_to(query) printer.output(method_name='zero') pm.go_up() pm.go_up()
answerer.remove_generalized_tasks() print("set_task_scores") answerer.set_united_results() simple_results = [] for united_result in answerer.united_results: tasks = united_result[0][0] result_tasks = [] for task in tasks: aspects = answerer.graph.node[task]["aspects"] task_noun = task.split("_")[0] task_verb = task.split("_")[2] if len(aspects) > 2: if not noun in task_noun: if not verb in task_noun: if not verb in task_verb: if not noun in task_verb: if not task_noun in verb: result_tasks.append(task) if not result_tasks in simple_results: if result_tasks: simple_results.append(result_tasks) answerer.simple_results = simple_results printer = AnswererPrinter(answerer=answerer, query=query) pm.go_or_create_and_go_to("results") pm.go_or_create_and_go_to(query) printer.output(method_name="zero") pm.go_up() pm.go_up()