An entity matching method and system based on cross-attribute symbol alignment

Through the cross-attribute symbol alignment method based on the hierarchical selection mechanism and attention mechanism, combined with the neural network framework, the problem of pattern heterogeneity and the impact of noisy data in the existing technology is solved, and the accuracy and performance of entity matching are improved.

CN114359595BActive Publication Date: 2024-09-13INST OF SOFTWARE - CHINESE ACAD OF SCI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202011039613.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-28
Publication Date
2024-09-13
Estimated Expiration
2040-09-28

AI Technical Summary

Technical Problem

When facing the challenge of schema heterogeneity, existing entity matching technology is difficult to effectively handle complex attribute correspondences and ignores entity structure information, resulting in error propagation and performance degradation.

Method used

A cross-attribute symbol alignment method based on a hierarchical selection mechanism is adopted, combined with the attribute comparison of the attention mechanism, to adaptively select symbol alignment objects through the bidirectional GRU network and HighwayNet network, and integrate symbol alignment, attribute comparison and aggregation in the neural network framework. process, taking full advantage of entity hierarchy information.

Benefits of technology

It effectively solves the problem of pattern heterogeneity, reduces the interference of noisy data on the final alignment result, improves entity matching performance, avoids error propagation and local optimization problems, and achieves more accurate entity matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114359595B
    Figure CN114359595B
Patent Text Reader

Abstract

The present invention provides an entity matching method and system based on cross-attribute symbol alignment, including representing each attribute value of the to-be-matched entity e1 and the to-be-matched entity e2 as a symbol sequence, obtaining a symbol vector representation and a context vector representation; selecting the most similar symbol from all attributes of the to-be-matched entity of the other party as an alignment target according to the symbol vector representation and the context vector representation; calculating the symbol comparison result between the alignment target; calculating the weight of each symbol in each symbol sequence; obtaining a first matching result and a second matching result through each symbol comparison result and the corresponding weight; splicing the first matching result and the second matching result into a comparison vector and classifying them to determine whether the to-be-matched entity e1 and the to-be-matched entity e2 match. The present invention solves the problem of pattern heterogeneity in entity matching by selecting the optimal comparison object for the symbols in all attributes, and reduces the influence of redundant and noisy data on the matching results according to the importance of different symbols.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of entity matching, and in particular to an entity matching method and system based on cross-attribute symbol alignment. Background Art

[0002] Entity matching, also known as entity resolution or entity alignment, is the process of determining whether two entity descriptions from the same or different sources refer to the same object in the real world. In different application fields, entity matching tasks are also called differently. For example, in the database field, it is also called record linkage, record matching, or duplicate detection; in the field of natural language processing and information retrieval, it is often called coreference resolution. Entity matching technology plays a very important role in data cleaning, data integration, knowledge completion, knowledge fusion, etc.

[0003] In the entity matching task, the entity record to be matched is usually a structured object, consisting of one or more <attribute, attribute value> pairs, and each attribute value is composed of one or more tokens. Most existing entity matching methods assume that the entity records to be matched are isomorphic, that is, they are composed of the same or aligned attributes. Under this premise, given two entity records, the typical method first compares the attribute values ​​of the same / aligned attributes, and then aggregates the comparison results under all attributes to make the final entity matching decision.

[0004] In real application scenarios, the above methods often face the challenge of schema heterogeneity. Schema heterogeneity means that the entity records to be matched are composed of different attributes. To use the attribute alignment-based method for heterogeneous entities, it is usually necessary to perform an additional schema matching step to align the attributes. However, since there may be various complex correspondences between the attributes of heterogeneous entities, schema matching itself is also a very difficult task. At the same time, since the processes of schema matching and entity matching are independent of each other, it is easy to cause problems such as error propagation, which in turn affects the global optimization of the entire entity matching system.

