torchcell.literature.ocr_artifact
- ocr_artifact(artifact_dir: str | Path, **kwargs: Any) list[Path][source]
OCR every PDF in an artifact directory:
paper.pdfand eachsi/si*.pdf.The SI PDFs run in natural order (
si2beforesi10). A directory with nopaper.pdfraisesMissingPaperPdfErrorbefore any OCR: every artifact is captured with its article aspaper.pdf(ZoteroLibrary.download_artifact), so its absence means a broken capture, not an SI-only paper.Returns the list of markdown paths produced (
paper.md,si/si1.md,si/si2.md…).