Address similarity matching system combined with semantic error correction analysis
Through semantic error correction analysis and similarity calculation, non-standard address text is processed, which improves the accuracy and efficiency of address query, solves the problem of low address matching accuracy in the existing system, and achieves efficient matching of complex addresses.
Patent Information
- Application Number
- CN202410891593.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-15
AI Technical Summary
The existing address query system has low matching accuracy when processing non-standard address text and cannot meet the needs of complex and irregular address matching. Especially in smart city applications, the ambiguity of addresses and the expression of multiple place names lead to high error rates.
An address similarity matching system combined with semantic error correction and parsing is designed. Standard and business address data are obtained through the data set module, and error correction, parsing and semantic similarity models are constructed, using encoders, decoders, word embeddings, and attention. The layer and CRF layer process the address text, generate a standard form description and element tag sequence, calculate the semantic similarity of the address through the inverted index and semantic similarity model, and output the matching results.
Effectively standardize the address text, reduce the matching error rate, improve the accuracy and efficiency of address query, reduce the dependence on thesaurus, and meet the needs of efficient positioning.
Smart Images

Figure BDA0004927726020000021 
Figure BDA0004927726020000041 
Figure FDA0004927726010000021
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular relates to an address similarity matching system combined with semantic error correction analysis. Background Art
[0002] In the context of rapid urbanization and technological development, the concept of smart city has gradually become one of the keywords in the field of social governance. In social governance applications, there may be non-standard problems in the text description of the address. For example, the address contains non-standard expressions such as colloquial expressions, abbreviations, typos, a large amount of irrelevant information, and ambiguous references. At the same time, the address may also have multiple place names, including the historical changes of the address. These increase the ambiguity of the address, resulting in a decrease in the matching accuracy of the existing address query system, thereby matching errors. In traditional technology, hierarchical matching is performed by constructing an address element vocabulary and combining certain matching rules. This is very dependent on the integrity of the vocabulary and the standardization of the input address description to be queried. In address matching, it is difficult to meet complex and irregular address matching by only calculating the address text similarity, and it is also unable to meet a large number of high-efficiency positioning needs in practical applications. Therefore, designing an address similarity matching system that can standardize addresses and improve accuracy and combines semantic error correction analysis has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] In order to solve the above problems, the present invention provides an address similarity matching system combined with semantic error correction analysis.
[0004] The technical solution of the present invention is an address similarity matching system combined with semantic error correction analysis, and the matching system includes the following modules: The data set module obtains standard address data and business address data, and correspondingly obtains address element data set and address element error correction data set; obtains standard address element data and historical address element alias data, and obtains address element semantic similarity data set; The error correction module trains the address element error correction data set and constructs an address element error correction model. The address element error correction model includes an encoder and a decoder. The address text is processed to obtain hidden layer representation information. The input projection matrix is input into the softmax layer to obtain an error-corrected output sequence, which is output as a standard form description of the address. The parsing module trains the address element data set and constructs an address element parsing model. The address element parsing model includes a word embedding input layer, an encoding layer, an attention layer, and a CRF layer. The address text is converted into a word embedding vector, which is processed by a dilated convolution operation and input into a softmax layer using a vector matrix to constrain the element label sequence of the address. The inverted index module inputs the standard address data into the address element parsing model to obtain the element label sequence information of the standard address, and constructs an inverted index with the standard address data to generate an address element retrieval library; A semantic similarity module trains the address element semantic similarity data set to construct an address element semantic similarity model; the address element semantic similarity model includes a word embedding submodule, address element character similarity, and address element weight; the element label sequence is input into the word embedding submodule, and the cosine similarity of the vector is calculated to obtain the semantic similarity of the address; the address element character similarity processes the element label sequence by the edit distance algorithm to obtain the string similarity of the address; the semantic similarity and the string similarity are combined according to the address element weight, and the total semantic similarity score of the address is output; The matching system includes the following steps: s1, input the target address information into the address element error correction model, and output the standard form description of the target address; s2, input the standard form description of the target address into the address element parsing model to obtain the element label sequence of the target address; s3, perform inverted indexing on the element label sequence of the target address in the address element retrieval library to obtain a set of address candidate pairs; s4, the element label sequence of the target address and the address candidate pair set is input into the address element semantic similarity model to obtain the total semantic similarity score between the target address and each address candidate pair; s5, select the address candidate pair with the largest total semantic similarity score and output the corresponding address information as the address matching result.
[0005] As a further improvement of the present invention, the address element data set and the address element error correction data set are obtained by selecting standard address data and business address data in proportion, and arranging and producing them; the address element data set includes annotations of element labels in the address text, and the address element error correction data set includes a set of data pairs of original address descriptions and corresponding standard address descriptions; the address element semantic similarity data set is obtained by selecting standard address element data and historical address element alias data in proportion, and arranging and producing them; the address element semantic similarity data set includes address element segmentation and an element data list set of N-GRAM structure.
[0006] As a further improvement of the present invention, the address element error correction model inputs the address text into the encoder to obtain hidden layer representation information of the complete semantic information, and then inputs it into the decoder to obtain the target hidden layer representation information of the address, uses the projection matrix to input the softmax layer to obtain the output sequence after error correction, and outputs the standard form description of the address.
[0007] As a further improvement of the present invention, the address element parsing model embeds the element labels of the address and the corresponding Chinese character input words into the input layer to generate a Chinese character word embedding vector; the encoding layer processes the word embedding vector through an expanded convolution operation to obtain a label probability sequence; the label probability sequence is input into the attention layer, and three different vector matrices are used as attention mechanism modules, and input into the softmax layer for processing, and a final label probability sequence is output; the final label probability sequence is input into the CRF layer, and the address element label sequence is obtained by constraints.
[0008] As a further improvement of the present invention, the address element retrieval library is constructed based on the search engine Elasticsearch.
[0009] As a further improvement of the present invention, the address element semantic similarity model inputs the element label sequence of the address into the word embedding submodule to generate the corresponding element vector, and then calculates the cosine similarity of the element vector, and outputs the semantic similarity; the calculation formula of the total semantic similarity score is: Among them, i represents the corresponding address element category, W i Indicates the weight value corresponding to the address feature category. Indicates the semantic similarity of address element categories between the target address and the address candidate pair, Indicates the address feature category string similarity between the target address and the address candidate pair.
[0010] After adopting the above method, the input target address information is processed through the error correction module, and the non-standard expressions such as colloquial expressions, abbreviations, typos, a large amount of irrelevant information and ambiguous references contained in the information are standardized into standard form descriptions, eliminating the existence of multiple place names in the address and the ambiguity of address information caused by historical changes, thereby improving the accuracy of subsequent matching addresses and reducing matching errors; the standard address data is processed through the parsing module to obtain the element label sequence and generate an address element retrieval library. When the target address is input for retrieval, the target address information is indexed in the address element retrieval library to find several addresses The candidate pairs are identified and a set is established. Then, according to the semantic similarity model of the address elements, the element label sequence of the target address and the address candidate pairs are calculated one by one to obtain the corresponding total semantic similarity score. Compared with the existing hierarchical matching mechanism, it can perform similarity scoring of multiple candidate addresses at one time and output the candidate address with the highest semantic similarity. It realizes the standardization of the address text, accurately extracts the entity information of the address text, and combines the semantic similarity calculation to achieve the role of standardizing the address, reduce the dependence on the element vocabulary, thereby improving the matching accuracy and efficiency, and can meet a large number of high-efficiency positioning needs in practical applications. DETAILED DESCRIPTION
[0011] An address similarity matching system combined with semantic error correction analysis, the matching system includes the following modules: a data set module, which obtains standard address data and business address data, and correspondingly obtains address element data sets and address element error correction data sets; obtains standard address element data and historical address element alias data, and obtains address element semantic similarity data sets; The error correction module trains the address element error correction data set and constructs an address element error correction model. The address element error correction model includes an encoder and a decoder. The address text is processed to obtain hidden layer representation information. The input projection matrix is input into the softmax layer to obtain an error-corrected output sequence, which is output as a standard form description of the address. The parsing module trains the address element data set and constructs an address element parsing model. The address element parsing model includes a word embedding input layer, an encoding layer, an attention layer, and a CRF layer. The address text is converted into a word embedding vector, which is processed by a dilated convolution operation and input into a softmax layer using a vector matrix to constrain the element label sequence of the address. The inverted index module inputs the standard address data into the address element parsing model to obtain the element label sequence information of the standard address, and constructs an inverted index with the standard address data to generate an address element retrieval library; A semantic similarity module trains the address element semantic similarity data set to construct an address element semantic similarity model; the address element semantic similarity model includes a word embedding submodule, address element character similarity, and address element weight; the element label sequence is input into the word embedding submodule, and the cosine similarity of the vector is calculated to obtain the semantic similarity of the address; the address element character similarity processes the element label sequence by the edit distance algorithm to obtain the string similarity of the address; the semantic similarity and the string similarity are combined according to the address element weight, and the total semantic similarity score of the address is output; The matching system includes the following steps: s1, input the target address information into the address element error correction model, and output the standard form description of the target address; s2, input the standard form description of the target address into the address element parsing model to obtain the element label sequence of the target address; s3, perform inverted indexing on the element label sequence of the target address in the address element retrieval library to obtain a set of address candidate pairs; s4, input the element label sequence of the target address and the address candidate pair set into the address element semantic similarity model to obtain the total semantic similarity score of the target address and each address candidate pair; s5, select the address candidate pair with the largest total semantic similarity score and output the corresponding address information as the address matching result.
[0012] The address element data set and the address element error correction data set are obtained by selecting standard address data and business address data in proportion, and arranging and producing them; the address element data set includes annotations of element labels in the address text, and the address element error correction data set includes a data pair set of original address descriptions and corresponding standard address descriptions; the address element semantic similarity data set is obtained by selecting standard address element data and historical address element alias data in proportion, and arranging and producing them; the address element semantic similarity data set includes address element segmentation and an element data list set of N-GRAM structure.
[0013] The address element error correction model inputs the address text into the encoder to obtain the hidden layer representation information of the complete semantic information, and then inputs it into the decoder to obtain the target hidden layer representation information of the address, uses the projection matrix to input the softmax layer to obtain the output sequence after error correction, and outputs the standard form description of the address.
[0014] The address element parsing model embeds the element labels of the address and the corresponding Chinese input words into the input layer to generate Chinese word embedding vectors; the encoding layer processes the word embedding vectors through dilated convolution operations to obtain a label probability sequence; the label probability sequence is input into the attention layer, and three different vector matrices are used as attention mechanism modules, and the softmax layer is input for processing to output the final label probability sequence; the final label probability sequence is input into the CRF layer to constrain the address element label sequence.
[0015] The address element retrieval library is constructed based on the search engine Elasticsearch.
[0016] The address element semantic similarity model inputs the element label sequence of the address into the word embedding submodule to generate the corresponding element vector, and then calculates the cosine similarity of the element vector, and outputs the semantic similarity; the calculation formula of the total semantic similarity score is: Among them, i represents the corresponding address element category, W i Indicates the weight value corresponding to the address feature category. Indicates the semantic similarity of address element categories between the target address and the address candidate pair, Indicates the address feature category string similarity between the target address and the address candidate pair.
[0017] The error correction module processes the input target address information, and standardizes the non-standard expressions such as colloquial expressions, abbreviations, typos, a large amount of irrelevant information, and ambiguous references contained in the information into standard form descriptions, eliminating the existence of multiple place names in the address and the ambiguity of address information caused by historical changes, thereby improving the accuracy of subsequent matching addresses and reducing matching errors; the parsing module processes the standard address data to obtain the element label sequence and generate the address element retrieval library. When the target address is input for retrieval, the target address information is indexed in the address element retrieval library, and several address candidate pairs are found and a set is established. Then, according to the address element semantic similarity model, the element label sequence of the target address and the address candidate pairs are calculated one by one to obtain the corresponding semantic similarity total score. Compared with the existing hierarchical matching mechanism, it can perform similarity scoring of multiple candidate addresses at one time and output the candidate address with the highest semantic similarity; the address text is normalized, the entity information of the address text is accurately extracted, and the semantic similarity calculation is combined to achieve the role of standardizing the address, reducing the dependence on the element vocabulary, thereby improving the matching accuracy and efficiency, and meeting a large number of high-efficiency positioning needs in practical applications.
Claims
1. The address similarity matching system combined with semantic error correction analysis is characterized by: The matching system includes the following modules: The data set module obtains standard address data and business address data, and correspondingly obtains address element data set and address element error correction data set; obtains standard address element data and historical address element alias data, and obtains address element semantic similarity data set; The error correction module trains the address element error correction data set and constructs an address element error correction model. The address element error correction model includes an encoder and a decoder. The address text is processed to obtain hidden layer representation information. The input projection matrix is input into the softmax layer to obtain an error-corrected output sequence, which is output as a standard form description of the address. The parsing module trains the address element data set and constructs an address element parsing model. The address element parsing model includes a word embedding input layer, an encoding layer, an attention layer, and a CRF layer. The address text is converted into a word embedding vector, which is processed by a dilated convolution operation and input into a softmax layer using a vector matrix to constrain the element label sequence of the address. The inverted index module inputs the standard address data into the address element parsing model to obtain the element label sequence information of the standard address, and constructs an inverted index with the standard address data to generate an address element retrieval library; A semantic similarity module trains the address element semantic similarity data set to construct an address element semantic similarity model; the address element semantic similarity model includes a word embedding submodule, address element character similarity, and address element weight; the element label sequence is input into the word embedding submodule, and the cosine similarity of the vector is calculated to obtain the semantic similarity of the address; the address element character similarity processes the element label sequence by the edit distance algorithm to obtain the string similarity of the address; the semantic similarity and the string similarity are combined according to the address element weight, and the total semantic similarity score of the address is output; The matching system includes the following steps: s1, input the target address information into the address element error correction model, and output the standard form description of the target address; s2, input the standard form description of the target address into the address element parsing model to obtain the element label sequence of the target address; s3, perform inverted indexing on the element label sequence of the target address in the address element retrieval library to obtain a set of address candidate pairs; s4, the element label sequence of the target address and the address candidate pair set is input into the address element semantic similarity model to obtain the total semantic similarity score between the target address and each address candidate pair; s5, select the address candidate pair with the largest total semantic similarity score and output the corresponding address information as the address matching result.
2. The address similarity matching system combined with semantic error correction analysis according to claim 1 is characterized by: The address element data set and the address element error correction data set are obtained by selecting standard address data and business address data in proportion, and arranging and producing them; the address element data set includes annotations of element labels in the address text, and the address element error correction data set includes a data pair set of original address descriptions and corresponding standard address descriptions; the address element semantic similarity data set is obtained by selecting standard address element data and historical address element alias data in proportion, and arranging and producing them; the address element semantic similarity data set includes address element segmentation and an element data list set of N-GRAM structure.
3. The address similarity matching system combined with semantic error correction analysis according to claim 2 is characterized by: The address element error correction model inputs the address text into the encoder to obtain the hidden layer representation information of the complete semantic information, and then inputs it into the decoder to obtain the target hidden layer representation information of the address, uses the projection matrix to input the softmax layer to obtain the output sequence after error correction, and outputs the standard form description of the address.
4. The address similarity matching system combined with semantic error correction analysis according to claim 2 is characterized by: The address element parsing model embeds the element labels of the address and the corresponding Chinese input words into the input layer to generate Chinese word embedding vectors; the encoding layer processes the word embedding vectors through dilated convolution operations to obtain a label probability sequence; the label probability sequence is input into the attention layer, and three different vector matrices are used as attention mechanism modules, and the softmax layer is input for processing to output the final label probability sequence; the final label probability sequence is input into the CRF layer to constrain the address element label sequence.
5. The address similarity matching system combined with semantic error correction analysis according to claim 2 is characterized by: The address element retrieval library is constructed based on the search engine Elasticsearch.
6. The address similarity matching system combined with semantic error correction analysis according to claim 2 is characterized by: The address element semantic similarity model inputs the element label sequence of the address into the word embedding submodule to generate the corresponding element vector, and then calculates the cosine similarity of the element vector, and outputs the semantic similarity; the calculation formula of the total semantic similarity score is: Among them, i represents the corresponding address element category, W i Indicates the weight value corresponding to the address feature category. Indicates the semantic similarity of address element categories between the target address and the address candidate pair, Indicates the address feature category string similarity between the target address and the address candidate pair.