[0005] In order to solve the above problems, some existing methods uniformly convert structured entity records into one-dimensional symbol sequences, and then use sequence-based models for entity matching. The disadvantage of this type of method is that it ignores the entity structure information that is very important for entity matching. Some other methods propose to perform pattern matching simultaneously during the attribute comparison process, but they only target the case where attributes can be aligned one-to-one, and cannot handle more complex attribute correspondences such as one-to-many and many-to-many. In some recently proposed end-to-end entity resolution methods (Seq2SeqMatcher model (CIKM2019), HierMatcher model (IJCAI2020), etc.), a global selection mechanism is used to align symbols across attributes, which to some extent alleviates the challenge of pattern heterogeneity in entity resolution. However, this type of method ignores the local context information (attribute layer) of the symbol when performing symbol alignment. Specifically, given a symbol, when selecting an alignment object for it from another entity, this type of method treats all symbols in all attributes equally without considering the differences between different attributes, especially when some attribute values ​​contain a lot of noise, which will have a great impact on the final symbol alignment performance. Summary of the invention

[0006] In order to overcome the challenges of pattern heterogeneity faced by existing entity matching technologies, the present invention provides an entity matching method and system based on cross-attribute symbol alignment, which breaks the constraints of attribute boundaries through cross-attribute symbol alignment based on a hierarchical selection mechanism and attribute comparison based on an attention mechanism, adaptively selects comparison objects for each symbol in all attributes, and identifies important symbol-layer matching signals for different attributes.

[0007] The technical solution adopted by the present invention is as follows:

[0008] An entity matching method based on cross-attribute symbol alignment, the steps of which include:

[0009] 1) Represent each attribute value of the to-be-matched entity e1 and the to-be-matched entity e2 as a symbol sequence, and obtain a symbol vector representation and a context vector representation of each symbol;

[0010] 2) For each symbol of the entity to be matched e1 and the entity to be matched e2, according to the symbol vector representation and the context vector representation, the most similar symbol is selected from all attributes of the other entity to be matched as the alignment target, and the symbol comparison results between the alignment target and the symbol comparison results are calculated respectively;

[0011] 3) According to the context vector representation, the weight of each symbol in each symbol sequence is calculated, and the first matching result between each attribute of the entity to be matched e1 and the entity to be matched e2 and the second matching result between each attribute of the entity to be matched e2 and the entity to be matched e1 are obtained through the comparison results of each symbol and the corresponding weight;

[0012] 4) The first matching result and the second matching result are concatenated into a comparison vector and classified to determine whether the to-be-matched entity e1 matches the to-be-matched entity e2.

[0013] Furthermore, a bidirectional GRU network is used to obtain the context vector representation of each symbol.

[0014] Furthermore, for each symbol of the entity e1 to be matched, the most similar symbol is selected from all attributes of the entity e2 to be matched through the following steps:

[0015] 1) Based on the symbol vector representation and context vector representation of each symbol in the entity e2 to be matched, an embedding representation matrix and a context representation matrix of each attribute value of the entity e2 to be matched are respectively constructed;

[0016] 2) Symbolize the attribute value x of the entity to be matched e1 1it The corresponding symbolic vector represents w 1it The embedding representation matrices of the entity to be matched e2 are input into a HighwayNet network respectively to obtain the hidden representation g of each symbol vector of the entity to be matched e1 1it The hidden representation G of each attribute value of the entity e2 to be matched 2j , where 1≤i≤m, 1≤t≤T, 1≤j≤n, m is the number of attributes of the entity e1 to be matched, T is the number of symbols in the attribute value i of the entity e1 to be matched, and n is the number of attributes of the entity e2 to be matched;

[0017] 3) Calculate the vector representation w of each symbol through the dot multiplication operation 1it Treat each symbol q in the attribute value j of the matching entity e2 j The attention vector in Q is the number of symbols in the attribute value j of the entity e2 to be matched;

[0018] 4) Use an element-level function f to convert the attention vector v 2j Converted into a one-hot selection vector s 2j , and according to the symbols q j V 2j [q j ] value, select the symbol vector representation w from the attribute value j of the entity e2 to be matched 1it The alignment candidate symbol q′ j, calculate the alignment candidate symbol q′ j The context representation vector Get the symbol x 1it The context vector representation h 1it The corresponding alignment candidate set c2 = [c 21 , ...c 2j , ..., c 2n ],in u is the hidden layer size of the bidirectional GRU network used to obtain context representation;

