MCPcopy Create free account
hub / github.com/DataArcTech/ToG / half_stop

Function half_stop

ToG/wiki_func.py:164–167  ·  view source on GitHub ↗
(question, cluster_chain_of_entities, depth, args)

Source from the content-addressed store, hash-verified

162
163
164def half_stop(question, cluster_chain_of_entities, depth, args):
165 print("No new knowledge added during search depth %d, stop searching." % depth)
166 answer = generate_answer(question, cluster_chain_of_entities, args)
167 save_2_jsonl(question, answer, cluster_chain_of_entities, file_name=args.dataset)
168
169
170def generate_answer(question, cluster_chain_of_entities, args):

Callers 2

main_freebase.pyFile · 0.70
main_wiki.pyFile · 0.70

Calls 2

save_2_jsonlFunction · 0.85
generate_answerFunction · 0.70

Tested by

no test coverage detected