Entity relationship joint extraction method, device, computer terminal and storage medium
A technology of entity relationship and relationship, applied in the direction of calculation, instrument, biological neural network model, etc., can solve the problems of large amount of calculation, improvement of accuracy rate of triplet extraction, and inability to fully integrate, so as to improve accuracy rate and avoid wrong transmission and redundant entities, improving the effect of features
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] figure 1 It is a schematic flowchart of the entity relationship joint extraction method of the present embodiment, and the method includes the following steps:
[0058] In step S100, a text tensor is obtained based on the text data.
[0059] In this embodiment, the text data of "Zhang San was born in Chengdu." is used as an example for description. After the above text is input, the text data will be cleaned first, and the unnecessary text data will be deleted. Based on each character, the A feature vector representing the character to be processed can be obtained. According to the number of extracted features, the dimension of the vector is also different.
[0060] After inputting the text feature model, a text tensor can be obtained. For example, using bert-base-chinese to extract the input text feature, a 768-dimensional feature vector can be extracted. The above 9 characters (including the period) are spliced in order. These vectors, then is a 9*768 tensor matri...
Embodiment 2
[0092] The present application also provides an entity relationship joint extraction device, such as Figure 5 shown, including:
[0093] a pre-extraction module 10 for obtaining text tensors based on text data;
[0094] The segmentation module 20 is used to obtain the head feature tensor and the tail feature tensor of the text according to the text tensor;
[0095] A fusion module 30, configured to perform feature fusion on the head feature tensor and the transposed tail feature tensor to obtain a fusion tensor;
[0096] A scoring module 40 is used to input the fusion tensor into a convolutional neural network to obtain a scoring tensor;
[0097] The extraction module 50 is configured to input the scoring tensor into the prediction model, obtain the probability distribution data of each element in the scoring tensor in the entity and relation label space, and output the extraction result according to the probability distribution data.
[0098] The present application furth...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com