The invention relates to the technical field of
artificial intelligence, and discloses an automatic document duplicate checking and
rewriting method and device and a program product, and the method comprises the steps: obtaining a target document, carrying out duplicate checking comparison on the target document according to a
reference document, generating a corresponding
document similarity, and carrying out the matching of terms in the target document according to a user-defined term
library. Proprietary terms in the target document are determined, other contents except the proprietary terms in the target document are rewritten according to the
language model, and a rewritten document is obtained. According to the method, the corresponding
document similarity is generated through automatic duplicate checking comparison, the special terms in the document are protected, then other contents except the special terms in the target document are rewritten according to the
language model, and the two steps of duplicate checking and
rewriting are connected, so that the number of times of repeatedly switching tools by a user is reduced, the labor cost and the knowledge cost are reduced, and the user experience is improved. The process of duplicate checking and
rewriting is shortened, and the efficiency of duplicate checking and rewriting is improved.