MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / split_criteria

Function split_criteria

bmtools/tools/meta_analysis/api.py:409–414  ·  view source on GitHub ↗

split the screening requirements in the criteria of the literatures into a series of simple yes/no problems, and return the path of the splitted questions.

( criteria:str )

Source from the content-addressed store, hash-verified

407
408 @tool.get("/split_criteria")
409 def split_criteria( criteria:str ):
410 """split the screening requirements in the criteria of the literatures into a series of simple yes/no problems, and return the path of the splitted questions. """
411 ques = split_question(criteria)
412 np.save('split_ques_'+criteria.replace(' ', '_')[:50]+'.npy', ques)
413 js = {'question number': len(ques), 'question_path': 'split_ques_'+criteria.replace(' ', '_')[:50]+'.npy'}
414 return js
415
416 @tool.get("/literature_filter")
417 def literature_filter( concat_path:str ):

Callers

nothing calls this directly

Calls 1

split_questionFunction · 0.85

Tested by

no test coverage detected