[0019] 5) Use an element-wise comparison operation to compare w 1it Get a contrast matrix and convert it into an attention vector Where w1 is a randomly initialized weight vector, Outer Product Operation By repeating the left vector n times, we get a 2u×n matrix;

[0020] 6) Use an element-level function f to convert v2 into a one-hot selection vector s2, and select the vector s2 according to each c 2j v2[c 2j ] value, select the symbolic vector representing w 1it The alignment symbol q″ j .

[0021] Further, the contrast matrix is ​​converted into an attention vector v2 through a linear layer and a softmax function.

[0022] Furthermore, the sign comparison result r 1it =|h 1it -h′ 1it |, where

[0023] Furthermore, the matching result r 1i =∑ t β 1it r 1it ,in u 1i is the context vector representation of an attribute of the entity e1 to be matched, r 1it is the comparison vector w of the tth symbol in the attribute of the entity e1 to be matched 1it .

[0024] Furthermore, the comparison vectors are fed into a one- or two-layer HighwayNet neural network before being classified.

[0025] Further, the method of classifying the comparison vector includes a softmax function.

[0026] A storage medium stores a computer program, wherein the computer program is configured to execute the above method when running.

[0027] An entity matching system based on cross-attribute symbol alignment, comprising:

[0028] The attribute representation layer is used to represent each attribute value of the to-be-matched entity e1 and the to-be-matched entity e2 as a symbol sequence, and obtain a symbol vector representation and a context vector representation of each symbol;

[0029] The symbol alignment layer is used to select the most similar symbol from all attributes of the other entity to be matched as the alignment target for each symbol of the entity to be matched e1 and the entity to be matched e2 according to the symbol vector representation and the context vector representation, and calculate the symbol comparison results between the alignment target and each symbol;

[0030] The attribute comparison layer is used to calculate the weight of each symbol in each symbol sequence according to the context vector representation, and obtain the first matching result between each attribute of the to-be-matched entity e1 and the to-be-matched entity e2 and the second matching result between each attribute of the to-be-matched entity e2 and the to-be-matched entity e1 through the comparison results of each symbol and the corresponding weight;

[0031] The aggregation layer is used to splice the first matching result and the second matching result into a comparison vector and classify it to determine whether the to-be-matched entity e1 matches the to-be-matched entity e2.

[0032] Furthermore, according to the error between the prediction result and the real sample, the back propagation algorithm is used to perform end-to-end training on the symbol alignment layer, the attribute comparison layer and the aggregation layer.

[0033] Compared with the prior art, the present invention has the following beneficial effects:

[0034] 1) A cross-attribute symbol alignment method based on hierarchical selection mechanism is proposed. By selecting the best comparison object for each symbol in all attributes, it can effectively solve the problem of pattern heterogeneity in entity matching. Compared with the existing attribute alignment method based on global selection, this selection mechanism can make full use of the hierarchical structure information of the entity. When performing symbol alignment, by first filtering the local context information within the attribute, it can effectively reduce the interference of some dirty attribute values ​​(containing a lot of redundant and noisy data) on the final alignment result.

[0035] 2) An attribute comparison method based on the attention mechanism is proposed, which can fully consider the importance of different symbols when performing attribute comparison, thereby reducing the impact of redundant and noisy data on the matching results.

[0036] 3) A "alignment-comparison-aggregation" neural network matching framework is proposed, which jointly models components such as symbol alignment, attribute comparison and aggregation in a unified neural network framework, so that the entire entity matching model can be well globally optimized and can effectively avoid the error propagation problem in traditional methods, thereby obtaining better entity matching performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A network framework for entity matching based on cross-attribute symbol alignment.

[0038] Figure 2 It is a schematic diagram of the hierarchical selection mechanism in the present invention. DETAILED DESCRIPTION

[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below through specific embodiments and drawings.

[0040] The present invention provides an entity matching method based on cross-attribute symbol alignment, and its key steps include:

[0041] 1) Cross-attribute symbol alignment based on hierarchical selection mechanism: For each symbol in each attribute, the selection modules at the attribute layer and entity layer are used in turn to select the most similar symbol from another entity as the alignment target;

