A document conversion method, apparatus, device and medium
By combining an OCR engine and the BioBERT model with a medical terminology database for context-aware error correction, the problem of character errors and semantic integrity when converting PDF documents to Markdown using OCR is solved, achieving efficient and accurate document conversion.
Patent Information
- Application Number
- CN202610456315.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-08
- Publication Date
- 2026-07-10
AI Technical Summary
In existing technologies, when OCR recognizes PDF documents and converts them to Markdown format, there are problems such as character recognition errors, formatting errors, and difficulty in preserving semantic integrity. This is especially true in medical literature, where the cleaning algorithm is unstable.
An OCR engine is used to scan the document, recognize characters and calculate confidence scores. Context-aware error correction is performed using a medical terminology database and the BioBERT model. Error words are replaced using edit distance and semantic fit scores, and a document structure tree is constructed to generate a Markdown document.
It effectively reduces the rate of accidental deletion, preserves the semantic integrity of documents, improves processing efficiency and accuracy, and adapts to documents with different layout styles.
Smart Images

Figure CN122366356A_ABST
