The invention discloses an intelligent
legal instrument generation method and
system based on a
large model, and relates to the technical field of
natural language processing. According to the method, law related texts are collected through multiple channels and preprocessed, a law
domain knowledge graph is constructed, and after pre-training is conducted through a BERT model, the graph and a document sample are fused for
fine tuning training; a user selects a document type and an input parameter by means of the interactive interface and transmits the document type and the input parameter to the model to generate a first draft of the legal document, and then multi-dimensional evaluation and optimization circulation are carried out until the legal document reaching the standard is output; the method covers the whole process of
data processing,
knowledge graph construction, model training and document generation evaluation, enriches knowledge reserve by using multi-
source data, improves model pertinence by combining pre-training and
fine tuning, and guarantees
document quality through multi-dimensional evaluation. The problems of low
legal instrument writing efficiency, unstable quality and the like are effectively solved, the
legal instrument generation efficiency and quality are improved, and intelligent development of the legal field is promoted.