[0042] 2) Attribute comparison based on attention mechanism: Using the attention mechanism, a context vector is learned for each attribute to identify the importance of each symbol. Then, based on the importance, the comparison signals at the symbol layer are aggregated to obtain the comparison results at the attribute layer.

[0043] 3) "Alignment-comparison-aggregation" neural network matching framework: The components of symbol alignment, attribute comparison and aggregation are jointly modeled in a unified neural network framework. By obtaining comparison evidence layer by layer from low to high (symbol layer-attribute layer-entity layer), the hierarchical structure information of the entity can be fully utilized. Since all modules are learnable, the entire model can be optimized end-to-end, thus effectively avoiding error propagation and local optimization problems.

[0044] The present invention relates to the following key elements:

[0045] 1. “Align-Compare-Aggregate” Neural Network Matching Framework

[0046] Given two heterogeneous entity records, the present invention designs a Figure 1 The “align-compare-aggregate” neural network framework shown in the figure is used to match them, where H 1iis the contextual representation of the i-th attribute value of the first entity record e1, H 2j is the contextual representation of the j-th attribute value of the second entity record e2, H′ 1i is the H obtained based on the hierarchical selection mechanism 1i The alignment result (H′ 1i Each symbol is H 1i The alignment result of the corresponding symbols in ), softmax represents the softmax classifier, and P(y|e1, e2) represents the probability that entity records e1 and e2 point to the same entity. The framework consists of an attribute representation layer, a symbol alignment layer, an attribute comparison layer, and an aggregation layer. The attribute representation layer inputs all attribute value pairs of the two entity records, and the output of the top layer of the framework is the matching probability of the two input entity records. Specifically, in this framework, the input attribute values ​​are first encoded (input layer); then a hierarchical selection mechanism is used to align each symbol across attributes (symbol alignment layer); then an attribute comparison layer based on an attention mechanism is used to obtain the comparison result of each attribute (attribute comparison layer); finally, the comparison results of all attributes are combined to make the final entity matching decision (aggregation layer). The following is a layer-by-layer description of the framework:

[0047] 1) Attribute Representation Layer

[0048] Each attribute value is considered as a symbol sequence, and a symbol vector representation and a context vector representation are obtained for each symbol. The symbol vector representation directly uses the pre-trained word vector, and the context vector is obtained by passing the symbol sequence through a bidirectional GRU network.

[0049] 2) Symbol alignment layer

[0050] For each symbol in each attribute, this layer first uses the selection module of the attribute layer to select a symbol from each attribute value of another entity as an alignment candidate, and then uses the selection module of the entity layer to filter out the final alignment symbol from all candidates. In this way, the alignment object of each symbol can come from any attribute of another entity, thus breaking through the pattern isomorphism constraints existing in existing alignment attribute-based methods. The cross-attribute symbol alignment module used in this layer is described in detail later.

[0051] 3) Attribute comparison layer

[0052] In this layer, the comparative evidence of each attribute at the symbolic layer is aggregated to form the comparative result at the attribute layer. The attention mechanism used in this layer can adaptively identify important information for each attribute, which is described in detail later.

[0053] 4) Polymerization layer

[0054] In this layer, the matching results of all attribute layers of the two entities to be matched are first concatenated into a comparison vector, which is then input into a two-layer HighwayNet neural network, and finally a softmax module is used to make the final decision. The output of this layer is the matching probability P(y|e1, e2), where y=1 means that entity records e1 and e2 refer to the same entity.

[0055] The above framework models all symbol alignment, attribute comparison, entity-level comparison and aggregation processes as learnable neural network components, so the entire entity matching framework can be globally optimized in an end-to-end manner.

[0056] 2. Cross-attribute symbol alignment based on hierarchical selection mechanism

[0057] In the entity matching task with heterogeneous existence patterns, the information corresponding to an attribute may be scattered in multiple attributes of the other entity. This means that to obtain the accurate comparison object for an attribute value, it is necessary to search in the entire entity, not just in a specific attribute.

