The invention discloses a document-level relation extraction
data synthesis method based on
large model reverse generation, which is characterized in that a
knowledge graph sampling method based on random walk is adopted, sub-graphs with coherent themes are sampled from an external
knowledge graph, and the sampling probability of triples is dynamically adjusted, so that the
knowledge graph sampling efficiency is improved. The method specifically comprises the steps of sampling a triple set from a knowledge graph, dynamically adjusting the sampling probability, performing data enhancement, generating corresponding document data based on the triple set, performing a reflection correction mechanism and the like. Compared with the prior art, the method has the advantages that model training is not needed, the
synthetic data is generated only depending on the reasoning ability of a large
language model, high accuracy and high
recall rate of document-level relation extraction
synthetic data labels are ensured, the credibility of the data is improved, a
solid foundation is provided for subsequent model training, and the method is worthy of popularization and application. The method not only reduces the labor cost, but also solves the problem that it is difficult to obtain enough high-quality
annotation data in the specific fields of education,
medical treatment and the like, and has a good application prospect.