Entity relation joint extraction method and device, computer terminal and storage medium
A technology of entity relationship and relationship, applied in computing, instruments, biological neural network models, etc., can solve problems such as large amount of calculation, insufficient integration, and improvement of triplet extraction accuracy, so as to improve accuracy, improve features, Avoiding the effects of mispassing and redundant entities
- 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 flow chart of the entity-relationship joint extraction method in this 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, take the text data of "Zhang San was born in Chengdu." A feature vector representing the character to be processed can be obtained, and the dimension of the vector is different according to the number of extracted features.
[0060] After entering the text feature model, you can get the text tensor. For example, if you use bert-base-chinese to extract the input text features, you can extract a 768-dimensional feature vector. The above 9 characters (including periods) are spliced in order. These vectors, then Is a 9*768 tensor matrix, that is, a text tensor.
[0061] Step S200, according to the text tensor, obtain the head feature tensor and tail feature tensor of the text;
[0062] Copy two copies of the text t...
Embodiment 2
[0092] The present application also provides an entity-relationship joint extraction device, such as Figure 5 shown, including:
[0093] Pre-extraction module 10, for obtaining text tensor 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, configured to input the fusion tensor into the 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 a...
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