[0058] To solve this problem, the present invention designs a cross-attribute symbol alignment module, which uses a hierarchical selection mechanism to select the most similar symbol from each other entity as the alignment result. Figure 2 As shown, where h′ 1it is the tth symbol w of the i-th attribute in e1 from the entity record e2 1it The contextual representation of the selected alignment object, H 2j is the context representation matrix of the j-th attribute in e2, C 2j It is from H 2j w 1it The hierarchical selection mechanism for selecting alignment candidates includes the following two modules:

[0059] (1) Attribute layer selection module

[0060] Given a symbol, the selection module at the attribute level is used to obtain an alignment candidate from each attribute of another entity. Take the tth symbol w of the ith attribute of entity record e1 1it For example, the symbol embedding vector and context representation vector obtained from the representation layer are and Where d is the dimension of the pre-trained symbol vector and u is the hidden layer size of the bidirectional GRU used to obtain the context representation. Assume that the j-th attribute value (a 2j )’s embedding representation matrix and context representation matrix are and where Q is the number of symbols in the attribute value. The module first converts x 1it and X 2j Through a 2-layer HighwayNet network, to obtain w 1it anda 2j Hidden representation of and

[0061] g 1a =HighwayNet(x 1it )

[0062] G 2j =HighwayNet(X 2j )

[0063] Then a dot product operation is performed to obtain w 1it Get an attention vector for all symbols

[0064]

[0065] Afterwards, an element-level function f is used to convert the attention vector into a one-hot selection vector So that when v 2j [q]==max(v 2j ),s 2j The value of [q] is 1 in all other cases and 0 in all other cases. Finally, based on this selection vector, 2j Select the one with w 1it The most similar symbol and its context representation vector c 2j As h 1it Alignment candidates:

[0066]

[0067] (2) Physical layer selection module

[0068] Based on the above attribute layer selection module, the symbol x 1it The context representation h 1it Get a candidate set of alignment

[0069] c2=[c 21 , ...c 2j , ..., c 2n ]

[0070] Where n is the number of attributes in entity e2, and each column vector c 2jis a candidate from the jth attribute. The entity layer selection module is used to further select the final alignment symbol and its contextual representation from the candidate set. Specifically, the module first uses an element-level comparison operation (absolute difference) to 1it Get a contrast matrix, and then use a linear layer and a softmax function to convert the matrix into an attention vector

[0071]

[0072] Among them, the outer product operation By repeating the left vector n times we get a 2u×n matrix, is a randomly initialized weight vector. The subsequent operations are similar to the selection module of the attribute layer. First, an element-level function f is used to convert v2 into a one-hot selection vector s2, so that when v2[q] == max(v2), the value of s2[q] is 1, and it is 0 in other cases. Then s2 is used to select the final alignment representation h′ from c2. 1it :

[0073] s2=f(v2)

[0074]

[0075] After selecting the final aligned representation, the model performs an element-wise absolute difference operation to represent the symbol w 1it Get the comparison result 1it :

[0076] r 1it =|h 1it -h′ 1it |

[0077] Although there may be complex correspondences between the attributes of different entity records, the cross-attribute alignment method based on the hierarchical selection mechanism proposed in the present invention can adaptively obtain a suitable matching object for each attribute, and thus can effectively solve the problem of schema heterogeneity.

[0078] 3. Attribute comparison based on attention mechanism

[0079] After obtaining the alignment and comparison results of the symbols, the attribute comparison results can be obtained by aggregating them. A major challenge in the aggregation process is that the importance of different symbols in the same attribute is different, so different weights should be assigned when aggregating. In addition, in real scenarios, some attribute values ​​may contain misaligned, redundant or noisy data. How to reduce the noise of these attribute values ​​is also crucial for entity matching.

[0080] To solve the above problems, the present invention designs an attribute comparison module based on the attention mechanism, which can effectively identify important information for each attribute value. Specifically, the module learns a context vector for each attribute and models the importance of all symbols as their similarity with the context vector.

