The invention discloses an automatic document generation method and
system. The method comprises the following steps: acquiring a
historical document, and performing
named entity identification on a text part of the
historical document by adopting a
deep learning method to obtain a document text template; matching the head and the
tail of the
historical document by adopting a
regular expression toobtain a document head and
tail template; and combining the
document body template and the document head-
tail template into a document template, and correspondingly filling the
document body templateand the document head-tail template with to-be-filled document element information to generate a document. By adopting the method and the
system, the document template is generated on the basis of
deep learning combined with rules, the element rules of the template are learned by a
machine, the document template is automatically generated, the problems of difficulty in exhaustion of a traditionaltemplate and static inflexibility of the template can be effectively avoided, the operation process is simplified, the document compilation time is shortened, and the document generation efficiency can be effectively improved.