The application provides an automatic rearrangement method and device for formula
numbering, and relates to the technical field of
data processing. A document corresponding to a historical version formula and a document corresponding to a current version formula are obtained. A feature index model of the historical version formula is constructed based on the document corresponding to the historical version formula. The historical version formula is taken as a formula
library, the document corresponding to the current version formula is traversed, and based on the feature index model, retrieval is performed in the formula
library, and a matching result of each current version formula is output. In response to the matching result being no matching, a formula comparison
intelligent agent is called to analyze the unpaired current version formula, and an unpaired formula
processing result is output. The matching result of each current version formula and the unpaired formula
processing result are integrated to generate a structured comparison table. The structured comparison table is checked, and after the check is correct, the formula
numbering of the historical version formula is rearranged based on the remaining valid information in the structured comparison table.