[0081] Take the attribute value a containing T symbols in entity record e1 1i (belongs to attribute A 1i ) as an example, based on the symbol comparison result, its attribute comparison result can be calculated as the weighted sum of all T symbol comparison results:

[0082]

[0083] where r 1it Is the attribute a 1i The tth symbol w in 1it The contrast vector, β 1it It represents w 1it An attention score for importance:

[0084]

[0085] in It is attribute A 1i The context vector is randomly initialized and learned during training.

[0086] By using the above method to give greater weights to important symbols, the attribute comparison module based on the attention mechanism designed in the present invention can reduce the impact of redundant and noisy data on entity matching.

[0087] The following takes the matching of commodity entities composed of different attributes as an example to illustrate the implementation process of the method of the present invention.

[0088] Training examples:

[0089] Positive Example 1: The following entity records are marked as pointing to the same product object

[0090] Record 1: <title, "Microsoft Laptop Bag">

[0091] <category, "computers">

[0092] <model number, "microsoft 39203">

[0093] <price, "96.99">

[0094] Record 2: <Description, "laptop rollerbag 39203">

[0095] <brand, "ms bags cases">

[0096] <type, "">

[0097] <Retail price, "102.88">

[0098] Negative example 2: The following entity record pairs are marked as not pointing to the same product object

[0099] Record 1: <Title, "Sibelius 4 professional edition">

[0100] <category, "computers">

[0101] <model number, “professional edition”>

[0102] <price, "599">

[0103] Record 2: <Description, "adobe flash cs3 professional">

[0104] <brand, "adobe">

[0105] <type, "cs3">

[0106] <Retail price, "799">

[0107] Test example:

[0108] Test Example 1: Do the following two entity records point to the same product object?

[0109] Record 1: <Title, "Adobe Creative Suite CS3 Design Premium">

[0110] <category, "computers">

[0111] <model number, "adobe cs3">

[0112] <price, "1799">

[0113] Record 2: <Description, "Adobe CS3 DesignPremium">

[0114] <brand, "adobe">

[0115] <type, "cs3">

[0116] <Retail Price, "1845">

[0117] Implementation steps:

[0118] (i) Based on the training corpus, the neural network entity matching model constructed in this method is trained. During the training process, the model can learn to select the optimal matching objects for different symbols of each attribute across attributes. For example, for the symbols "microsoft" and "39203" in the "model" attribute of the above-mentioned positive example 1 record 1, the model may select "ms" in the "brand" attribute of the positive example 1 record 2 and "39203" in the "description" attribute as its alignment and matching objects, respectively. In addition, for different symbols in the same attribute, the model can adaptively identify important information. For example, when the comparison results of the three symbols in the "brand" attribute of the positive example 1 record 2 are aggregated into the matching comparison results of the attribute layer, the model will assign a higher weight value to "ms" than to "bags" and "cases".

[0119] (ii) Input the test sample into the trained entity matching model, and the model will predict whether the entity record pair in each test sample matches. Taking test case 1 as an example, although in record 1 and record 2, key information such as brand, model, price, etc. are scattered in different attributes, the above training model can still effectively align and compare them. Since the "brand" and "model" information of the two entity records are exactly the same, and the "price" is also very close, the model can combine this information to conclude that the probability of the test case being a positive example is greater, that is, record 1 and record 2 refer to the same product object.

[0120] Based on the same inventive concept, another embodiment of the present invention provides an entity matching system based on cross-attribute symbol alignment, the system comprising:

[0121] The attribute representation layer module is used to represent each attribute of an entity;

[0122] A symbol alignment module, which aligns each symbol with a symbol in another entity through a hierarchical selection mechanism and then compares it with the alignment object;

[0123] The attribute comparison module is used to aggregate all symbol comparison results of each attribute through an attention mechanism to form the attribute comparison result. The importance of different symbols can be effectively distinguished during the aggregation process.

[0124] The comparison aggregation module is used to aggregate the comparison results of all attributes of entity records using a neural network layer to obtain the final entity matching result, that is, whether two entities are the same entity.

