(file_path: str)
| 440 | |
| 441 | |
| 442 | def parse_xml(file_path: str) -> List[dict]: |
| 443 | with open(file_path, 'r', encoding='utf-8') as f: |
| 444 | text = f.read() |
| 445 | if count_tokens(text) > DEFAULT_MAX_INPUT_TOKENS: |
| 446 | schema = extract_xml_skeleton_markdown(file_path) |
| 447 | content = [{'schema': schema}] |
| 448 | else: |
| 449 | content = [{'text': text}] |
| 450 | return [{'page_num': 1, 'content': content}] |
| 451 | |
| 452 | |
| 453 | def compress(results: list) -> list[str]: |
nothing calls this directly
no test coverage detected