The invention provides a relation extraction model construction method and
system based on
semantic enhancement and knowledge
distillation, relates to the technical field of relation extraction, and aims to solve the problem that in the prior art, when continuous learning is processed, a model is often difficult to keep memorizing an old relation when a new relation is learned, and forgetting is caused. Model
overfitting is easily caused by excessive dependence on a small amount of data, so that a new relationship cannot be effectively generalized. The method comprises the steps of obtaining a relationship prototype of a training sample and a typical sample, performing
semantic enhancement on the relationship prototype to obtain an expanded enhanced
data set and an enhanced memory set, and performing
feature extraction, relationship classification prediction and
relationship extraction based on a student model and a multi-teacher model. According to the method, the
overfitting problem caused by scarcity of
small sample data is effectively relieved through a
semantic enhancement technology, old relation forgetting caused by new relation learning in the continuous learning process is reduced through a multi-teacher knowledge
distillation method, and the classification accuracy and generalization ability of the model facing different relations are improved.