[0125] The attribute representation layer module, symbol alignment module, attribute comparison module and comparison aggregation module are deployed in a unified neural network framework and are globally optimized in an end-to-end manner during training.

[0126] Table 1 shows the test performance of the entity resolution system (CrossMatcher) constructed based on the present invention on various types of (mode homogeneous, mode heterogeneous) data sets. Among them: 2 mode homogeneous data sets (Walmart-Amazon1, Amazon-Google) are both public data sets commonly used in entity resolution tasks; 3 mode heterogeneous data sets (Walmart-Amazon3, Walmart-Amazon4, Walmart-Amazon5) are obtained by merging some attributes using different strategies on the homogeneous data set Walmart-Amazon1. Table 1 compares the present invention with the four best performing systems currently available, where: Magellan is a system based on traditional machine learning methods, which first extracts a large number of attribute matching features from entity pairs, and then uses a SVM model to fuse all the features to obtain the final entity pair resolution result; DeepMatcher is an entity resolution system based on deep neural networks, which mainly targets isomorphic entities with attribute alignment. When using them for heterogeneous and dirty data, it is necessary to splice all attribute values ​​into a symbol sequence as a whole; Seq2SeqMatcher and HierMatcher are recently proposed systems for heterogeneous entity resolution. This type of system uses a global selection mechanism for symbol alignment, fails to fully utilize the local context information of the symbol, and the symbol alignment performance is easily affected by dirty attribute values.

[0127] In the test, the F1 value is used as the main performance indicator. As can be seen from Table 1, on both types of data sets, whether compared with the systems based on alignment attributes (Magellan, DeepMatcher) or the recently proposed systems specifically for heterogeneous entity resolution (Seq2SeqMatcher, HierMatcher), the heterogeneous entity resolution system (CrossMatcher) based on the hierarchical matching network in the present invention has a significant improvement in the F1 value, which effectively verifies the effectiveness of the method in the present invention.

[0128]

[0129] Table 1

[0130] Based on the same inventive concept, another embodiment of the present invention provides a computer / server, which includes a memory and a processor, wherein the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program includes instructions for executing each step in the method of the present invention.

[0131] Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium (such as ROM / RAM, disk, CD), which stores a computer program. When the computer program is executed by a computer, it implements the various steps of the method of the present invention.

[0132] The above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit the same. A person skilled in the art may modify or make equivalent substitutions for the technical solutions of the present invention without departing from the principle and scope of the present invention. The protection scope of the present invention shall be subject to the claims.

Claims

1. An entity matching method for natural language processing based on cross-attribute symbol alignment, the steps comprising: 1) Represent each attribute value of the to-be-matched entity e1 and the to-be-matched entity e2 as a symbol sequence, and obtain a symbol vector representation and a context vector representation of each symbol; 2) For each symbol of the entity to be matched e1 and the entity to be matched e2, according to the symbol vector representation and the context vector representation, the most similar symbol is selected from all attributes of the other entity to be matched as the alignment target, and the symbol comparison results between the alignment target and the symbol comparison results are calculated respectively; 3) According to the context vector representation, the weight of each symbol in each symbol sequence is calculated, and the first matching result between each attribute of the entity to be matched e1 and the entity to be matched e2 and the second matching result between each attribute of the entity to be matched e2 and the entity to be matched e1 are obtained through the comparison results of each symbol and the corresponding weight; 4) The first matching result and the second matching result are concatenated into a comparison vector and classified to determine whether the to-be-matched entity e1 matches the to-be-matched entity e2.

