Atmospheric water collection patent retrieval method and device and storage medium
By constructing a knowledge map in the field of atmospheric water collection and using entity information for fuzzy query, the problems of low efficiency and low accuracy of patent search in the field of atmospheric water collection are solved, and more efficient patent text retrieval is achieved.
Patent Information
- Application Number
- CN202410919635.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-05
AI Technical Summary
In the field of atmospheric water collection, patent search efficiency and low accuracy in the prior art are mainly due to the large number of proprietary nouns expressing the same meaning, making it difficult for workers who are not familiar with this field to accurately retrieve the required patent text and search The construction of the style is cumbersome.
By obtaining patent texts related to the field of atmospheric water collection, naming entity recognition and relationship extraction, building a knowledge graph, and using entity information to perform fuzzy query, expanding the search scope and reducing limitations.
The search efficiency and accuracy are improved, and there is no need to build cumbersome search methods. The corresponding patent text can be accurately determined, solving the problems of reduced work efficiency and low accuracy caused by inaccurate search methods.
Smart Images

Figure CN118897875A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a patent retrieval method, device and storage medium for atmospheric water collection. Background Art
[0002] With the deepening development of economic globalization and the booming knowledge economy, patent information is growing particularly rapidly. More than one million patent specifications are published worldwide each year, and the number of patents published in my country is also growing rapidly. Such a rapid growth of patent information has brought about information overload. It is quite time-consuming and laborious to find the patent you want from the massive amount of patent information.
[0003] Especially in the field of atmospheric water collection, there are many proper nouns expressing the same meaning. Therefore, staff who are not familiar with this field cannot take into account all the keywords used for retrieval, so as to accurately retrieve the desired patent text, and the construction of this type of search formula is also cumbersome, which leads to reduced work efficiency and inability to accurately retrieve patent texts and other technical problems.
[0004] With respect to the technical problems of reduced work efficiency and low retrieval accuracy caused by inaccurate retrieval formulas in the above-mentioned prior art, no effective solution has been proposed so far. Summary of the invention
[0005] The embodiments of the present application provide a patent search method, device and storage medium for atmospheric water collection, so as to at least solve the technical problems of reduced work efficiency and low search accuracy caused by inaccurate search formulas existing in the prior art.
[0006] According to one aspect of an embodiment of the present application, a patent search method for atmospheric water collection is provided, including: acquiring multiple patent texts related to the field of atmospheric water collection; performing named entity recognition on each patent text using an entity type related to the field of atmospheric water collection to determine entities corresponding to each patent text; performing relationship extraction based on the identified entities to determine relationships between entities of each patent text; determining a knowledge graph corresponding to each patent text based on the determined entities and relationships; receiving search information input by a user and determining entity information corresponding to the search information, wherein the search information includes search keywords and search text; and searching from the knowledge graphs of multiple patent texts based on the determined entity information to determine a patent corresponding to the search information.
[0007] According to another aspect of an embodiment of the present application, a storage medium is further provided, the storage medium including a stored program, wherein the above-described method is executed by a processor when the program is running.
[0008] According to another aspect of an embodiment of the present application, a patent search device for atmospheric water collection is also provided, including: a text acquisition module, used to acquire multiple patent texts related to the field of atmospheric water collection; an entity determination module, used to perform named entity recognition on each patent text using an entity type related to the field of atmospheric water collection, and determine the entity corresponding to each patent text; a relationship determination module, used to perform relationship extraction based on the identified entities, and determine the relationship between the entities of each patent text; a knowledge graph determination module, used to determine the knowledge graph corresponding to each patent text based on the determined entities and relationships; an information determination module, used to receive search information input by a user, and determine the entity information corresponding to the search information, wherein the search information includes search keywords and search text; and a patent determination module, used to search from the knowledge graphs of multiple patent texts based on the determined entity information, and determine the patent corresponding to the search information.
[0009] According to another aspect of an embodiment of the present application, a patent search device for atmospheric water collection is also provided, including: a processor; and a memory connected to the processor, for providing the processor with instructions for processing the following processing steps: obtaining multiple patent texts related to the field of atmospheric water collection; performing named entity recognition on each patent text using entity types related to the field of atmospheric water collection, and determining entities corresponding to each patent text; performing relationship extraction based on the identified entities, and determining the relationship between entities of each patent text; determining a knowledge graph corresponding to each patent text based on the determined entities and relationships; receiving search information input by a user, and determining entity information corresponding to the search information, wherein the search information includes search keywords and search text; and searching from the knowledge graphs of multiple patent texts based on the determined entity information, and determining the patent corresponding to the search information.
[0010] In an embodiment of the present application, the server uses entities in patent texts in the field of atmospheric water collection and the relationships between entities to construct a knowledge graph as a patent library. The server then searches the knowledge graph using entity information corresponding to the search information, where the entity information and the search information may be different. Compared with the prior art method of accurately matching each patent text with keywords in the search formula, the present technical solution generates entity information corresponding to the search information, thereby using the entity information to search in the patent library, thereby expanding the scope of the search through this type of fuzzy query, and is not limited to obtaining only patent texts that have exactly the same words as the search information, thereby accurately determining the corresponding patent text and reducing the limitations of the search.
[0011] In addition, the technical solution can also use text (i.e., search text) as search information, so that the server automatically generates entity information from the search text and then performs the search. Therefore, the technical solution can find other patent texts similar to the search text without constructing a cumbersome search formula, thereby improving the search efficiency. This solves the technical problems of reduced work efficiency and low search accuracy caused by inaccurate search formulas in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0013] Figure 1 is a hardware structure block diagram of a computing device for implementing the method according to Embodiment 1 of the present application;
[0014] Figure 2 is a schematic diagram of the atmospheric water collection patent search system according to Example 1 of the present application;
[0015] Figure 3 It is a flow chart of the atmospheric water collection patent search method according to the first aspect of Example 1 of the present application;
[0016] Figure 4 is a schematic diagram of the knowledge graph according to the first aspect of Example 1 of the present application;
[0017] Figure 5 is a schematic diagram of the architecture of the named entity recognition model according to the first aspect of Example 1 of the present application;
[0018] Figure 6 is a schematic diagram of a high-speed network layer according to the first aspect of Embodiment 1 of the present application;
[0019] Figure 7 is a schematic diagram of a multi-feature fusion embedding layer according to the first aspect of Example 1 of the present application;
[0020] Figure 8 is a schematic diagram of the architecture of the relationship extraction model according to the first aspect of Example 1 of the present application;
[0021] Fig. 9 is a schematic diagram of the position and label embedding layer according to the first aspect of Example 1 of the present application;
[0022] Fig.10 is another schematic diagram of the position and label embedding layer according to the first aspect of Example 1 of the present application;
[0023] Fig.11 is a schematic diagram of the search process according to the first aspect of Example 1 of the present application;
[0024] Fig.12 is a schematic diagram of the atmospheric water collection patent search device according to Example 2 of the present application; and
[0025] Fig.13 It is a schematic diagram of the atmospheric water collection patent search device described in Example 3 of the present application. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Example 1
[0029] According to this embodiment, a method embodiment of a patent search method for atmospheric water collection is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] The method embodiment provided in this embodiment can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computing device for implementing a patent search method for atmospheric water collection. Figure 1As shown, the computing device may include one or more processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory for storing data, and a transmission device for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0031] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuitry may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computing device. As described in the embodiments of the present application, the data processing circuitry serves as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0032] The memory can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the atmospheric water collection patent search method in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, the atmospheric water collection patent search method of the above-mentioned application is realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0033] The transmission device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computing device. In one example, the transmission device includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet wirelessly.
[0034] The display may be, for example, a touch screen liquid crystal display (LCD) that may enable a user to interact with a user interface of the computing device.
[0035] It should be noted that, in some optional embodiments, the above Figure 1 The computing device shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware elements and software elements. Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computing devices described above.
[0036] Figure 2 Schematic diagram of the atmospheric water collection patent search system according to this embodiment. Figure 2 As shown, the system includes: a terminal device 100; a server 200 and a database 300.
[0037] The terminal device 100 is installed with an atmospheric water collection patent search application. The user inputs search information on the atmospheric water collection patent search application through the terminal device 100, and the terminal device 100 sends the search information to the server 200.
[0038] The server 200 is used to perform named entity recognition and relationship extraction on the collected multiple patent texts related to the field of atmospheric water collection, thereby establishing a knowledge graph corresponding to each patent text according to the determined entities and relationships, and then storing the knowledge graph in the database 300. After receiving the search information sent by the terminal device 100, the server 200 searches the knowledge graph stored in the database 300 according to the search information, thereby determining the patent text corresponding to the retrieved knowledge graph, and sending the patent text to the terminal device 100 for display.
[0039] Database 300 is a graph database for storing knowledge graphs, for example, it can be a Neo4j graph database.
[0040] It should be noted that the terminal device 100, the server 200 and the database 300 in the system can all be applicable to the hardware structure described above.
[0041] Under the above operating environment, according to the first aspect of this embodiment, a method for retrieving patents for atmospheric water collection is provided. Figure 2 The server 200 shown in FIG. Figure 3 A schematic diagram showing the process of the method is shown in FIG. Figure 3 As shown, the method includes:
[0042] S302: Obtain multiple patent texts related to the field of atmospheric water collection;
[0043] S304: performing named entity recognition on each patent text using entity types related to the field of atmospheric water collection to determine entities corresponding to each patent text;
[0044] S306: extracting relationships based on the identified entities to determine the relationships between entities in each patent text;
[0045] S308: Determine a knowledge graph corresponding to each patent text according to the determined entities and relationships;
[0046] S310: receiving search information input by a user, and determining entity information corresponding to the search information, wherein the search information includes a search keyword and a search text; and
[0047] S312: Search from the knowledge graphs of multiple patent texts based on the determined entity information to determine the patent corresponding to the search information.
[0048] Specifically, the server 200 obtains a plurality of patent texts related to the field of atmospheric water collection, wherein the plurality of patent texts are used to construct a knowledge graph, and one patent text corresponds to one knowledge graph.
[0049] Furthermore, the server 200 uses the abstract of the patent text as an object for determining entities, and performs named entity recognition on the abstract of each patent text respectively through a pre-trained named entity recognition model, and determines entities and entity types of each entity from the abstract of the patent text. The named entity recognition model is trained using a plurality of pre-set entity types. The entity types include: combination, component, substance, process, function and effect.
[0050] For example, the abstract of the specification of a certain patent text is: "A water-making machine that comprehensively utilizes air, consisting of an air compressor and a separation tank at the bottom, as well as a filtering water tank and a power generation device on both sides of the tank. The present invention utilizes the characteristic that the pressure dew point is much higher than the normal pressure dew point, and simultaneously separates the moisture in the air in three different ways: compression, condensation, and adsorption, so as to efficiently produce clean drinking water, and at the same time utilizes the expanded cold airflow after dehydration for wind power generation and condensation and dehydration. Therefore, this machine has the function of one gas for multiple uses, which can greatly improve the energy efficiency ratio of water production and reduce operating costs. We can clearly see that the combination of the abstract text is a water-making machine that comprehensively utilizes air, and its components are an air compressor, a separation tank, a filtering water tank, and a power generation device. The substance is an expanded cold airflow, the process is to separate the moisture in the air, and the function is to produce clean drinking water, wind power generation, condensation and dehydration, and one gas for multiple uses, and the effect is to improve the energy efficiency ratio of water production and reduce operating costs."
[0051] The server 200 processes the abstract of the patent text through a named entity recognition model, thereby determining entities and entity types of each entity as shown in Table 1. Table 1 shows entity types, the meaning of each entity type and corresponding entities illustrated by examples.
[0052] Table 1
[0053]
[0054] Further, the server 200 determines the relationship between entities in the patent text specification abstract through a preset relationship extraction model. The relationship between entities is determined based on the patent text specification abstract and the entities determined by the named entity recognition model. And the relationship types between the entities include: for, component, process, function and effect. Table 2 shows the meaning of each relationship type and the corresponding feature words with examples.
[0055] Table 2
[0056]
[0057] Furthermore, the server 200 determines the knowledge graph corresponding to the patent text according to the determined entities and relationships. More specifically, the server 200 takes the entity whose entity type is a combination as the center, and connects entities of other entity types (i.e., components, functions, substances, processes, and effects) with the combination through relationships to generate a knowledge graph such as Figure 4 The knowledge graph shown in Figure 1. Figure 4 A portion of the knowledge graph is shown. Figure 4 As shown, the combination is "Comprehensive Utilization...", and entities of other entity types (i.e., components, functions, substances, processes, and effects), such as "Reduce Operation", "Multiple Uses of One Gas", and "Control Cabinet", are connected to the combination "Comprehensive Utilization..." through relationships. For example, the relationship between the combination "Comprehensive Utilization..." and the entity "Reduce Operation..." is "Effect"; the relationship between the combination "Comprehensive Utilization..." and the entity "Multiple Uses of One Gas" is "Function"; and the relationship between the combination "Comprehensive Utilization..." and the entity "Control Cabinet" is "Component".
[0058] Thus, the server 200 generates a corresponding knowledge graph for each patent text according to the above-mentioned method of generating a knowledge graph, and the server 200 sends the generated knowledge graph to the database 300 for storage.
[0059] Further, after the knowledge graph is established, and when the user has a search requirement, the user enters search information through the terminal device 100 in the atmospheric water collection patent search application installed on the terminal device 100, and then the terminal device 100 sends the search information to the server 200.
[0060] After receiving the search information, the server 200 determines whether the search information is a keyword (i.e., a search keyword) or a text (i.e., a search text). The search text may be a patent text. In the case where the search information is a search keyword, the server 200 uses the search keyword as an entity name (i.e., entity information).
[0061] In the case where the search information is a search text, the server 200 processes the search text and generates a corresponding entity name (ie, entity information).
[0062] Furthermore, the server 200 searches the knowledge graph stored in the database 300 according to the determined entity information, thereby determining the knowledge graph corresponding to the entity information and determining the patent text that generates the knowledge graph.
[0063] More specifically, for example, the search information includes the search keyword "water production device", and the server 200 generates the corresponding entity name "water production device" (i.e., entity information) according to the search keyword "water production device". Then, the server 200 determines the entity type corresponding to the entity name "water production device" (i.e., entity information). Then, the server 200 determines whether the entity type is a "combination". In the case where the entity type is a "combination", the server 200 uses the current combination "water production device" as the root node to search for all its related nodes in the knowledge graph and match them with other entity information to determine the corresponding knowledge graph.
[0064] When the entity type is not a "combination", the server 200 searches for the combination upward from the node, and finally diverges downward with the found combination as the center, matches it with other entity information, and determines the corresponding knowledge graph.
[0065] Furthermore, the server 200 obtains and generates the patent text of the knowledge graph, and sends the patent text as a search result to the terminal device 100. The terminal device 100 then displays the search result.
[0066] As described in the background technology, with the in-depth development of economic globalization and the booming knowledge economy, patent information has grown particularly rapidly. More than one million patent specifications are published worldwide each year, and the number of patents published in my country each year is also showing a rapid growth trend. Such a rapid growth of patent information has brought about information overload, and it is a very time-consuming and laborious task to find the patent you want from the massive patent information. Especially in the field of atmospheric water collection, there are many proper nouns expressing the same meaning in this field, so staff who are not familiar with this field cannot take into account all the search keywords used for retrieval, so as to accurately retrieve the desired patent text, and the construction of this type of search formula is also relatively cumbersome, resulting in reduced work efficiency, and technical problems such as the inability to accurately retrieve patent texts.
[0067] In view of the technical problems described above, through the technical solutions of the embodiments of the present application, the server uses the entities in the patent text in the field of atmospheric water collection and the relationships between the entities to construct a knowledge graph as a patent library. Afterwards, the server uses the entity information corresponding to the search information to search the knowledge graph, where the entity information and the search information may be different. Compared with the method of accurately matching each patent text through keywords in the search formula in the prior art, the present technical solution generates entity information corresponding to the search information, and then uses the entity information to search in the patent library. This type of fuzzy query expands the scope of the search, and is not limited to obtaining only patent texts that have exactly the same words as the search information, thereby accurately determining the corresponding patent text and reducing the limitations of the search.
[0068] In addition, the technical solution can also use text (i.e., search text) as search information, so that the server automatically generates entity information from the search text and then performs the search. Therefore, the technical solution can find other patent texts similar to the search text without constructing a cumbersome search formula, thereby improving the search efficiency. This solves the technical problems of reduced work efficiency and low search accuracy caused by inaccurate search formulas in the prior art.
[0069] Optionally, named entity recognition is performed on each patent text using entity types related to the field of atmospheric water collection to determine the operations of entities corresponding to each patent text, including: processing the patent text through a multi-feature fusion embedding layer of a preset named entity recognition model to generate a multi-feature fusion vector; performing convolution operations on the multi-feature fusion vector through the PRIDCNN layer of the named entity recognition model to generate a corresponding feature sequence; performing structural processing on the feature sequence through the high-speed network layer of the named entity recognition model to generate a corresponding feature vector; determining the label information of the feature vector according to the entity type through the CRF layer of the named entity recognition model; and determining the entity corresponding to each patent text based on the label information.
[0070] Specifically, since the abstract of the patent text in the field of atmospheric water collection patents contains many meaningless function words and redundant characters, and the content structure is long and complex, the server 200 pre-processes the abstract to remove function words and redundant characters.
[0071] refer to Figure 5 As shown in the figure, the named entity recognition model includes a multi-feature fusion embedding layer, a PRIDCNN layer, a high-speed network layer and a CRF layer.
[0072] The server 200 inputs the preprocessed patent text specification abstract into the named entity recognition model, processes the patent text specification abstract through the multi-feature fusion embedding layer of the named entity recognition model, and generates corresponding multi-feature fusion vectors for each character of the specification abstract.
[0073] Further, the server 200 inputs the multi-feature fusion vector into the PRIDCNN layer. The PRIDCNN layer includes 4 dilated convolution blocks of the same structure, each of which contains three dilated convolution layers with dilated widths of 1, 1, and 2, respectively. And the number of convolution kernels in the dilated convolution layer is 100, so as to better capture the features in the patent text and improve the model performance and generalization ability.
[0074] More specifically, the server 200 inputs the multi-feature fusion vector into the first dilated convolution layer in the first dilated convolution block, performs a convolution operation on the multi-feature fusion vector using a convolution kernel with a dilation width of 1, generates a first feature sequence, and processes the first feature sequence using the activation function PReLU to generate a corresponding second feature sequence. Among them, the PReLU activation function is an activation function that is improved for the negative part of the ReLU activation function. And the PReLU activation function uses an exponential calculation-like output for the case of x<0, which solves the neuron necrosis phenomenon of the ReLU activation function, activates some dormant neurons, and further improves the feature extraction capability of the model, as shown in the formula:
[0075]
[0076] The parameter a is a trainable parameter, which is obtained through adaptive learning of the gradient descent algorithm. x represents the feature in the first feature sequence.
[0077] Furthermore, the server 200 inputs the second feature sequence into the second dilated convolution layer in the first dilated convolution block, continues to perform convolution operation on the second feature sequence using a convolution kernel with a dilation width of 1, generates a third feature sequence, and processes the third feature sequence using an activation function PReLU to generate a corresponding fourth feature sequence.
[0078] Further, the server 200 inputs the fourth feature sequence into the third dilated convolutional layer in the first dilated convolutional block, performs a convolutional operation on the fourth feature sequence by using a convolutional kernel with a dilation width of 2 in the third layer to generate a fifth feature sequence, and processes the fifth feature sequence by using the activation function PReLU to generate a corresponding sixth feature sequence, thus completing the processing of the first dilated convolutional block.
[0079] Further, the server 200 inputs the sixth feature sequence into the second dilated convolutional block, and thus the second dilated convolutional block processes the sixth feature sequence according to the processing process of the first dilated convolutional block on the multi-feature fusion vector to generate a corresponding feature sequence.
[0080] And so on, 4 dilated convolutional blocks are stacked together in sequence, and the output of each dilated convolutional block becomes the input of the next dilated convolutional block, so that the final feature sequences P0 to P are output by the fourth dilated convolutional block. T . The named entity recognition model gradually extracts and integrates context features of different scales.
[0081] Thus, the multi-feature fusion vector processed by the multi-feature fusion embedding layer is input into the PRIDCNN layer, and through the dilated convolutional operation of the dilated convolutional neural network, the input multi-feature fusion vector is recalculated. The PRIDCNN layer generates a logit for each word of the input patent text, and the logit represents the score or probability on each entity type. For example, for the character "制", there are six preset entity types in this technical solution, namely combination, component, substance, process, function, and effect, and the logits output by the named entity recognition model corresponding to them may be: [2.3, 1.5, 3.3, 2.1, 1.7, 3.6]. Each character, that is, each time step, has a corresponding logit vector, and the final output is the feature sequences P0 to P corresponding to each character. T . One character corresponds to one feature sequence, and there are T + 1 feature sequences in total.
[0082] Further, the server 200 inputs the feature sequences P0 to P output by the PRIDCNN layer T into the high-speed network layer, enabling some information to pass through the deep network without obstacles, and taking it as the connection layer between the PRIDCNN and the CRF layer.
[0083] During the training and application of PRIDCNN, it is very easy to have a gradient vanishing or gradient exploding problem, which causes the loss of each round of the model to fluctuate and be difficult to converge. In order to reduce the problem of model convergence difficulties caused by information flow attenuation, this technical solution introduces a high-speed network layer (HighWay Network, HN). The high-speed network layer uses a gate structure to design a related network. Figure 6 As shown, its core is the transformation gate (TransformGate, TG) and the carry gate (Carry Gate, CG), which can avoid the problem of information attenuation caused by the information flow passing through multiple neural networks, so that the parameters of each round of training and application of the named entity recognition model can be correctly and timely updated during the backward update.
[0084] For the conversion gate (TG) and the carrying gate (CG), the function of the carrying gate (CG) is to allow certain information to pass directly through the model, and the function of the conversion gate (TG) is to adjust and optimize some feature information flows to improve the overall training effect of the model. The calculation formula of the high-speed network layer is as follows:
[0085]
[0086] Among them, H i Represents the character x i The corresponding feature vector of the output of the high-speed network layer, p is the output vector of the PRIDCNN layer (i.e., feature sequence). HG(·) is the nonlinear transformation function ReLu, TG(·) and CG(·) are the tangent function tanh, and in order to simplify the relevant calculations, CG=1-TG is set, W TG , W HG and W CG Represent the conversion gate, transformation function and weight matrix of the carrying gate respectively.
[0087] Furthermore, the server 200 outputs the feature vectors H0 to H T Input CRF layer. CRF layer set H = (H0, H1, H2, ..., H T ), TAG=(tag0,tag1,tag2,...,tag T ). TAG represents the label information output by the CRF layer. And the CRF layer sets D for each tag i Domain size. Given a conditional model CRF(TAG|H), predict the most likely TAG.
[0088]
[0089] Among them, φ t is the local factor, φp is a pairwise factor for scoring continuous labels, Z x is the partition function. To avoid overfitting, φ p It does not depend on the time step i or H. The prediction of this model requires O(D 2 T) Viterbi algorithm performs global search.
[0090] In addition, the feature vectors H0~H output by the high-speed network layer T As the input data of the CRF layer, the PRIDCNN layer and the high-speed network layer can only extract sentence features and predict the current label, but cannot consider the dependency between labels. The conditional random CRF uses the Viterbi algorithm to find the most likely label sequence in the entire label space. The Viterbi algorithm calculates the maximum score path for each label at each time step through dynamic programming, and selects the path with the highest total score in the entire sequence, and finally obtains the global optimal label sequence.
[0091] Further, taking the patent text "The water making machine includes an air compressor and a separation tank." as an example, the label information output by the CRF layer is: ['B-ZT','I-ZT','I-ZT','O','O','B-BJ','I-BJ','I-BJ','I-BJ','I-BJ','O','B-BJ','I-BJ','I-BJ','O'].
[0092] Table 3 shows the meaning of each tag information, as shown in the following table:
[0093] Table 3
[0094] Tag information meaning 1 B-ZT Combination start word 2 I-ZT Middle word of combination 3 B-BJ Component start word 4 I-BJ Component middle word 5 B-WZ Material start word 6 I-WZ Material middle word 7 B-GC Process start word 8 I-GC Process Intermediate Word 9 B-GN Function start word 10 I-GN Functional middle word 11 B-XG Effect start word 12 I-XG Effect middle word 13 O Non-entity words
[0095] Further, the server 200 determines the entity corresponding to the patent text according to the tag information, for example, the corresponding entity "water maker" is determined according to the tag information 'B-ZT', 'I-ZT', 'I-ZT', the corresponding entity "air compressor" is determined according to the tag information 'B-BJ', 'I-BJ', 'I-BJ', 'I-BJ', 'I-BJ', and the corresponding entity "separation tank" is determined according to the tag information 'B-BJ', 'I-BJ', 'I-BJ'.
[0096] Therefore, the technical solution performs entity recognition on the patent text through the multi-feature fusion embedding layer, PRIDCNN layer, high-speed network layer and CRF layer of the named entity recognition model, thereby extracting and integrating context features of different scales through multiple dilated convolution blocks in the PRIDCNN layer, and avoiding the information attenuation problem caused by the information flow passing through multiple neural networks through the high-speed network layer, so that the parameters of each round of training and application of the named entity recognition model can be correctly and timely updated during backward updating.
[0097] Optionally, the patent text is processed through a multi-feature fusion embedding layer of a preset named entity recognition model to generate a multi-feature fusion vector, including: determining a character-level feature vector, a word-level feature vector, a word position vector, a preset label vector and a part-of-speech vector corresponding to each character according to the patent text through a multi-feature fusion embedding layer; and concatenating the character-level feature vector, the word-level feature vector, the word position vector, the preset label vector and the part-of-speech vector to generate a multi-feature fusion vector.
[0098] Specifically, the server 200 embeds each character x in the specification abstract of the patent text through the multi-feature fusion embedding layer of the named entity recognition model. i Generate the corresponding character-level feature vector C i , and perform word segmentation on the abstract of the specification, so as to j Generate the corresponding token-level feature vector W j . Then determine each character x i The character-level feature vector W i .
[0099] Taking "a new type of air water making machine" in the abstract of the specification as an example, the characters are identified as x0, x1, ..., x9, where i = 0 to 9. The corresponding character-level feature vectors are identified as C0, C1, ..., C9.
[0100] Furthermore, the server 200 performs word segmentation processing on "a new type of air water machine" in the abstract of the specification through the multi-feature fusion embedding layer, thereby generating the word segmentations "a kind", "new type", "of", "air" and "water machine". Thus, the server 200 determines the word-level feature vector W0 corresponding to the word segmentation "a kind", the word-level feature vector W1 corresponding to the word segmentation "new type", the word-level feature vector W2 corresponding to the word segmentation "of", the word-token-level feature vector W3 corresponding to the word segmentation "air", and the word-token-level feature vector W4 corresponding to the word segmentation "water machine" through the multi-feature fusion embedding layer, j=1~4.
[0101] Furthermore, the server 200 uses the multi-feature fusion embedding layer to determine the word-level feature vector corresponding to each word segment based on the word segment where each character is located, and uses this word-level feature vector as the word-level feature vector for each character in the word segment. Thus, the word-level feature vector corresponding to each character in "a new type of air water maker" is determined, as shown in Table 4.
[0102] Table 4
[0103] character one kind new type of null gas system water machine Character-level feature vector <![CDATA[C0]]> <![CDATA[C1]]> <![CDATA[C2]]> <![CDATA[C3]]> <![CDATA[C4]]> <![CDATA[C5]]> <![CDATA[C6]]> <![CDATA[C7]]> <![CDATA[C8]]> <![CDATA[C9]]> Word-level feature vector <![CDATA[W0]]> <![CDATA[W0]]> <![CDATA[W1]]> <![CDATA[W1]]> <![CDATA[W2]]> <![CDATA[W3]]> <![CDATA[W3]]> <![CDATA[W4]]> <![CDATA[W4]]> <![CDATA[W4]]>
[0104] Among them, for example, the character-level feature vector of the character "一" is C0, and the word-level feature vector is W0; the character-level feature vector of the character "种" is C1, and the word-level feature vector is W0.
[0105] Furthermore, the server 200 uses the multi-feature fusion embedding layer to determine the word position information of each character. The word position information can be represented by 0-3 for the position of the character. Among them, 0 represents a single character, 1 represents the starting character of a word, 2 represents the middle character of a word, and 3 represents the ending character of a word. For example, for the character "制" corresponding to the word segment "制水机", it is the starting character of the word, and its word position information is 1; the character "水" is the middle character of the word, and its word position information is 2; the character "机" is the ending character of the word, and its word position information is 3. The word segment "的" is a single character, and its word position information is 0. Among them, the word position information of each character in "a new type of air water maker" is shown in Table 5.
[0106] Table 5
[0107] character one kind new type of null gas system water machine Word position information 1 3 1 3 0 1 3 1 2 3
[0108] Furthermore, the server 200 uses the multi-feature fusion embedding layer to determine the preset label information for each character. More specifically, the server 200 uses the multi-feature fusion embedding layer to determine each character as a non-entity word, so the preset label information for each character is O.
[0109] Furthermore, the server 200 uses the multi-feature fusion embedding layer to determine the part-of-speech information of each character. More specifically, the server 200 uses the multi-feature fusion embedding layer to represent the part-of-speech information of each character according to the part-of-speech of the word segment where each character is located. Among them, the part-of-speech includes n representing noun, adj representing adjective, aux representing auxiliary word, etc. For example, the part-of-speech of the word segment "一种" is a noun, so the part-of-speech information of the character "一" is n, and the part-of-speech information of the character "中" is n. Among them, the part-of-speech information of each character in "a new type of air water maker" is shown in Table 6.
[0110] Table 6
[0111] character one kind new type of null gas system water machine Part of Speech Information n n adj adj aux n n n n n
[0112] Further, refer to Figure 7 As shown, the server 200 embeds each character x through a multi-feature fusion embedding layer. i The corresponding character-level feature vector C i , word-level feature vector W i , the word position vector corresponding to the word position information, the word position vector corresponding to the preset tag information, and the part-of-speech vector corresponding to the part-of-speech information. i The corresponding character-level feature vector C i , word-level feature vector W i , word position vector, word position vector and part-of-speech vector are fused to obtain the multi-feature fusion vector V i The formula is:
[0113]
[0114] in Represents the current character x i The character-level feature vector C i , Represents the current character x i The corresponding word-level feature vector W i , Represents the current character x i The word position vector of Represents the current character x i The preset label vector of Represents the current character x i The part-of-speech vector.
[0115] Therefore, based on the particularity of the patent field of atmospheric water collection, this technical solution considers five features, namely, character features, corresponding word features, label features, part-of-speech features, and word position features. These five types of features affect the effect of subsequent feature extraction to varying degrees. By integrating these five types of features, the model can better perceive the information of the currently input words and improve the word embedding effect of the model.
[0116] Optionally, performing relationship extraction based on the identified entities to determine the relationship between entities in each patent text includes: processing the patent text through a word embedding layer of a preset relationship extraction model to generate a word fusion vector; fusing the word fusion vector and the position information and label information of the word fusion vector through a position and label embedding layer of the relationship extraction model to generate an embedding vector, wherein the label information is the label information of the corresponding entity output by the named entity recognition model; processing the embedding vector through a BIGRU layer of the relationship extraction model to generate a corresponding hidden state vector; determining the word and sentence attention value of the hidden state vector through a CWAttention layer of the relationship extraction model to generate an attention feature vector; and classifying the attention feature vector through a softmax classifier to determine the relationship between the corresponding entities.
[0117] Specifically, since the abstract of the patent text in the field of atmospheric water collection patents contains many meaningless function words and redundant characters, and the content structure is long and complex, the server 200 pre-processes the abstract to remove function words and redundant characters.
[0118] refer to Figure 8 As shown in the figure, the relation extraction model includes a word embedding layer, a position and label embedding layer, a BIGRU layer, a CWAttention layer, and a softmax classifier.
[0119] First, the server 200 inputs the preprocessed instruction manual summary into the word embedding layer of the relation extraction model, and generates word vectors and word vectors corresponding to each character in the instruction manual summary by using the preset Word2Vec model for generating word vectors through the word embedding layer. Then, each character x is embedded in the word embedding layer. i The corresponding character vector and word vector are added together to generate a word fusion vector. The formula for generating a word fusion vector is as follows:
[0120]
[0121] Where: is the word vector of a single character; is the word vector of the word where the character is located; e i is the word fusion vector of the current character.
[0122] Further, the server 200 inputs the word fusion vectors output by the word embedding layer into the position and label embedding layer, and determines the position information and label information corresponding to each word fusion vector through the position and label embedding layer. The position information is used to indicate the distance of the word fusion vector relative to the head entity and the tail entity, and the label information is the label information output by the named entity recognition model. The head entity is used to indicate the entity word closest to the current character before the current character, and the tail entity is used to indicate the entity word closest to the current character after the current character.
[0123] More specifically, the named entity recognition model determines the label information of each character of the entity from the abstract of the specification. Thus, the server 200 inputs the determined entity and label information into the position and label embedding layer of the relation extraction model. Then, the server 200 determines the positions corresponding to each character according to the positions of the entities through the position and label embedding layer, and uses them as the position information of the word fusion vectors corresponding to each character.
[0124] Refer to Fig. 9 As shown in the example of "The present invention discloses a water vapor collection device and its usage method, and the device includes an air inlet cup" in the abstract of the specification. For the character "shi" (使), the head entity is "water vapor collection device", and the tail entity is "air inlet cup". For example, the server 200 determines the distance between the character "shi" and the head entity "water vapor collection device", and the distance between the character "shi" and the tail entity "air inlet cup" through the position and label embedding layer. The distance between the character and the head entity is called the forward distance, and the distance between the character and the tail entity is called the backward distance. And the forward distance and the backward distance are the number of characters between the current character and the first character of the entity.
[0125] Thus, the distance between the character "shi" and the first character "shui" (水) of the head entity "water vapor collection device" is 8, and the distance between the character "shi" and the first character "jin" (进) of the tail entity "air inlet cup" is 10. Thus, the server 200 determines the forward distance of the character "shi" as 8 and the backward distance as -10 through the position and label embedding layer.
[0126] In addition, for the first character "ben" (本) in "The present invention discloses a water vapor collection device and its usage method, and the device includes an air inlet cup", it has no head entity, and the tail entity is "water vapor collection device", so the forward distance is -1 and the backward distance is 8. For the last character "bei" (杯) in "The present invention discloses a water vapor collection device and its usage method, and the device includes an air inlet cup", since this character is a character in the entity word, the forward distance and the backward distance are both 0.
[0127] Further, the server 200 determines the label information corresponding to each word fusion vector through the position and label embedding layer according to the label information output by the named entity recognition model. For example, the label information of the word fusion vector corresponding to the character "shi" is O, that is, a non-entity word.
[0128] Further, as shown in Fig.10 the server 200 fuses the word fusion vector e i corresponding to each word x i , the forward distance vector Xp i_1 , the backward distance vector Xp i_2 , and the label vector corresponding to the label information through the position and label embedding layer to generate the embedding vector q i . The formula for generating the embedding vector q i is:
[0129]
[0130] In addition, the server 200 determines the dimension d corresponding to the embedding vector through the position and label embedding layer. The dimensions of each embedding vector are the same. The dimension calculation formula:
[0131] d = d w + 2d p + d l ,
[0132] where 2d p is the dimension of the position vector corresponding to the position information (that is, the forward distance vector and the backward distance vector), d w is the dimension of the word fusion vector, and d l is the dimension of the label vector.
[0133] Further, the server 200 inputs the embedding vector q i output by the position and label embedding layer into the BIGRU layer. Through the BIGRU layer, forward and backward calculations are used to generate two unique hidden layer states for each sentence. Then, these two vectors are superimposed to generate the final encoded representation, effectively utilizing the context information. The input of this layer is the embedded multi-feature fusion vector. First, a forward propagation is performed on the input sequence to calculate the forward propagation hidden state sequence The hidden state at each moment contains the forward context information from the start position of the sequence to the current position. Then, a backward propagation is performed on the input sequence to calculate the backward propagation hidden state sequence The hidden state at each moment contains the reverse context information from the end of the sequence to the current position. Finally, the forward and reverse hidden state sequences are merged to obtain the hidden state vector of the final output of the BiGRU layer: BH = [h0,h2,...,h T ], where h T is the final hidden state at time i, which contains both forward and reverse context information. Through such bidirectional processing, the BiGRU layer can capture the information of the input sequence in both the forward and reverse directions and extract features more comprehensively.
[0134] Furthermore, the server converts the hidden state vector h output by the BIGRU layer into i Input to the CWAttention layer.
[0135] In the patent texts in the field of atmospheric water collection, there are a large number of proper nouns, terms and abbreviations, such as various technical names, equipment specifications, operating steps, etc. These terms often have important meanings and special contextual associations. The word-level attention layer can help the model capture these proper nouns and terms, judge the importance of each word to the relationship classification, and weight them according to their importance in the text, so as to better understand the content of the patent text. When sentences are regarded as independent units, relying only on the word-level attention mechanism will limit the model to focus only on the information in the current sentence. However, when processing multiple sentences containing the same entity pair, the present technical solution adopts a sentence-level attention mechanism to capture the contextual features between these sentences. This mechanism can assign attention weights to each sentence, thereby improving the performance of the classifier. In this way, the present technical solution can utilize the information within the sentence and effectively combine the associations between sentences, thereby enhancing the recognition and understanding capabilities of the model. In the patent texts in the field of atmospheric water collection, some sentences may be more important than others because they describe the key concepts, technical details or innovative content of the patent. This layer can help the model focus on and highlight important sentences and use them as important input features, thereby improving the model's understanding and analysis capabilities of the patent text.
[0136] Based on the hidden state vector BH output by the BiGRU layer, the sentence r is represented as follows:
[0137] r=BH×(softmax(w T tanh(BH))) T
[0138]
[0139] Where: Use the tanh function to transform the original vector to between [-1,1]. wis the dimension of the word vector, w is the trained parameter vector, and w T is its transpose. The dimensions of w and r are d w ,T,d w .qe i Represents the character x i The corresponding real vector, and qe i is a query function used to score the matching degree between the input sentence and the predicted relation. k A set of real vectors representing all characters in the input sentence.
[0140] The attention feature vector corresponding to the sentence based on the word-level attention mechanism is expressed as:
[0141]
[0142] Furthermore, the server 200 inputs the attention feature vector output by the CWAttention layer into the softmax classifier, classifies the attention feature vector through the softmax classifier, generates a relationship classification result, and thus determines the relationship between the corresponding entities. The relationship classification result includes: non-relationship type, for, component, process, function and effect.
[0143] Furthermore, the softmax classifier takes the attention feature vector As input:
[0144]
[0145] where y v It means that the v-th sentence is classified by softmax, and the maximum probability value among the 6 categories is the relationship classification result of the entities in the v-th sentence.
[0146] Furthermore, the loss function is y v The negative log-likelihood of :
[0147]
[0148] Where t is the true value represented by one-hot; λ is the L2 regularization parameter. m represents the number of sentences, v = 1 ~ m.
[0149] Therefore, this technical solution uses the relationship extraction model to learn the sentence relationship representation and implement a classification method at the sentence level, thereby improving the model's ability to understand and analyze patent texts.
[0150] Optionally, the search information is a search keyword, and the operation of determining the entity information corresponding to the search information includes: determining the entity information corresponding to the search information by a preset multi-mode matching algorithm, wherein the entity information includes an entity name.
[0151] Specifically, the server 200 obtains keywords in all knowledge graphs from the database 300, and generates an entity dictionary based on the keywords. The server 200 then determines the synonyms of the entity words in the entity dictionary, and generates a synonym dictionary based on the entity words and the corresponding synonyms. For example, the synonym of the entity word "water making device" is "water making machine". Table 7 shows a partial synonym dictionary.
[0152] Table 7
[0153] Entity words Synonyms 1 Water making device Water Maker 2 Condenser Water condenser 3 Sunshine Road Water Machine Sunshine Dew Device 4 Air compressor Air Compressor 5 Check valve Check valve ... ... ...
[0154] Further, the server 200 generates an AC automaton dictionary based on entity words and corresponding synonyms in the synonym dictionary, and then constructs a Tire tree to generate an AC automaton based on the field of atmospheric water collection (ie, a multi-modal matching algorithm).
[0155] Further, the user inputs search information in the atmospheric water collection patent search application installed on the terminal device 100. Then the terminal device 100 sends the search information to the server 200. The search information includes search keywords and search text.
[0156] Further, refer to Fig.11 As shown, after receiving the search information, the server 200 determines that the search information is a search keyword, and then accurately identifies the search keyword (ie, the search information) through an AC automaton (ie, a multi-mode matching algorithm).
[0157] When the server 200 retrieves the entity word corresponding to the search keyword (ie, search information) through the AC automaton, it determines that the search is successful and uses the retrieved entity word as the entity name (ie, entity information) of the search keyword (ie, search information).
[0158] When the server 200 fails to retrieve the entity word corresponding to the search keyword (ie, search information), the server 200 calculates the cosine similarity and Jaccard similarity between the search keyword (ie, search information) and the entity words in the entity dictionary.
[0159] The calculation method of cosine similarity is as follows: the server 200 generates a corresponding search keyword vector a1 according to the search keyword part11 (ie, search information) in the word segmentation set, and generates a corresponding search keyword vector a1 according to each entity word part2 in the entity dictionary. u Generate the corresponding entity word vector b u.
[0160] Then the server 200 calculates the search keyword vector a1 and the entity word vector b of the entity word in the entity dictionary u Cosine similarity Sim cos_u , where the formula is as follows:
[0161] Sim cos_u =cos(a1,b u ).
[0162] The cosine similarity between two vectors is the cosine value of the angle between them, which is equal to the inner product of the two vectors divided by the product of their respective moduli. Through the formula, it can be intuitively believed that it eliminates the influence of vector length to a certain extent. The cosine similarity mainly reflects the difference in direction between the two vectors. When the angle between the two vectors is 0 degrees, it means that they are in the same direction. At this time, the similarity reaches the highest and the cosine value is equal to 1. When the angle is 90 degrees, the two vectors are perpendicular and the cosine value is 0. When the angle is 180 degrees, the two vectors are in opposite directions and the cosine value is -1.
[0163] And the server 200 calculates the similarity between the search keyword (ie, search information) a1 and the entity dictionary B by the Jaccard similarity formula, wherein the similarity value represents the ratio of the number of elements of the intersection of two sets to the number of elements of their union, and the formula is as follows:
[0164]
[0165] Further, the server 200 calculates the matching value Sim between the search keyword (ie, search information) and the entity word in the entity dictionary according to the cosine similarity and the Jaccard similarity. The calculation formula of the matching value Sim is:
[0166] Sim u =W jac *Sim jac +W cos *Sim cos_u ,
[0167] Where W jac Represents Jaccard similarity Sim jac The weight, W cos Represents cosine similarity Sim cos_u The weight of the Jaccard similarity is W. jac And the weight W of cosine similarity cos 0.5 is the best.
[0168] Thus, the technical solution generates entity information corresponding to the search keyword (i.e., search information), and then uses the entity information to search in the knowledge graph. Through this type of fuzzy query, the scope of the search is expanded, and it is not limited to obtaining only patent texts that contain words that are exactly the same as the search information, thereby accurately determining the corresponding patent text and reducing the limitations of the search.
[0169] Optionally, the search information is a search text, wherein the operation of determining the entity information corresponding to the search information further includes: performing sentence processing on the search information to determine multiple sentences; determining a corresponding first candidate participle according to the multiple sentences through a preset entity extraction method; determining a corresponding second candidate participle according to the multiple sentences through a named entity recognition model; merging the first candidate participle and the second candidate participle to generate a participle set; and matching the participles in the participle set with entity words in an entity dictionary to determine the entity information, wherein the entity dictionary is generated based on keywords in the knowledge graph.
[0170] Specifically, the user inputs search information into the atmospheric water collection patent search application installed on the terminal device 100. The terminal device 100 then sends the search information to the server 200. The search information includes search keywords and search text.
[0171] Further, after receiving the search information, the server 200 determines that the search information is a search text, and performs an accurate match on the search text through the AC automaton, thereby determining whether the search text has matching keywords.
[0172] When the server 200 determines through the AC automaton that the search text has no matching keywords, entities in the search text are extracted to perform matching.
[0173] More specifically, the server 200 first pre-processes the search text to remove useless information such as various brackets, abnormal characters, and redundant characters. The abnormal characters include, for example: ^¥~ %-+\n. Examples of redundant characters include: -\t\nAhaha~. Examples of brackets include: {}「」[]【】()()<>.
[0174] Afterwards, the server 200 performs sentence processing on the pre-processed search text to determine a plurality of sentences, wherein the sentence processing can be performed by punctuation marks “,.;;…!,:!??\r”.
[0175] Furthermore, the server 200 determines an entity as the first candidate word segment from multiple sentences through a preset entity extraction method.
[0176] Furthermore, the server 200 determines an entity as the second candidate word segment from the multiple sentences through a named entity recognition model, wherein the named entity recognition model is a named entity recognition model used in the process of establishing a knowledge graph.
[0177] Furthermore, the server 200 merges and removes duplicates of the first candidate segmentation and the second candidate segmentation to generate a segmentation set.
[0178] Furthermore, the server 200 calculates the cosine similarity and Jaccard similarity between each word segment in the word segmentation set and the entity word in the entity dictionary.
[0179] The calculation method of cosine similarity is as follows: the server 200 calculates each word part1 in the word set according to k Generate the corresponding word segmentation vector a k , and according to each entity word in the entity dictionary part2 u Generate the corresponding entity word vector b u . The number of segmented words in the segmented word set is less than or equal to the number of entity words in the entity dictionary.
[0180] Then the server 200 calculates the word vector a of the word in the word set k and the entity word vector b of the entity word in the entity dictionary u Cosine similarity Sim cos_u , where the formula is as follows:
[0181] Sim cos_u =cos(a k ,b u ).
[0182] The cosine similarity between two vectors is the cosine value of the angle between them, which is equal to the inner product of the two vectors divided by the product of their respective moduli. Through the formula, it can be intuitively believed that it eliminates the influence of vector length to a certain extent. The cosine similarity mainly reflects the difference in direction between the two vectors. When the angle between the two vectors is 0 degrees, it means that they are in the same direction. At this time, the similarity reaches the highest and the cosine value is equal to 1. When the angle is 90 degrees, the two vectors are perpendicular and the cosine value is 0. When the angle is 180 degrees, the two vectors are in opposite directions and the cosine value is -1.
[0183] And the server 200 calculates the similarity between the word segmentation set A and the entity dictionary B by using the Jaccard similarity formula, wherein the similarity represents the ratio of the number of elements in the intersection of the two sets to the number of elements in their union, and the formula is as follows:
[0184]
[0185] Further, the server 200 calculates the matching value Sim between the segmentation words in the segmentation set and the entity words in the entity dictionary according to the cosine similarity and the Jaccard similarity. The calculation formula of the matching value Sim is:
[0186] Sim u =W jac *Sim jac +W cos *Sim cos_u ,
[0187] Where W jac Represents Jaccard similarity Sim jac The weight, W cos Represents cosine similarity Sim cos_u The weight of the Jaccard similarity is W. jac And the weight W of cosine similarity cos 0.5 is the best.
[0188] Therefore, the technical solution uses the search text as search information, so that the server automatically generates entity information from the search text and then performs the search. Therefore, the technical solution can find other patent texts similar to a search text without constructing a cumbersome search formula, thereby improving the search efficiency.
[0189] Optionally, the operation of determining the corresponding first candidate participles according to a plurality of clauses by a preset entity extraction method includes: performing participle on a plurality of clauses to generate a plurality of first participles, and performing part-of-speech tagging on the plurality of first participles; calculating the first word weight of each first participle by a preset statistical method, wherein the first word weight is calculated according to the word frequency of each first participle; sequentially concatenating the plurality of first participles to generate a second participle, and calculating the second word weight of the second participle using a corpus constructed by an entity dictionary; and screening the second participles according to the first word weight and part of speech corresponding to the first participles constituting the second participle and the second word weight of the second participle to determine the first candidate participle.
[0190] Specifically, the server 200 performs word segmentation processing on multiple sentences corresponding to the search text, generates multiple word segmentations (i.e., first word segmentations), and then determines the part of speech of each first word segmentation, thereby performing part of speech tagging for each first word segmentation, where the part of speech includes n (noun), adj (adjective) and aux (auxiliary word), etc.
[0191] Furthermore, the server 200 calculates the word weight of the first word segment in the search text (ie, search information) by a preset statistical method, wherein the statistical method may be a TF-IDF method.
[0192] The core idea of the TF-IDF method is: if a word appears frequently in a specific corpus but rarely in other corpora, then the word will be considered to have good classification ability and is suitable for classification tasks. Among them, TF stands for term frequency, which indicates the frequency of a word in the text. Generally speaking, the term frequency value is normalized to prevent it from being biased towards long texts. The specific operation is to divide the term frequency by the total number of words in the corpus. IDF is the inverse document frequency, a statistical method to measure the importance of a word in the entire corpus. When calculating the IDF value of a word, divide the total number of corpora by the number of corpora containing the word, and then take the logarithm. When the number of corpora containing the word is smaller, the IDF value is larger, which usually indicates that the word has good classification ability.
[0193] The first word is calculated by TF-IDF method f The word weight TF_IDF in the search text (i.e., search information) f The formula is:
[0194]
[0195]
[0196] TF_IDF f =TF f *IDF f (3)
[0197] where n f It represents each first participle word f The frequency of occurrence in the search text query (i.e., search information). The denominator of Num is the total number of occurrences of all first participles in the search text query (i.e., search information) (i.e., the sum of the number of occurrences of each first participle). TF f Represents each first participle word f The frequency of occurrence in the search text query (i.e., search information).
[0198] Among them, |D| represents the number of search text queries (i.e., search information), which is 1, and DF f Contains the first participle word f The number of search text queries (i.e., search information). IDF f Represents each first participle word f The reverse file frequency.
[0199] In addition, in order to avoid the special situation where the denominator is zero due to the first participle not being in the search text query (ie, search information), Laplace correction can be used, that is, the denominator in formula (2) is taken as 1+DF.
[0200] Furthermore, the server 200 performs word segmentation processing on the entity words in the entity dictionary, and generates a corpus from the generated word segments.
[0201] For example, the corpus includes:
[0202] (1) Entity words: <s> Sunshine water making device< / s> . The participles include: "sunlight", "water production" and "device".
[0203] (2) Entity words: <s> Sunshine Dew Device< / s> . The participles include: "sunshine", "dew" and "vessel".
[0204] (3) Entity words: <s> Sunshine Dew Equipment< / s> . The participles include: "sunshine", "dew" and "equipment".
[0205] Furthermore, the server 200 sequentially concatenates the first word segments through the binary language model of the N-gram algorithm to generate multiple sentences. The binary language model of the N-gram algorithm is based on an assumption that the appearance of the Nth word is only related to the previous N-1 words, but not to any other words, and the probability of the whole sentence is the product of the probability of each word appearing.
[0206] The formula of the 2-gram language model of the N-gram algorithm is as follows:
[0207] P(x1,x2,x3,x4,x5,x6,x7,x8,x9,x 10 )
[0208] =P(x1)P(x2|x1)P(x3|x2)P(x4|x3)…P(x 10 |x9)
[0209] where x1~x 10 are the 10 first participles. p(·) represents the probability.
[0210] For example, the middle clause S of the search text (i.e., search information) is: <s> Sunshine water making device< / s> .
[0211] in <s> Marks the beginning of a sentence.< / s> It is a sentence end marker, and the first participle includes: "sunshine", "water production" and "device".
[0212] Thus, the server 200 sequentially marks the beginning of the sentence " <s> ", end-of-sentence marker"< / s> ” and the first participle “sunshine”, “water making” and “device” are concatenated to generate the concatenated participles “ <s> "Sunlight", "sunlight water", "water making device" and "device< / s> ". The server 200 needs to mark the beginning of the sentence "<s> " and end-of-sentence marker "< / s> " is used as a participle to be spliced with the first participle "sunshine", "water making" and "device".
[0213] Thus, the probability p(S) (i.e., the weight of the second word) of sentence S (i.e., the second word) is:
[0214] p(S)=p(sunlight| <s> )*p(water production|sunlight)*p(device|water production)*p(< / s> |device).
[0215] Furthermore, the server calculates the probability p(S) of the sentence S (i.e., the second word weight) based on the word segments in the corpus:
[0216]
[0217] Where c( <s>·Sunshine) means in the corpus" <s>The amount of sunlight, c( <s>*) indicates that in the corpus, <s>” is the number of sentence-initial markers. Similarly, the other c(·)s are the same as explained above.
[0218] thereby:
[0219] Further, the server 200 determines the first participles "sunshine", "water production" and "device" that constitute the sentence S (i.e., the second participle), and obtains the first word weights of the first participles "sunshine", "water production" and "device". The server 200 then calculates the sum of the first word weights of the first participles and generates a third word weight corresponding to the second participle.
[0220] Further, the server 200 determines whether the second word weight and the third word weight of the sentence S (ie, the second word) exceed preset thresholds, respectively. The preset threshold corresponding to the second word weight and the preset threshold corresponding to the third word weight may be different.
[0221] When both the second word weight and the third word weight exceed the preset threshold, the server 200 obtains the entity type of the first word constituting the sentence S (i.e., the second word), and determines whether the sentence S (i.e., the second word) meets the part-of-speech composition standard according to the part-of-speech composition standard table. Table 8 is the part-of-speech composition standard table, and Table 8 is as follows.
[0222] Table 8
[0223]
[0224] As shown in Table 8, for example, if the entity types of the first participles constituting the second participle are all components, and the part of speech is all n, that is, the part of speech composition is n+n+n, then the second participle meets the part of speech composition standard.
[0225] Thus, the server 200 determines that the entity types of the first participles "sunshine", "water production" and "device" constituting the clause S (i.e., the second participle) are all components, and the part of speech is n, so the corresponding part of speech composition is n+n+n. Thus, the server 200 determines that the clause S (i.e., the second participle) meets the part of speech composition standard.
[0226] Furthermore, the server 200 determines that when the second word weight and the third word weight corresponding to the sentence S (ie, the second participle) both exceed the preset threshold, and the sentence S (ie, the second participle) meets the part-of-speech composition standard, the second participle is used as the first candidate participle.
[0227] Furthermore, the server 200 determines whether other sentences (ie, the second participle) in the search text (ie, the search information) can be used as the first candidate participle according to the above method for determining the first candidate participle, which will not be described in detail here.
[0228] Therefore, the technical solution can reduce redundant words when determining the entity based on the search information by splicing multiple word segments into a complete entity, thereby making the match more accurate.
[0229] In addition, reference Figure 1 As shown, according to the second aspect of this embodiment, a storage medium is provided, wherein the storage medium includes a stored program, wherein when the program is run, the processor executes the above method.
[0230] Therefore, according to this embodiment, the server uses the entities in the patent text in the field of atmospheric water collection and the relationship between the entities to construct a knowledge graph as a patent library. Afterwards, the server uses the entity information corresponding to the search information to search the knowledge graph, wherein the entity information and the search information may be different. Compared with the method of accurately matching each patent text through the keywords in the search formula in the prior art, the present technical solution generates entity information corresponding to the search information, and then uses the entity information to search in the patent library, thereby expanding the scope of the search through this type of fuzzy query, and is not limited to obtaining only patent texts that have exactly the same words as the search information, thereby accurately determining the corresponding patent text and reducing the limitations of the search.
[0231] In addition, the technical solution can also use text (i.e., search text) as search information, so that the server automatically generates entity information from the search text and then performs the search. Therefore, the technical solution can find other patent texts similar to the search text without constructing a cumbersome search formula, thereby improving the search efficiency. This solves the technical problems of reduced work efficiency and low search accuracy caused by inaccurate search formulas in the prior art.
[0232] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0233] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0234] Example 2
[0235] Fig.12 The atmospheric water collection patent search device 1200 according to this embodiment is shown, and the device 1200 corresponds to the method according to the first aspect of embodiment 1. Fig.12 As shown, the device 1200 includes: a text acquisition module 1210, which is used to acquire multiple patent texts related to the field of atmospheric water collection; an entity determination module 1220, which is used to perform named entity recognition on each patent text using the entity type related to the field of atmospheric water collection, and determine the entity corresponding to each patent text; a relationship determination module 1230, which is used to extract relationships based on the identified entities and determine the relationship between the entities of each patent text; a knowledge graph determination module 1240, which is used to determine the knowledge graph corresponding to each patent text based on the determined entities and relationships; an information determination module 1250, which is used to receive search information input by a user and determine the entity information corresponding to the search information, wherein the search information includes search keywords and search text; and a patent determination module 1260, which is used to search from the knowledge graphs of multiple patent texts based on the determined entity information and determine the patent corresponding to the search information.
[0236] Optionally, the entity determination module 1220 includes: a first generation submodule, which is used to process the patent text through the multi-feature fusion embedding layer of the preset named entity recognition model to generate a multi-feature fusion vector; a second generation submodule, which is used to perform a convolution operation on the multi-feature fusion vector through the PRIDCNN layer of the named entity recognition model to generate a corresponding feature sequence; a third generation submodule, which is used to perform structural processing on the feature sequence through the high-speed network layer of the named entity recognition model to generate a corresponding feature vector; a first determination submodule, which is used to determine the label information of the feature vector according to the entity type through the CRF layer of the named entity recognition model; and a second determination submodule, which is used to determine the entity corresponding to each patent text according to the label information.
[0237] Optionally, the first generation submodule includes: a first determination unit, used to determine the character-level feature vector, word-level feature vector, word position vector, preset label vector and part-of-speech vector corresponding to each character according to the patent text through a multi-feature fusion embedding layer; and a first generation unit, used to concatenate the character-level feature vector, word-level feature vector, word position vector, preset label vector and part-of-speech vector to generate a multi-feature fusion vector.
[0238] Optionally, the relationship determination module 1230 includes: a fourth generation submodule, which is used to process the patent text through the word embedding layer of the preset relationship extraction model to generate a word fusion vector; a fifth generation submodule, which is used to fuse the word fusion vector and the position information and label information of the word fusion vector through the position and label embedding layer of the relationship extraction model to generate an embedding vector, wherein the label information is the label information of the corresponding entity output by the named entity recognition model; a sixth generation submodule, which is used to process the embedding vector through the BIGRU layer of the relationship extraction model to generate a corresponding hidden state vector; a seventh generation submodule, which is used to determine the word attention value of the hidden state vector through the CWAttention layer of the relationship extraction model to generate an attention feature vector; and a third determination submodule, which is used to classify the attention feature vector through a softmax classifier to determine the relationship between the corresponding entities.
[0239] Optionally, the information determination module 1250 includes: a fourth determination submodule, configured to determine entity information corresponding to the search information by using a preset multi-mode matching algorithm.
[0240] Optionally, the information determination module 1250 also includes: a fifth determination submodule, which is used to perform sentence processing on the search information to determine multiple sentences; a sixth determination submodule, which is used to determine the corresponding first candidate participles according to the multiple sentences through a preset entity extraction method; a seventh determination submodule, which is used to determine the corresponding second candidate participles according to the multiple sentences through a named entity recognition model; an eighth generation submodule, which is used to merge the first candidate participle and the second candidate participle to generate a participle set; and an eighth determination submodule, which is used to match the participles in the participle set with the entity words in the entity dictionary to determine the entity information, wherein the entity dictionary is generated according to the keywords in the knowledge graph.
[0241] Optionally, the sixth determination submodule further includes: a tagging unit, which is used to segment multiple sentences, generate multiple first segmentations, and perform part-of-speech tagging on the multiple first segmentations; a first calculation unit, which is used to calculate the first word weight of each first segmentation by a preset statistical method, wherein the first word weight is calculated according to the word frequency of each first segmentation; a second calculation unit, which is used to sequentially concatenate the multiple first segmentations to generate a second segmentation, and calculate the second word weight of the second segmentation using a corpus constructed by an entity dictionary; and a screening unit, which is used to screen the second segmentations according to the first word weight and part of speech corresponding to the first segmentations constituting the second segmentations and the second word weight of the second segmentations, and determine the first candidate segmentation.
[0242] Therefore, according to this embodiment, the server uses the entities in the patent text in the field of atmospheric water collection and the relationship between the entities to construct a knowledge graph as a patent library. Afterwards, the server uses the entity information corresponding to the search information to search the knowledge graph, wherein the entity information and the search information may be different. Compared with the method of accurately matching each patent text through the keywords in the search formula in the prior art, the present technical solution generates entity information corresponding to the search information, and then uses the entity information to search in the patent library, thereby expanding the scope of the search through this type of fuzzy query, and is not limited to obtaining only patent texts that have exactly the same words as the search information, thereby accurately determining the corresponding patent text and reducing the limitations of the search.
[0243] In addition, the technical solution can also use text (i.e., search text) as search information, so that the server automatically generates entity information from the search text and then performs the search. Therefore, the technical solution can find other patent texts similar to the search text without constructing a cumbersome search formula, thereby improving the search efficiency. This solves the technical problems of reduced work efficiency and low search accuracy caused by inaccurate search formulas in the prior art.
[0244] Example 3
[0245] Fig.13 The atmospheric water collection patent search device 1300 according to the first aspect of this embodiment is shown, and the device 1300 corresponds to the method according to the first aspect of embodiment 1. Fig.13 As shown, the device 1300 includes: a processor 1310; and a memory 1320, which is connected to the processor 1310 and is used to provide the processor 1310 with instructions for processing the following processing steps: obtaining multiple patent texts related to the field of atmospheric water collection; performing named entity recognition on each patent text using the entity type related to the field of atmospheric water collection, and determining the entity corresponding to each patent text; performing relationship extraction based on the identified entities, and determining the relationship between the entities of each patent text; determining the knowledge graph corresponding to each patent text based on the determined entities and relationships; receiving search information input by a user, and determining the entity information corresponding to the search information, wherein the search information includes search keywords and search text; and searching from the knowledge graphs of multiple patent texts based on the determined entity information to determine the patent corresponding to the search information.
[0246] Optionally, named entity recognition is performed on each patent text using entity types related to the field of atmospheric water collection to determine the operations of entities corresponding to each patent text, including: processing the patent text through a multi-feature fusion embedding layer of a preset named entity recognition model to generate a multi-feature fusion vector; performing convolution operations on the multi-feature fusion vector through the PRIDCNN layer of the named entity recognition model to generate a corresponding feature sequence; performing structural processing on the feature sequence through the high-speed network layer of the named entity recognition model to generate a corresponding feature vector; determining the label information of the feature vector according to the entity type through the CRF layer of the named entity recognition model; and determining the entity corresponding to each patent text based on the label information.
[0247] Optionally, the patent text is processed through a multi-feature fusion embedding layer of a preset named entity recognition model to generate a multi-feature fusion vector, including: determining a character-level feature vector, a word-level feature vector, a word position vector, a preset label vector and a part-of-speech vector corresponding to each character according to the patent text through a multi-feature fusion embedding layer; and concatenating the character-level feature vector, the word-level feature vector, the word position vector, the preset label vector and the part-of-speech vector to generate a multi-feature fusion vector.
[0248] Optionally, performing relationship extraction based on the identified entities to determine the relationship between entities in each patent text includes: processing the patent text through a word embedding layer of a preset relationship extraction model to generate a word fusion vector; fusing the word fusion vector and the position information and label information of the word fusion vector through a position and label embedding layer of the relationship extraction model to generate an embedding vector, wherein the label information is the label information of the corresponding entity output by the named entity recognition model; processing the embedding vector through a BIGRU layer of the relationship extraction model to generate a corresponding hidden state vector; determining the word and sentence attention value of the hidden state vector through a CWAttention layer of the relationship extraction model to generate an attention feature vector; and classifying the attention feature vector through a softmax classifier to determine the relationship between the corresponding entities.
[0249] Optionally, the search information is a search keyword, and the operation of determining the entity information corresponding to the search information includes: determining the entity information corresponding to the search information by using a preset multi-mode matching algorithm.
[0250] Optionally, the search information is a search text, wherein the operation of determining the entity information corresponding to the search information further includes: performing sentence processing on the search information to determine multiple sentences; determining a corresponding first candidate participle according to the multiple sentences through a preset entity extraction method; determining a corresponding second candidate participle according to the multiple sentences through a named entity recognition model; merging the first candidate participle and the second candidate participle to generate a participle set; and matching the participles in the participle set with entity words in an entity dictionary to determine the entity information, wherein the entity dictionary is generated based on keywords in the knowledge graph.
[0251] Optionally, the operation of determining the corresponding first candidate participles according to a plurality of clauses by a preset entity extraction method includes: performing participle on a plurality of clauses to generate a plurality of first participles, and performing part-of-speech tagging on the plurality of first participles; calculating the first word weight of each first participle by a preset statistical method, wherein the first word weight is calculated according to the word frequency of each first participle; sequentially concatenating the plurality of first participles to generate a second participle, and calculating the second word weight of the second participle using a corpus constructed by an entity dictionary; and screening the second participles according to the first word weight and part of speech corresponding to the first participles constituting the second participle and the second word weight of the second participle to determine the first candidate participle.
[0252] Therefore, according to this embodiment, the server uses the entities in the patent text in the field of atmospheric water collection and the relationship between the entities to construct a knowledge graph as a patent library. Afterwards, the server uses the entity information corresponding to the search information to search the knowledge graph, wherein the entity information and the search information may be different. Compared with the method of accurately matching each patent text through the keywords in the search formula in the prior art, the present technical solution generates entity information corresponding to the search information, and then uses the entity information to search in the patent library, thereby expanding the scope of the search through this type of fuzzy query, and is not limited to obtaining only patent texts that have exactly the same words as the search information, thereby accurately determining the corresponding patent text and reducing the limitations of the search.
[0253] In addition, the technical solution can also use text (i.e., search text) as search information, so that the server automatically generates entity information from the search text and then performs the search. Therefore, the technical solution can find other patent texts similar to the search text without constructing a cumbersome search formula, thereby improving the search efficiency. This solves the technical problems of reduced work efficiency and low search accuracy caused by inaccurate search formulas in the prior art.
[0254] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0255] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0256] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0257] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0258] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0259] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0260] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.< / s> < / s> < / s> < / s>
Claims
1. A patent search method for atmospheric water collection, characterized in that: include: Access to multiple patent texts related to the field of atmospheric water collection; Perform named entity recognition on each patent text using entity types related to the field of atmospheric water collection to determine entities corresponding to each patent text; Perform relationship extraction based on the identified entities to determine the relationship between the entities of each patent text; Determine, based on the determined entities and relationships, a knowledge graph corresponding to each of the patent texts; Receiving search information input by a user, and determining entity information corresponding to the search information, wherein the search information includes a search keyword and a search text; as well as A search is performed from the knowledge graph of the plurality of patent texts according to the determined entity information to determine a patent corresponding to the search information.
2. The method according to claim 1, characterized in that The operations of performing named entity recognition on each patent text using entity types related to the field of atmospheric water collection to determine entities corresponding to each patent text include: Processing the patent text through a multi-feature fusion embedding layer of a preset named entity recognition model to generate a multi-feature fusion vector; Performing a convolution operation on the multi-feature fusion vector through the PRIDCNN layer of the named entity recognition model to generate a corresponding feature sequence; Performing structural processing on the feature sequence through the high-speed network layer of the named entity recognition model to generate a corresponding feature vector; Determining label information of the feature vector according to the entity type through the CRF layer of the named entity recognition model; and The entities corresponding to the respective patent texts are determined according to the tag information.
3. The method according to claim 2, characterized in that The patent text is processed through the multi-feature fusion embedding layer of the preset named entity recognition model to generate a multi-feature fusion vector operation, including: Determining, through the multi-feature fusion embedding layer, a character-level feature vector, a word-level feature vector, a word position vector, a preset label vector, and a part-of-speech vector corresponding to each character according to the patent text; and The character-level feature vector, the word-level feature vector, the word position vector, the preset label vector and the part-of-speech vector are concatenated to generate the multi-feature fusion vector.
4. The method according to claim 2, characterized in that: The operation of performing relationship extraction based on the identified entities to determine the relationship between the entities of the various patent texts includes: Processing the patent text through a word embedding layer of a preset relational extraction model to generate a word fusion vector; The word fusion vector and the position information and label information of the word fusion vector are fused through the position and label embedding layer of the relationship extraction model to generate an embedding vector, wherein the label information is the label information of the corresponding entity output by the named entity recognition model; Processing the embedding vector through the BIGRU layer of the relationship extraction model to generate a corresponding hidden state vector; Determine the word attention value of the hidden state vector through the CWAttention layer of the relation extraction model to generate an attention feature vector; and The attention feature vector is classified by a softmax classifier to determine the relationship between corresponding entities.
5. The method according to claim 1, characterized in that The search information is a search keyword, and the operation of determining the entity information corresponding to the search information includes: The entity information corresponding to the search information is determined by a preset multi-mode matching algorithm.
6. The method according to claim 2, characterized in that The search information is a search text, and the operation of determining entity information corresponding to the search information further includes: Perform sentence processing on the search information to determine a plurality of sentences; Determine a corresponding first candidate participle according to the plurality of clauses by a preset entity extraction method; Determine corresponding second candidate participles according to the plurality of clauses by using the named entity recognition model; Merging the first candidate participle and the second candidate participle to generate a participle set; and The segmented words in the segmented word set are matched with entity words in an entity dictionary to determine the entity information, wherein the entity dictionary is generated based on keywords in the knowledge graph.
7. The method according to claim 6, characterized in that The operation of determining the corresponding first candidate participle according to the plurality of clauses by using a preset entity extraction method includes: Performing word segmentation on the multiple sentences to generate multiple first word segmentations, and performing part-of-speech tagging on the multiple first word segmentations; Calculating the first word weight of each first participle by a preset statistical method, wherein the first word weight is calculated according to the word frequency of each first participle; sequentially concatenate the plurality of first participles to generate a second participle, and calculate a second word weight of the second participle using the corpus constructed by the entity dictionary; and The second participle is screened according to the first word weight and part of speech corresponding to the first participle constituting the second participle and the second word weight of the second participle to determine the first candidate participle.
8. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is run, the processor executes the method according to any one of claims 1 to 7.
9. A patent search device for atmospheric water collection, characterized in that: include: A text acquisition module, used to acquire multiple patent texts related to the field of atmospheric water collection; An entity determination module, used to perform named entity recognition on each patent text using entity types related to the field of atmospheric water collection, and determine entities corresponding to each patent text; A relationship determination module, used to extract relationships based on the identified entities and determine the relationships between the entities of the various patent texts; A knowledge graph determination module, used to determine the knowledge graph corresponding to each patent text according to the determined entities and relationships; An information determination module, used to receive search information input by a user and determine entity information corresponding to the search information, wherein the search information includes a search keyword and a search text; as well as The patent determination module is used to search from the knowledge graph of the multiple patent texts according to the determined entity information to determine the patent corresponding to the search information.
10. A patent search device for atmospheric water collection, characterized in that: include: processor; as well as A memory, connected to the processor, configured to provide the processor with instructions for processing the following processing steps: Access to multiple patent texts related to the field of atmospheric water collection; Perform named entity recognition on each patent text using entity types related to the field of atmospheric water collection to determine entities corresponding to each patent text; Perform relationship extraction based on the identified entities to determine the relationship between the entities of each patent text; Determine, based on the determined entities and relationships, a knowledge graph corresponding to each of the patent texts; Receiving search information input by a user, and determining entity information corresponding to the search information, wherein the search information includes a search keyword and a search text; as well as A search is performed from the knowledge graph of the plurality of patent texts according to the determined entity information to determine a patent corresponding to the search information.
Citation Information
Patent Citations
Patent retrieval method and device, electronic equipment and computer readable storage medium
CN111930897A
Knowledge graph construction method and system for science and technology policy field
CN113254602A
Semantic enhancement type Chinese entity relation extraction method and system based on relation constraint
CN117252205A
