(sections)
| 480 | return search_paper_by_arxiv_id(title_id) |
| 481 | |
| 482 | def 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 | |
| 492 | def get_1st_section(sections): |
| 493 | res = {} |