2. The method according to claim 1, characterized in that Through a bidirectional GRU network, the context vector representation of each symbol is obtained; each symbol of the entity e1 to be matched selects the most similar symbol from all attributes of the entity e2 to be matched through the following steps: 1) Based on the symbol vector representation and context vector representation of each symbol in the entity e2 to be matched, an embedding representation matrix and a context representation matrix of each attribute value of the entity e2 to be matched are respectively constructed; 2) The tth symbol w in the i-th attribute of the entity to be matched e1 1it The corresponding symbolic vector represents x 1it The embedding representation matrices of the entity to be matched e2 are input into a HighwayNet network respectively to obtain the hidden representation g of each symbol vector of the entity to be matched e1 1it The hidden representation G of each attribute value of the entity e2 to be matched 2j , where 1≤i≤m, 1≤t≤T, 1≤j≤n, m is the number of attributes of the entity e1 to be matched, T is the number of symbols in the attribute value i of the entity e1 to be matched, and n is the number of attributes of the entity e2 to be matched; 3) Calculate the vector representation w of each symbol through the dot multiplication operation 1it Treat each symbol q in the attribute value j of the matching entity e2 j The attention vector in Q is the number of symbols in the attribute value j of the entity e2 to be matched; 4) Use an element-level function f to convert the attention vector v 2j Converted into a one-hot selection vector s 2j , and according to the symbols q j V 2j [q j ] value, select the symbol w from the attribute value j of the entity e2 to be matched 1it The alignment candidate symbol q′ j , calculate the alignment candidate symbol q′ j The context representation vector Get the symbol x 1it The context vector representation h 1it The corresponding alignment candidate set c2 = [c 21 ,…c 2j ,…,c 2n ],in u is the hidden layer size of the bidirectional GRU network used to obtain context representation, H 2j is the context vector representation matrix of the j-th attribute value of entity e2; 5) Use an element-wise comparison operation to compare w 1it Get a contrast matrix and convert it into an attention vector Where w1 is a randomly initialized weight vector, Outer Product Operation By repeating the left vector n times, we get a 2u×n matrix; 6) Use an element-level function f to convert v2 into a one-hot selection vector s2, and select the vector s2 according to each c 2j v2[c 2j ] value, select the symbol w 1it The alignment symbol q″ j .

3. The method according to claim 2, characterized in that Through a linear layer and a softmax function, the contrast matrix is ​​converted into an attention vector v2.

4. The method according to claim 2, characterized in that Symbol comparison result r 1it =|h 1it -h′ 1it |, where 5. The method according to claim 4, characterized in that Matching results 1i =∑ t β 1it r 1it ,in u 1i is the context vector representation of an attribute of the entity e1 to be matched, h 1it It is the symbol w 1it The context vector representation of .

6. The method according to claim 2, characterized in that The comparison vectors are fed into a one or two layer HighwayNet neural network before being classified.

7. The method according to claim 1, characterized in that Methods for classifying the comparison vector include the softmax function.

8. A storage medium storing a computer program, wherein: The computer program is configured to execute the method according to any one of claims 1 to 7 when executed.

9. An entity matching system for natural language processing based on cross-attribute symbol alignment, comprising: The attribute representation layer is used to represent each attribute value of the to-be-matched entity e1 and the to-be-matched entity e2 as a symbol sequence, and obtain a symbol vector representation and a context vector representation of each symbol; The symbol alignment layer is used to select the most similar symbol from all attributes of the other entity to be matched as the alignment target for each symbol of the entity to be matched e1 and the entity to be matched e2 according to the symbol vector representation and the context vector representation, and calculate the symbol comparison results between the alignment target and each symbol; The attribute comparison layer is used to calculate the weight of each symbol in each symbol sequence according to the context vector representation, and obtain the first matching result between each attribute of the to-be-matched entity e1 and the to-be-matched entity e2 and the second matching result between each attribute of the to-be-matched entity e2 and the to-be-matched entity e1 through the comparison results of each symbol and the corresponding weight; The aggregation layer is used to splice the first matching result and the second matching result into a comparison vector and classify it to determine whether the to-be-matched entity e1 matches the to-be-matched entity e2.

10. The system according to claim 9, characterized in that According to the error between the prediction result and the real sample, the back propagation algorithm is used to perform end-to-end training on the symbol alignment layer, the attribute comparison layer and the aggregation layer.

Citation Information

Patent Citations

  • Knowledge base fusion method for encyclopedia websites

    CN110377747A

  • Entity resolution method and system based on end-to-end multi-view matching

    CN110457543A

  • Natural language processing method and device and storage medium

    CN111368536A

  • Artificial Intelligence-Based Base Calling

    US20200302297A1