Relationship extraction is an important task in natural language processing and knowledge mapping. Traditional entity relationship extraction methods have achieved high accuracy in practical applications. However, when faced with the task of entity relationship extraction that is not easy to obtain large-scale supervision training data sets, traditional methods cannot get good results. In this paper, a few-shot relation extraction method based on multi-level feature metric learning is proposed. This method takes the prototype network as the baseline network to generate a class prototype. Firstly, a multi-level feature extraction module is proposed. This module combines the multi-level features of the text with the multi-level attention mechanism, which can fully extract the features of the text. Secondly, a loss function based on label value and negative sample distance is proposed. This algorithm introduces an evaluation mechanism of negative sample distance on the basis of the prototype network, so that the model can adaptively allocate parameters and improve the clustering ability of small samples. Experiments are conducted on FewRel1.0 which is a small sample relational data set. Experiment results show that compared with other models, our model can improve classification accuracy.
Access to the requested content is limited to institutions that have purchased or subscribe to SPIE eBooks.
You are receiving this notice because your organization may not have SPIE eBooks access.*
*Shibboleth/Open Athens users─please
sign in
to access your institution's subscriptions.
To obtain this item, you may purchase the complete book in print or electronic format on
SPIE.org.
INSTITUTIONAL Select your institution to access the SPIE Digital Library.
PERSONAL Sign in with your SPIE account to access your personal subscriptions or to use specific features such as save to my library, sign up for alerts, save searches, etc.