MCPcopy Create free account
hub / github.com/ResearAI/DeepReviewer-v2 / get_subsection

Function get_subsection

pasa/pasa/utils.py:482–490  ·  view source on GitHub ↗
(sections)

Source from the content-addressed store, hash-verified

480 return search_paper_by_arxiv_id(title_id)
481
482def get_subsection(sections):
483 res = {}
484 for section in sections:
485 if "text" in section and section["text"].strip() != "":
486 res[section["title"].strip()] = section["text"].strip()
487 subsections = get_subsection(section["subsections"])
488 for k, v in subsections.items():
489 res[k] = v
490 return res
491
492def get_1st_section(sections):
493 res = {}

Callers 1

get_1st_sectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected