Engineering knowledge type matching method and device based on dependency syntax, storage medium and product
Identifying engineering knowledge types through dependency syntax and BERT-BiLSTM network, and combining with BiLSTM-CRF model for named entity recognition, solves the problem of engineering knowledge processing in complex product design, achieves accurate identification and formatting of engineering knowledge, and improves design accuracy .
Patent Information
- Application Number
- CN202410793290.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-11
AI Technical Summary
In complex product design, existing technologies are difficult to effectively process and apply engineering knowledge, resulting in a lack of data in the early stages of product design and difficulty in building high-precision agent models.
The engineering knowledge type matching method based on dependency syntax is used to identify knowledge types through the BERT-BiLSTM network, and combined with the BiLSTM-CRF model of dependency syntax information for named entity recognition, the engineering knowledge is matched to the corresponding template, and the formatted project is obtained. Knowledge.
It achieves accurate identification and formatting of engineering knowledge, improves the accuracy of engineering knowledge extraction, reduces the amount of calculation, and simplifies the information processing of engineering knowledge.
Smart Images

Figure CN118761415A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of engineering knowledge extraction, and in particular to a method, device, storage medium and product for engineering knowledge type matching based on dependency syntax. Background Art
[0002] In recent years, the application of optimization design in complex product design has been increasing. Complex products usually have complex structures, intensive technologies, and long development cycles. Most engineering designs require a large number of experiments and / or computer simulations to evaluate design solutions. A single computer simulation of a complex product may take hours, days, or even months to complete. One of the effective ways to solve this problem is to build a proxy model instead of computer simulation, and then apply optimization techniques to obtain the best design solution. Due to its low computational cost, surrogate models have been used for tasks such as optimization, design space exploration, and sensitivity analysis. However, due to the time-consuming / expensive nature of computer simulation, there is often a lack of data and less available data in the early stages of product design, which makes it very difficult to build a high-precision proxy model. In the engineering field, designers have accumulated a certain amount of engineering knowledge, and integrating engineering knowledge into the proxy model is an important way to improve its accuracy. Therefore, in the process of complex product design, not only is the accuracy of small sample data high, but engineering knowledge is also an important part of the design process. The information extraction of engineering knowledge has become a hot issue of concern in academia and industry. However, in existing research, scholars have different understandings of knowledge, and knowledge has a strong theoretical basis and is often represented in the form of design formulas. Some of it comes from expert experience, which makes engineering knowledge difficult to process and apply.
[0003] Therefore, based on the above problems, there is an urgent need to provide an engineering knowledge extraction and matching method to realize named entity recognition of engineering knowledge, match the extracted entities to the corresponding templates based on the engineering knowledge type, and obtain formatted engineering knowledge. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device, storage medium and product for engineering knowledge type matching based on dependency syntax, which can realize accurate recognition of named entities of engineering knowledge.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] A method for matching engineering knowledge types based on dependency syntax, the method comprising:
[0007] The trigger word method is used to locate engineering knowledge in the matching documents to obtain a set of engineering knowledge sentences;
[0008] According to the engineering knowledge sentence set, the BERT-BiLSTM network is used to obtain the knowledge types in the engineering knowledge sentence set; the knowledge types include: attribute knowledge, monotonous knowledge, shape knowledge and formula knowledge; the BERT-BiLSTM network includes: BERT network and bidirectional long short-term memory network;
[0009] Based on the engineering knowledge sentence set with determined knowledge types, the BiLSTM-CRF model combined with dependency syntactic information is used to identify named entities of engineering knowledge.
[0010] The named entities of engineering knowledge are matched to the templates corresponding to the knowledge types to obtain formatted engineering knowledge.
[0011] Optionally, a trigger word method is used to locate engineering knowledge in the matching documents to obtain an engineering knowledge sentence set, which specifically includes:
[0012] Use the zipfile module in Python to obtain the content of the document to be matched;
[0013] An XML parser is used to obtain the XML structure in the content of the document to be matched;
[0014] According to the XML structure in the content of the document to be matched, XML technology is used to identify the root node, obtain the document elements, and perform format conversion to form a unified representation form of the document content;
[0015] According to the documents with unified representation form, the trigger word method is used to locate engineering knowledge.
[0016] Optionally, the recognition process of the BERT-BiLSTM network is:
[0017] Perform word segmentation preprocessing on the engineering knowledge sentence set based on the LTP Chinese word segmentation tool;
[0018] The text after word segmentation preprocessing is processed using the BERT network to obtain a real number matrix of classification information;
[0019] According to the real number matrix of the classification information, a bidirectional long short-term memory network is used to obtain a bidirectional LSTM encoding splicing result; the bidirectional LSTM encoding splicing result is used as a feature vector;
[0020] According to the feature vector obtained by the bidirectional long short-term memory network, the convolution layer is used to extract the feature vector;
[0021] According to the feature vector obtained by the bidirectional long short-term memory network and the feature vector extracted by the convolution layer, the Softmax function is used for classification to obtain the result of knowledge type.
[0022] Optionally, the objective function y(θ) of the BERT-BiLSTM network is:
[0023]
[0024] Among them, N is the number of samples; M is the number of labels; y ic If the knowledge type of sample i is c, it takes 1, otherwise it takes 0; p ic is the probability that the predicted sample i belongs to knowledge type c.
[0025] Optionally, the recognition process of the BiLSTM-CRF model combined with dependency syntactic information is:
[0026] Use multi-layer perception mechanism to fuse dependent parent node information;
[0027] Use the weighted summation of neighbor nodes to fuse the dependent child node information;
[0028] Use the attention mechanism to combine the dependent parent node information and the dependent child node information;
[0029] The combined information dimension is mapped to the number of named entity tags through a fully connected layer;
[0030] According to the number of named entity tags, CRF is used to learn the dependencies between named entity tags, and the Viterbi algorithm is used to obtain the named entity tag sequence;
[0031] The named entities of engineering knowledge are obtained according to the named entity label sequence.
[0032] A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the engineering knowledge type matching method based on dependency syntax.
[0033] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements a method for matching engineering knowledge types based on dependency syntax.
[0034] A computer program product includes a computer program, which implements the engineering knowledge type matching method based on dependency syntax when executed by a processor.
[0035] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0036] The invention provides a method, device, storage medium and product for matching engineering knowledge types based on dependency syntax. The method uses trigger words to locate engineering knowledge in documents and stores sentences in a set of engineering knowledge sentences, i.e., trigger words are used to quickly locate engineering knowledge and exclude irrelevant sentences, so that the amount of system calculation is effectively reduced. In the stage of identifying engineering knowledge, the knowledge type in the set of engineering knowledge sentences is identified based on the BERT-BiLSTM technology. In the stage of extracting engineering knowledge information, the dependency syntax information is integrated into the BiLSTM model to realize named entity recognition of engineering knowledge, and the extracted entities are matched to corresponding templates based on the engineering knowledge type to obtain formatted engineering knowledge. The invention uses dependency syntax as the basic technology for information extraction, integrates named entity recognition and relationship extraction, and allows the model to understand the syntactic relationship between words while understanding the context, thereby improving the accuracy of engineering knowledge extraction. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A schematic diagram of a flow chart of a method for matching engineering knowledge types based on dependency syntax provided in Example 1 of the present invention;
[0039] Figure 2 A schematic diagram of the overall process of an engineering knowledge type matching method based on dependency syntax provided in Example 1 of the present invention;
[0040] Figure 3 A schematic diagram of the technical route for unified representation of document content. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] The purpose of the present invention is to provide a method, device, storage medium and product for engineering knowledge type matching based on dependency syntax, which can realize accurate recognition of named entities of engineering knowledge.
[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0044] Example 1
[0045] Engineering knowledge is defined as the understanding of the mapping relationship between design variables and target performance formed by design experts based on years of design experience, and is divided into four types: attribute knowledge, monotonous knowledge, shape knowledge, and formula knowledge.
[0046] 1) Attribute-based knowledge
[0047] This level of knowledge mainly describes product design variables and performance indicators, that is, the basic properties between input parameters and output parameters, including whether the parameter relationship is continuous, the domain, the range of values, etc. This type of knowledge is mainly used to limit the range of variables.
[0048] 2) Monotonous knowledge
[0049] This level of knowledge mainly describes the design variables and performance indicators of the product, that is, the positive and negative correlation between the input parameters and the output parameters: including whether the parameters are positively correlated or negatively correlated.
[0050] 3) Shape-based knowledge
[0051] This level of knowledge mainly describes the design variables and performance indicators of the product, that is, the shape relationship between the input parameters and the output parameters, or the trend relationship, mainly the general trend shape between a certain input parameter and a certain output parameter, such as L-shaped or bimodal, etc. This type of knowledge is the same as the monotonic type of knowledge, which is the type of engineering knowledge commonly obtained in engineering cases. It is more of the cognitive experience of experts and is often very subjective.
[0052] 4) Formula-based knowledge
[0053] This type of knowledge mainly describes the design variables and performance indicators of the product, that is, the accurate formula relationship between input parameters and output parameters, such as the specific functional expression formula of the cross-sectional area of the aircraft and the resistance it encounters during flight.
[0054] like Figure 1 and Figure 2 As shown, the present invention provides an engineering knowledge type matching method based on dependency syntax, the method comprising:
[0055] S101, using a trigger word method to locate engineering knowledge in the matching document to obtain an engineering knowledge sentence set;
[0056] Most of the internal resources of engineering knowledge are stored in DOCX format. XML is the storage format of DOCX. DOCX file is an XML-based file format. It is actually a ZIP package containing multiple XML files and other resources. These XML files include the text content, style, settings and other information of the document.
[0057] Therefore, if Figure 3 As shown, S101 specifically includes:
[0058] Open the DOCX file as a ZIP file and use the zipfile module in Python to get the content of the document to be matched;
[0059] The main content of the document is stored in the word / document.xml file. An XML parser is used to obtain the XML structure in the content of the document to be matched, that is, the document.xml file;
[0060] According to the XML structure in the content of the document to be matched, XML technology is used to identify the root node, obtain the document elements, and perform format conversion to form a unified representation of the document content; XML technology uses an XML parsing library, such as Python's xml.etree.ElementTree or the more powerful lxml library.
[0061] According to the documents with unified representation form, the trigger word method is used to locate engineering knowledge.
[0062] In view of the small proportion of engineering knowledge in the document, it is necessary to quickly locate engineering knowledge and eliminate useless information to reduce the amount of calculation. Engineering knowledge sentences generally contain scope words, so scope is used as a trigger word to locate engineering knowledge. After the document is divided layer by layer in a tree structure, identify whether there are sentences related to trigger words in the sentence, and if so, import them into the engineering knowledge sentence set.
[0063] S102, using a BERT-BiLSTM network to obtain knowledge types in the engineering knowledge sentence set according to the engineering knowledge sentence set; the knowledge types include: attribute knowledge, monotonous knowledge, shape knowledge and formula knowledge; the BERT-BiLSTM network includes: a BERT network and a bidirectional long short-term memory network;
[0064] Because different types of engineering knowledge have different representation forms and characteristics, the type of engineering knowledge needs to be considered when extracting engineering knowledge information and performing template matching. The type of engineering knowledge should be determined before extracting information.
[0065] The recognition process of the BERT-BiLSTM network is:
[0066] 1. Perform word segmentation preprocessing on the engineering knowledge sentence set based on the LTP Chinese word segmentation tool;
[0067] 2. Use the BERT network to obtain a real number matrix of classification information after word segmentation preprocessing;
[0068] Input a text sequence T = {x1, x2, x3, ..., x n}, where x i Represents the i-th word in the text sequence T. After position encoding, information encoding and sentence encoding: the word embedding vector based on the current word for a given dimension is represented as e wi ={e w1 ,e w2 ,e w3 ,…,e wn}; The vector representation of the current word belonging to the sentence position is e si ={e s1 ,e s2 ,e s3 ,...,e sn}; The vector representation of the position of the current word in the sentence is e pi ={e p1 ,e p2 ,e p3 ,...,e pn}. Therefore, the final news text vector e based on BERT pre-training bi It is expressed as:
[0069] e bi =e wi +e si +e pi ;
[0070] Among them, e wi represents the word embedding vector; e si represents the position vector; e pi Represents the position vector. The above formula converts the text sequence T into a real number matrix of classification information: e = {e1, e2, e3, ..., e n}.
[0071] 3. According to the real number matrix of the classification information, a bidirectional long short-term memory network is used to obtain the bidirectional LSTM encoding splicing result; the bidirectional LSTM encoding splicing result is used as the feature vector; the bidirectional long short-term memory network is composed of two unidirectional LSTMs, which encode from front to back and from back to front respectively. The formula of each LSTM is as follows:
[0072] i t =σ(W xi x t +Whi h t-1 +W ci c t-1 +b i );
[0073] c t =(1-i t )*c t-1 +i t *tanh(W xc x t +W hc h t-1 +b c );
[0074]
[0075] h t =o t *tanh(c t );
[0076] Where, σ is the sigma function; W xi , W hi , W ci , W xc , W hc , W ox , and W co All are weights; x t is the t time step input; h t-1 is the output of the t-1 time step; c t-1 is the cell state at time step t-1; i t represents the input at time t; b i , b c And b0 is the bias, o t is the output.
[0077] As a specific embodiment, a news text S is encoded by the front layer to obtain a vector sequence e = {e1, e2, e3, ..., e n}After forward LSTM and reverse LSTM, the hidden state sequence is obtained and Concatenate the two hidden states to get a new hidden state sequence h:
[0078]
[0079] 4. Based on the feature vector obtained by the bidirectional long short-term memory network, a convolutional layer is used to extract the feature vector;
[0080] After bidirectional encoding, for the news text S, a bidirectional long short-term memory network is used to fully extract the important semantic information of the context to ensure that the long-distance text features are not lost. The output of the BiLSTM layer is H:[h1,h2,…,h n ]. The input data of the convolution layer is H, the convolution kernel is W, and the formula of the convolution operation is:
[0081]
[0082] Among them, H is the output of BiLSTM; the convolution kernel W is the weight here; b is the bias, x i,j is a sub-region of the input data, y is the output of the convolutional layer.
[0083] The output of the BiLSTM layer feature extraction layer is:
[0084] h=H+λY; where Y is the feature vector extracted by the convolutional layer.
[0085] 5. Based on the feature vectors obtained by the bidirectional long short-term memory network and the feature vectors extracted by the convolutional layer, the Softmax function is used for classification to obtain the results of the knowledge type.
[0086] Among them, engineering knowledge categories are divided into five categories: (attribute knowledge, shape knowledge, monotonous knowledge, formula knowledge, and non-engineering knowledge).
[0087] p(y|S)=softmax(W·h+b)
[0088] output = argmaxp(y|S);
[0089] Among them, h is the output of the Attention layer, b is the random deviation, and S represents the input engineering knowledge text sentence.
[0090] The objective function y(θ) of the BERT-BiLSTM network is:
[0091]
[0092] Among them, N is the number of samples; M is the number of labels; y ic If the knowledge type of sample i is c, it takes 1, otherwise it takes 0; p ic is the probability that the predicted sample i belongs to knowledge type c.
[0093] S103 specifically includes:
[0094] According to the set of engineering knowledge sentences with determined knowledge types, the BiLSTM-CRF model combined with dependency syntactic information is used to identify the named entities of engineering knowledge; after obtaining the engineering knowledge sentences and the types of engineering knowledge, it is necessary to extract engineering knowledge information. The key task of information extraction is entity. Engineering knowledge has specific syntactic relations, so dependency syntax plays an important role in information extraction.
[0095] S103 The recognition process of the BiLSTM-CRF model combined with dependency syntactic information is as follows:
[0096] 1. Use multi-layer perception mechanism to fuse dependent parent node information;
[0097] In the dependency tree is the output of the i-th word in the sentence in the first layer network, is the output of the parent node of word i in the dependency tree in the first layer of the network. This paper chooses to use a multi-layer perceptron to fuse and
[0098]
[0099] Among them, W1 and W2 are the learnable weights in the network. is the corresponding word x in the second layer network i The output of the position, I i The input of the model is word x i Get the module output
[0100]
[0101] 2. Use the weighted summation method of neighbor nodes to fuse the dependent child node information;
[0102] Change the attributes of the nodes in the directed graph from word representation to the output of word x after passing through the first layer of the network At the same time, in order to make the model as simple as possible, this paper uses the weighted summation of neighbor nodes to aggregate child node information. Since some words have no child nodes, the word node’s own attributes are added during normalization. Aggregate the outputs of the child nodes of word i in the first layer of the network to obtain
[0103]
[0104] Among them, 0≥j≥n, n is the number of child nodes, and W'1 is the learnable weight;
[0105]
[0106] Among them, I'i is the input of the model, W'2 and W'3 are learnable weights, is the corresponding word x in the second layer network i Output of . Get the module output model:
[0107] 3. Use the attention mechanism to combine the dependent parent node information and the dependent child node information;
[0108] The outputs of the two modules are combined using the attention mechanism. and Add learnable weights for summation and use a two-layer network to learn and obtain the weight matrix u.
[0109]
[0110] in, is the weight matrix.
[0111] Taking u as the weight value between the two outputs H2 and H'2, we get the output H3 of the attention module.
[0112] H3=uH2+(1-u)H′2;
[0113] 4. Map the combined information dimension to the number of named entity tags through the fully connected layer;
[0114] 5. According to the number of named entity tags, CRF is used to learn the dependencies between named entity tags, and the Viterbi algorithm is used to obtain the named entity tag sequence;
[0115] 6. Obtain named entities of engineering knowledge based on named entity label sequences.
[0116] S104, matching the named entities of the engineering knowledge to the template corresponding to the knowledge type to obtain formatted engineering knowledge.
[0117] The generation template of engineering knowledge is shown in Table 1. After obtaining triples through information extraction, the triple set content contained in the sentence needs to be matched with the corresponding type of knowledge template to achieve the formatting of engineering knowledge.
[0118] Table 1
[0119]
[0120] The present invention proposes a method for rapid location of engineering knowledge: the text content is complex, and information extraction sentence by sentence requires a large amount of calculation. Therefore, trigger words are used to achieve rapid location of engineering knowledge, construct an engineering knowledge data set, exclude irrelevant sentences, and effectively reduce the amount of system calculation.
[0121] The present invention proposes an accurate method for acquiring engineering knowledge: based on the existence of specific syntactic relationships in engineering knowledge vocabulary, the present invention uses dependency syntax as the basic technology for information extraction, and integrates named entity recognition and relationship extraction, so that the model can understand the syntactic relationship between words while understanding the context, thereby improving the accuracy of engineering knowledge extraction.
[0122] The present invention closely combines the characteristics of engineering knowledge problems, defines engineering knowledge, and divides engineering knowledge into attribute knowledge, monotonous knowledge, shape knowledge, and formula knowledge. In view of the fact that there is no method for extracting engineering knowledge at this stage, a method for acquiring engineering knowledge is developed.
[0123] Example 2
[0124] A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement an engineering knowledge type matching method based on dependency syntax in Example 1.
[0125] Example 3
[0126] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements an engineering knowledge type matching method based on dependency syntax in Example 1.
[0127] Example 4
[0128] A computer program product includes a computer program, which, when executed by a processor, implements an engineering knowledge type matching method based on dependency syntax in embodiment 1.
[0129] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0130] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.
[0131] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0132] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for matching engineering knowledge types based on dependency syntax, characterized in that: The method comprises: The trigger word method is used to locate engineering knowledge in the matching documents to obtain a set of engineering knowledge sentences; According to the engineering knowledge sentence set, the BERT-BiLSTM network is used to obtain the knowledge types in the engineering knowledge sentence set; the knowledge types include: attribute knowledge, monotonous knowledge, shape knowledge and formula knowledge; the BERT-BiLSTM network includes: BERT network and bidirectional long short-term memory network; Based on the engineering knowledge sentence set with determined knowledge types, the BiLSTM-CRF model combined with dependency syntactic information is used to identify named entities of engineering knowledge. The named entities of engineering knowledge are matched to the templates corresponding to the knowledge types to obtain formatted engineering knowledge.
2. According to claim 1, a method for matching engineering knowledge types based on dependency syntax is characterized in that: The trigger word method is used to locate engineering knowledge in the matching documents to obtain a set of engineering knowledge sentences, which specifically include: Use the zipfile module in Python to obtain the content of the document to be matched; An XML parser is used to obtain the XML structure in the content of the document to be matched; According to the XML structure in the content of the document to be matched, XML technology is used to identify the root node, obtain the document elements, and perform format conversion to form a unified representation form of the document content; According to the documents with unified representation form, the trigger word method is used to locate engineering knowledge.
3. The engineering knowledge type matching method based on dependency syntax according to claim 1 is characterized in that: The recognition process of the BERT-BiLSTM network is: Perform word segmentation preprocessing on the engineering knowledge sentence set based on the LTP Chinese word segmentation tool; The text after word segmentation preprocessing is processed using the BERT network to obtain a real number matrix of classification information; According to the real number matrix of the classification information, a bidirectional long short-term memory network is used to obtain a bidirectional LSTM encoding splicing result; the bidirectional LSTM encoding splicing result is used as a feature vector; According to the feature vector obtained by the bidirectional long short-term memory network, the convolution layer is used to extract the feature vector; According to the feature vector obtained by the bidirectional long short-term memory network and the feature vector extracted by the convolution layer, the Softmax function is used for classification to obtain the result of knowledge type.
4. The engineering knowledge type matching method based on dependency syntax according to claim 1 is characterized in that: The objective function y(θ) of the BERT-BiLSTM network is: Where N is the number of samples; M is the number of labels; y ic If the knowledge type of sample i is c, it takes 1, otherwise it takes 0; p ic is the probability that the predicted sample i belongs to knowledge type c.
5. The engineering knowledge type matching method based on dependency syntax according to claim 1 is characterized in that: The recognition process of the BiLSTM-CRF model combined with dependency syntactic information is: Use multi-layer perception mechanism to fuse dependent parent node information; Use the weighted summation of neighbor nodes to fuse the dependent child node information; Use the attention mechanism to combine the dependent parent node information and the dependent child node information; The combined information dimension is mapped to the number of named entity tags through a fully connected layer; According to the number of named entity tags, CRF is used to learn the dependencies between named entity tags, and the Viterbi algorithm is used to obtain the named entity tag sequence; The named entities of engineering knowledge are obtained according to the named entity label sequence.
6. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement an engineering knowledge type matching method based on dependency syntax as described in any one of claims 1-5.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the engineering knowledge type matching method based on dependency syntax as described in any one of claims 1 to 5.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the engineering knowledge type matching method based on dependency syntax as described in any one of claims 1 to 5.
Citation Information
Cited By
Knowledge graph-based learning path analysis method, apparatus and device, and medium
CN119358652A
