Data-driven zero-sample relation extraction method based on selective comparison learning
Патент · CN B
Полный текст
The invention discloses a data-driven zero-sample relation extraction method based on selective comparison learning, which comprises the steps of using a pre-trained language model as a basic relation encoder in a training process, expanding an example by using two different prompt templates, inputting the example into the language model to generate an example representation, carrying out prompt optimization and comparison learning on the representation, filling masking positions in the prompt templates by using the prompt optimization to find out the most suitable mark, carrying out comparison learning to find out the corresponding relation of each example, further carrying out relation reasoning, generating an example representation with no relation by using a well-learned relation encoder, constructing a medical knowledge graph based on the extracted relation between entities, carrying out semantic search based on the constructed medical knowledge graph, and obtaining recommended medical encyclopedic knowledge.