An article error serial number automatic correction method, system, device and storage medium
By using predefined regular expressions and hierarchical relationships for automatic numbering correction, the problem of identifying and correcting various types of numbers in documents is solved, improving document editing efficiency and structural rigor.
CN122242487APending Publication Date: 2026-06-19海看网络科技(山东)股份有限公司
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 海看网络科技(山东)股份有限公司
- Filing Date
- 2026-05-20
- Publication Date
- 2026-06-19
Smart Images

Figure CN122242487A_ABST
Abstract
This invention discloses a method, system, device, and storage medium for automatically correcting erroneous serial numbers in documents, primarily relating to the field of document processing technology. The method includes: reading the document and splitting it into lines based on line breaks, filtering blank lines; matching the prefix of the serial number at the beginning of each line using a regular expression, which can recognize Arabic numerals, Chinese numerals, letters, circled numerals, multilevel numerals, parentheses, and structured serial numbers, and extracting the prefix; parsing the serial number type, using mapping relationships to convert Chinese numerals and circled numerals into sortable values, and multilevel numerals into numeric tuples; distinguishing between first-level and second-level serial numbers based on indentation, type, and adjacency features, and establishing hierarchical relationships; sorting the first-level and second-level serial numbers separately to generate continuous and uniformly typed correct serial numbers; recombining the correct serial numbers and content in their original order, and outputting the corrected document. The beneficial effects of this invention are: it achieves automatic correction of erroneous serial numbers, ensures standardized document serial numbers, and improves document editing efficiency.
Need to check novelty before this filing date? Find Prior Art