INNER CODE UNIT · Python

process_markdown_file

DmitryRyumin/ICCV-2023-25-Papers · code/markdown_to_json_parser.py:547

def process_markdown_file(
    markdown_file,
    output_directory,
    counter,
    table,
    success_count,
    no_table_count,
    error_count,
    file_updates,
):
    common_ancestor = Path(
        *Path(markdown_file)
        .resolve()
        .parts[: len(Path(output_directory).resolve().parts)]
    )
    relative_path = Path(
        *Path(markdown_file).resolve().parts[len(common_ancestor.resolve().parts) :]
    )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…