MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / main

Function main

scripts/run_pipeline.py:32–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def main() -> None:
33 args = parser().parse_args()
34 scripts_dir = Path(__file__).resolve().parent
35 workdir = Path(args.workdir).expanduser().resolve()
36 workdir.mkdir(parents=True, exist_ok=True)
37
38 resolve_json = workdir / f"{args.prefix}_resolve.json"
39 metadata_json = workdir / f"{args.prefix}_metadata.json"
40 fetch_json = workdir / f"{args.prefix}_fetch.json"
41 source_manifest_json = workdir / f"{args.prefix}_source_manifest.json"
42 raw_sections_jsonl = workdir / f"{args.prefix}_raw_sections.jsonl"
43 full_text_md = workdir / f"{args.prefix}_full_text.md"
44 evidence_json = workdir / f"{args.prefix}_evidence.json"
45 assets_json = workdir / f"{args.prefix}_assets.json"
46 figures_json = workdir / f"{args.prefix}_figures.json"
47 figure_decisions_json = workdir / f"{args.prefix}_figure_table_decisions.json"
48 bundle_json = workdir / f"{args.prefix}_bundle.json"
49 py = sys.executable
50 run_step(
51 [
52 py,
53 str(scripts_dir / "resolve_paper.py"),
54 "--input",
55 args.input,
56 "--output",
57 str(resolve_json),
58 ]
59 )
60 run_step(
61 [
62 py,
63 str(scripts_dir / "collect_metadata.py"),
64 "--input",
65 args.input,
66 "--output",
67 str(metadata_json),
68 ]
69 )
70 run_step(
71 [
72 py,
73 str(scripts_dir / "fetch_pdf.py"),
74 "--input",
75 args.input,
76 "--output",
77 str(fetch_json),
78 ]
79 )
80 run_step(
81 [
82 py,
83 str(scripts_dir / "extract_source_text.py"),
84 "--input",
85 str(fetch_json),
86 "--output",
87 str(source_manifest_json),
88 "--raw-sections-output",
89 str(raw_sections_jsonl),

Callers 1

run_pipeline.pyFile · 0.70

Calls 2

run_stepFunction · 0.85
parserFunction · 0.70

Tested by

no test coverage detected