The invention discloses an enterprise
relationship extraction method, a device and a storage medium. The method includes: extracting enterprise entity pair sentences, of which relationships exist, touse the same as training sample sentences to establish a sample
library; extracting all training sample sentences, which contain one enterprise entity pair, from the sample
library, carrying out wordsegmentation, mapping each word to a word vector x, and mapping each training sample
sentence to a
sentence vector S; using LSTM (Long Short-
Term Memory) to calculate a first hidden-layer statevector h and a second hidden-layer
state vector h' of the word vector x, obtaining a comprehensive hidden-layer
state vector by splicing, and then obtaining a
feature vector T; substituting the
feature vector T into an average-vector expression to calculate an average vector S; substituting the average vector S and relationship types of the enterprise entity pair into a softmax classification function to calculate a weight a of each training sample
sentence; and extracting sentences containing two enterprise entities, obtaining a
feature vector T through bi-LSTM (Bidirectional Long Short-
term Memory), and inputting the same into a trained RNN model to predict a relationship of the two enterprises. Labor costs are reduced, and the relationship between the two enterpriseentities is more accurately predicted.