Communication address detection method and device, equipment and medium
The communication address detection method based on hierarchical matching and similarity calculation solves the problem of inaccurate address analysis in existing technologies, achieves efficient and accurate address detection, and improves user application efficiency and system management capabilities.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHAANXI ELECTRIC POWER CORP
- Filing Date
- 2021-10-29
- Publication Date
- 2026-05-01
AI Technical Summary
Existing technologies have poor analytical capabilities when detecting communication addresses, resulting in low accuracy of address analysis results. They cannot effectively prevent the situation of "multiple reports for one address" and lack address correction capabilities, which affects user application efficiency and system operating pressure.
By receiving the administrative level and detailed address elements of the communication address to be detected, hierarchical matching and similarity calculation are performed. After ensuring that the administrative level is correct, detailed address analysis is then performed. The cosine similarity algorithm is used to evaluate the similarity of detailed addresses, thereby realizing multi-dimensional analysis to improve the accuracy and efficiency of address analysis.
It improves the accuracy and efficiency of communication address analysis, reduces data processing volume, ensures high efficiency of address management, reduces system operating pressure, and enhances user application efficiency and industry-wide high-quality service capabilities.
Smart Images

Figure CN114372455B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a method, apparatus, device and medium for detecting communication addresses. Background Technology
[0002] Currently, some industries, such as water supply, gas supply, power supply, and express delivery, require users to submit their communication addresses when carrying out operations.
[0003] Taking the power supply industry as an example, when users apply for electricity connection, they need to provide their connection address, which is also the communication address for which the electricity connection is to be applied. To prevent users from splitting capacity by applying for multiple meters to circumvent investment in dedicated transformers, only one meter of the same type can be applied for per communication address. Therefore, it is necessary to detect the communication address provided by the user when applying for electricity connection. However, existing methods for detecting communication addresses have poor address analysis capabilities, resulting in low accuracy of the analysis results and failing to effectively prevent "multiple applications for one address." Summary of the Invention
[0004] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this disclosure provides a method, apparatus, device and medium for detecting communication addresses.
[0005] Firstly, this disclosure provides a method for detecting a communication address, including:
[0006] Receive the communication address to be detected, which includes a first address element corresponding to the administrative level and a second address element corresponding to the detailed address;
[0007] The first address element is matched with each preset administrative level element to obtain the first matching result;
[0008] If the first matching result is that there is a preset administrative level element that matches the first address element, calculate the similarity between the second address element and the detailed address elements in each historical communication address;
[0009] If the similarity scores all fall within the first preset range, then the communication address to be detected is determined to have passed the detection.
[0010] Secondly, this disclosure provides a communication address detection device, comprising:
[0011] The address receiving unit is used to receive the communication address to be detected, which includes a first address element corresponding to the administrative level and a second address element corresponding to the detailed address.
[0012] The first matching unit is used to match the first address element with each preset administrative level element to obtain the first matching result;
[0013] The similarity calculation unit is used to calculate the similarity between the second address element and the detailed address elements in each historical communication address if the first matching result is that there is a preset administrative level element that matches the first address element.
[0014] The first determining unit is configured to determine that the communication address to be detected passes the detection if the similarity scores all fall within a first preset range.
[0015] Thirdly, this disclosure provides a communication address detection device, comprising:
[0016] processor;
[0017] Memory, used to store executable instructions;
[0018] The processor is used to read executable instructions from memory and execute the executable instructions to implement the communication address detection method of the first aspect.
[0019] Fourthly, this disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement the communication address detection method of the first aspect.
[0020] The technical solution provided in this disclosure has the following advantages compared with the prior art:
[0021] The communication address detection method, apparatus, device, and medium of this disclosure can, after receiving a communication address to be detected, match the first address element corresponding to the administrative level in the communication address to be detected with each preset administrative level element to obtain a first matching result. If the first matching result indicates the existence of a preset administrative level element that matches the first address element, then the similarity between the second address element corresponding to the detailed address in the communication address to be detected and the detailed address elements in each historical communication address is calculated. If it is determined that the similarity is within a first preset range, the communication address to be detected is determined to pass the detection. That is, when performing address analysis on the communication address to be detected, by sequentially analyzing the first address element corresponding to the administrative level in the communication address to be detected and the second address element corresponding to the detailed address in the communication address to be detected, a hierarchical analysis of the communication address to be detected is achieved, thereby achieving a multi-dimensional analysis of the communication address to be detected, to determine whether the communication address is a complete and accurate address, and improving the address analysis capability, thereby improving the accuracy of the analysis results. Meanwhile, in this embodiment of the disclosure, the analysis of the second address element, i.e. the detailed address, is only performed if the first matching result corresponding to the first address element is that there is a preset administrative level element that matches the first address element, i.e., the administrative level represented by the first address element is correct. Thus, communication addresses that do not meet the requirements can be quickly filtered out based on the analysis of the administrative level, thereby improving the analysis efficiency of address analysis, reducing the amount of data processing required for address analysis, and thus improving the efficiency of address management. Attached Figure Description
[0022] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0023] Figure 1 This is a flowchart illustrating a communication address detection method provided in an embodiment of the present disclosure.
[0024] Figure 2 This is a flowchart illustrating another communication address detection method provided in an embodiment of the present disclosure.
[0025] Figure 3 This is a flowchart illustrating another communication address detection method provided in an embodiment of the present disclosure.
[0026] Figure 4 This is a schematic diagram of the structure of a communication address detection device provided in an embodiment of the present disclosure.
[0027] Figure 5This is a schematic diagram of the structure of a communication address detection device provided in an embodiment of the present disclosure. Detailed Implementation
[0028] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0029] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0030] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0032] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0033] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0034] Currently, some industries, such as water supply, gas supply, power supply, and express delivery, require users to submit their communication addresses when conducting operations. Taking the power supply industry as an example, when a user applies for electricity connection, they need to provide the user's application address, which is the communication address for which the electricity connection is being applied.
[0035] To prevent users from circumventing dedicated transformer investment by installing multiple meters to split capacity, users can only register one meter of the same type per communication address when applying for electricity connection. However, it is a common problem in routine business expansion inspections that users repeatedly register for connection using the same communication address when there is no available power supply, posing a risk of illegal construction management to power supply companies. For example, individual businesses and small workshops with large electricity loads may split their loads exceeding a certain capacity and connect them to public transformers to reduce investment in dedicated transformers, thus evading the installation of dedicated distribution transformers and quietly encroaching on the already strained public distribution transformer load resources. This behavior can lead to severe overload of public distribution transformers, burnout of line equipment, frequent power outages, increased operational burden on line equipment, voltage drop, and reduced power quality. In severe cases, it can even burn out power supply facilities and reduce power supply reliability.
[0036] Therefore, it is necessary to detect the communication address provided by the user when applying for electricity connection. In the actual application process, due to the lack of standardized address rules, the address submitted by the user may be incomplete or incorrectly hierarchical. When using existing methods to detect communication addresses for address analysis, the address analysis capability is poor, resulting in low accuracy of the analysis results and failing to effectively prevent the problem of "multiple reports for one address".
[0037] Furthermore, existing methods for detecting communication addresses lack address correction capabilities. For example, client address error prompts are unclear, and there is a lack of highly accurate reference suggestions. As a result, users cannot promptly detect incorrect communication addresses when they apply for services. Moreover, multiple queries to the database are required for the application address, which reduces the efficiency of user applications and increases the system's operational pressure, affecting the industry's ability to provide high-quality services.
[0038] To address the aforementioned problems, this disclosure provides a method, apparatus, device, and medium for detecting communication addresses. The following will first combine... Figure 1-4 The method for detecting communication addresses provided in the embodiments of this disclosure will be described in detail.
[0039] Figure 1 A flowchart illustrating a communication address detection method provided in an embodiment of this disclosure is shown.
[0040] In this embodiment of the disclosure, the method for detecting the communication address can be executed by a server. The server may include at least one server, which can be a cloud server or a server cluster, or other device with storage and computing capabilities.
[0041] like Figure 1 As shown, the method for detecting this communication address may include the following steps.
[0042] S110. Receive the communication address to be detected, which includes a first address element corresponding to the administrative level and a second address element corresponding to the detailed address.
[0043] In this embodiment of the disclosure, the client can receive the communication address to be detected uploaded by the user, and the server can receive the communication address to be detected sent by the client.
[0044] In this embodiment of the disclosure, the communication address to be detected may include a first address element corresponding to the administrative level and a second address element corresponding to the detailed address. The first address element can represent a macro-level address, and the second address element can represent a specific address.
[0045] Specifically, the first address element includes at least the word segments corresponding to the province, city, and district / county address segments in the communication address to be detected, and the second address element includes at least the word segments corresponding to the street (township), village committee (community), residential area, and house number address segments in the communication address to be detected.
[0046] For example, the communication address submitted by the user to be tested is "Room 406, Unit 2, Hanyuan Community, Ebi Village Committee, Eyana Naxi Township, Muli Tibetan Autonomous County, Liangshan Yi Autonomous Prefecture, Sichuan Province". Among them, "Muli Tibetan Autonomous County, Liangshan Yi Autonomous Prefecture, Sichuan Province" is the first address element corresponding to the administrative level in the communication address to be tested, and "Room 406, Unit 2, Hanyuan Community, Ebi Village Committee, Eyana Naxi Township" is the second address element corresponding to the detailed address in the communication address to be tested.
[0047] S120. Match the first address element with each preset administrative level element to obtain the first matching result.
[0048] In this embodiment of the disclosure, after the server receives the communication address to be detected, it can match the first address element in the communication address to be detected with each preset administrative level element in the pre-established macro address database to obtain the first matching result.
[0049] Specifically, in the macro-address database, various preset administrative level elements can be stored in the form of a tree structure. Taking a tree structure as an example, this tree structure includes a root node, branch nodes, and leaf nodes. A root node can be connected to at least one branch node, and each branch node can be connected to at least one leaf node. Specifically, the root node corresponds to a province name, each branch node corresponds to a city name, and each leaf node corresponds to a district / county name. Furthermore, there are hierarchical relationships of administrative levels between the root node and its connected branch nodes, and between branch nodes and their connected leaf nodes.
[0050] In this embodiment of the disclosure, matching the first address element with each preset administrative level element to obtain the first matching result may specifically include:
[0051] The server first matches the segmented word group corresponding to the province in the first address element with the root nodes of each structure tree in the macro address database. If no province name matches the segmented word group corresponding to the province, the first matching result is determined to be that no preset administrative level element matches the first address element. If a province name matches the segmented word group corresponding to the province, the server further matches the segmented word group corresponding to the city level in the first address element with each branch node under the root node of that province name. If no city name matches the segmented word group corresponding to the city level, the server determines to be determined to be that no preset administrative level element matches the first address element. If a city name matches the segmented word group corresponding to the city level, the server further matches the segmented word group corresponding to the district / county level in the first address element with each leaf node under the branch node of that city name. If no district / county name matches the segmented word group corresponding to the district / county level, the server determines to be determined to be that no preset administrative level element matches the first address element. If a district / county name matches the segmented word group corresponding to the district / county level, the server determines to be determined ...
[0052] In some embodiments, if the first address element is "Muli Tibetan Autonomous County, Liangshan Yi Autonomous Prefecture, Sichuan Province", a match in the macro address database will show that there is a Liangshan Yi Autonomous Prefecture in Sichuan Province, and a Muli Tibetan Autonomous County in Liangshan Yi Autonomous Prefecture. Therefore, the first matching result is that there is a preset administrative level element that matches the first address element.
[0053] In other embodiments, if the first address element is "Fangcheng District, Fangchenggang City, Anhui Province", a match in the macro address database will show that there is no Fangchenggang City in Anhui Province. Therefore, the first matching result is that there is no preset administrative level element that matches the first address element.
[0054] Furthermore, if the first matching result indicates the existence of a preset administrative level element that matches the first address element, the server can execute step S130. Otherwise, the server can directly send a first prompt message to the client, or submit the first address element for manual confirmation. If the manual confirmation result is the same as the first matching result, the server sends a first prompt message to the client. If the manual confirmation result is different from the first matching result, the server is triggered to execute step S130.
[0055] Furthermore, this first prompt message can be used to notify the user that the macro address they entered is incorrect. For example, the first prompt message can be "macro address matching error" and the reason for the error, so as to prompt the user. In this way, the user can be clearly prompted on the client side with the address error and the reason for the error, so that the user can discover the incorrect communication address in time, and there is no need to query the application address in the database multiple times, which improves the application efficiency of the user, reduces the system's operating pressure, and ensures that the industry provides high-quality services.
[0056] S130. If the first matching result is that there is a preset administrative level element that matches the first address element, calculate the similarity between the second address element and the detailed address elements in each historical communication address.
[0057] In this embodiment of the disclosure, when the server determines that the first matching result is that there is a preset administrative level element that matches the first address element, i.e., the first matching result, i.e., the first address element is correct, the similarity between the second address element in the communication address to be detected and the detailed address elements in each historical communication address in the pre-established historical communication address database can be calculated.
[0058] Specifically, the historical communication address database can be used to store detailed address elements of communication addresses that users have successfully registered in the past. For example, if user A registered for communication address A and the registration was successfully completed, the detailed address elements of communication address A will be stored in the historical communication address database. Within the historical communication address database, the detailed address elements of each historical communication address can be stored in text format.
[0059] Furthermore, for each detailed address element in the historical communication address database, the server can calculate the text similarity between the second address element and the detailed address element, and use the text similarity as the similarity between the second address element and the detailed address element.
[0060] Optionally, the server can use a cosine similarity algorithm to calculate the text similarity between the second address element and each detailed address element.
[0061] Specifically, the method for determining the text similarity between two address elements using the cosine similarity algorithm is as follows: 1. First, segment the two address elements separately to obtain a word list corresponding to each address element; 2. Use the words in the two word lists to generate a total word list and number each word in the total word list; 3. Encode the two address elements separately using the numbers to obtain two encoding vectors; 4. Then perform one-hot encoding on the two new encoding vectors, that is, calculate the number of times each word appears in the two address elements to obtain the word frequency vectors corresponding to the two address elements; 5. Calculate the cosine value of the angle between the two word frequency vectors to obtain the text similarity between the two address elements.
[0062] The higher the calculated similarity, the more similar the two address elements are; the lower the calculated similarity, the less similar the two address elements are.
[0063] S140. If the similarity is within the first preset range, then the communication address to be detected is determined to have passed the detection.
[0064] In this embodiment of the disclosure, after the server calculates the similarity, it makes a judgment. If the similarity between the second address element and the detailed address element in each historical communication address is within the first preset range, then the communication address to be detected is determined to pass the detection.
[0065] Specifically, the first preset range can be a numerical range that is preset as needed, and there are no restrictions here.
[0066] In some embodiments, the first preset range can be 0. In other embodiments, the first preset range can be [0, 0.02].
[0067] Specifically, if the similarity between the second address element and the detailed address element in each historical communication address is within the first preset range, it means that the similarity between the communication address to be detected and each historical communication address is very low. That is, there is no communication address that is the same as or similar to the communication address to be detected in each historical communication address. Therefore, the server can determine that the communication address to be detected has passed the detection.
[0068] Optionally, after the server determines that the communication address to be tested has passed the test, it can directly record the communication address to be tested as the confirmed installation communication address. Alternatively, it can send the communication address to be tested to a human for testing. If the human confirms that there is no error, the server will be triggered to record the communication address to be tested as the confirmed installation communication address. Otherwise, the server will be triggered not to record the communication address to be tested as the confirmed installation communication address.
[0069] After the server records the communication address to be detected as the confirmed installation communication address, it can send the communication address to be detected back to the client, that is, send the second prompt information to the client and save the second address element to the historical communication address database.
[0070] Furthermore, the second prompt message can be used to prompt the user to confirm the application for the communication address they filled in. For example, the second prompt message can be "Confirm application for the submitted communication address" to prompt the user.
[0071] In this embodiment of the disclosure, after receiving the communication address to be detected, the first address element corresponding to the administrative level in the communication address to be detected is matched with each preset administrative level element to obtain a first matching result. If the first matching result indicates that there is a preset administrative level element that matches the first address element, the similarity between the second address element corresponding to the detailed address in the communication address to be detected and the detailed address elements in each historical communication address is calculated. If the similarity is determined to be within a first preset range, the communication address to be detected is determined to pass the detection. That is, when performing address analysis on the communication address to be detected, the hierarchical analysis of the communication address to be detected is achieved by sequentially analyzing the first address element corresponding to the administrative level in the communication address to be detected and the second address element corresponding to the detailed address in the communication address to be detected, thereby achieving multi-dimensional analysis of the communication address to be detected to determine whether the communication address is a complete and accurate address, and improving the address analysis capability, thereby improving the accuracy of the analysis results. Meanwhile, in this embodiment of the disclosure, the analysis of the second address element, i.e. the detailed address, is only performed if the first matching result corresponding to the first address element is that there is a preset administrative level element that matches the first address element, i.e., the administrative level represented by the first address element is correct. Thus, communication addresses that do not meet the requirements can be quickly filtered out based on the analysis of the administrative level, thereby improving the analysis efficiency of address analysis, reducing the amount of data processing required for address analysis, and thus improving the efficiency of address management.
[0072] In other embodiments of this disclosure, after S130, the method for detecting the communication address may further include:
[0073] If the similarity includes the first highest similarity within the second preset range, then the historical communication address corresponding to the first highest similarity is used as the similar historical communication address of the communication address to be detected.
[0074] In this embodiment of the disclosure, after the server calculates the similarity, it makes a judgment. If the first highest similarity, which belongs to the second preset range, is included in the various similarities between the second address element and the detailed address element in each historical communication address, then the historical communication address corresponding to the first highest similarity is taken as the similar historical communication address of the communication address to be detected.
[0075] Specifically, the second preset range can be a numerical range whose lower limit is greater than the first preset range, as needed, and is not limited here.
[0076] In some embodiments, if the first preset range is 0, then the second preset range can be (0, 1). In other embodiments, if the first preset range is [0, 0.02], then the second preset range can be (0.02, 0.98).
[0077] Specifically, if there is a highest similarity among the various similarities that falls within the second preset range, then that highest similarity is the first highest similarity. In this case, it can be determined that the similarity includes the first highest similarity that falls within the second preset range, indicating that the communication address to be detected has a high similarity to the historical communication address corresponding to the first highest similarity. That is, there is a communication address similar to the communication address to be detected among the various historical communication addresses. The communication address similar to the communication address to be detected is the historical communication address corresponding to the first highest similarity. Therefore, the server can use the historical communication address corresponding to the first highest similarity as a similar historical communication address of the communication address to be detected.
[0078] Optionally, after the server uses the historical communication address corresponding to the first highest similarity as a similar historical communication address of the communication address to be detected, it can directly send a third prompt message to the client, or it can submit the second address element and the historical communication address corresponding to the first highest similarity to a human for confirmation. After the human confirms that the second address element is the same as the historical communication address corresponding to the first highest similarity, the server is triggered to send a third prompt message to the client. Otherwise, the server is triggered to record the communication address to be detected as the confirmed installation communication address and send a second prompt message to the client.
[0079] Furthermore, this third prompt can be used to alert the user that the detailed address they entered is incorrect. For example, the third prompt can be "Incorrect detailed address" and the historical communication address corresponding to the highest similarity score, so that users can promptly discover when they submit an incorrect communication address, and do not need to query the database multiple times for the submitted address, thereby improving the user's submission efficiency, reducing the system's operating pressure, and ensuring that the industry provides high-quality services.
[0080] In some further embodiments of this disclosure, after S130, the method for detecting the communication address may further include:
[0081] If the similarity includes the second highest similarity within the third preset range, then the historical communication address corresponding to the second highest similarity is taken as the same historical communication address of the communication address to be detected.
[0082] In this embodiment of the disclosure, after the server calculates the similarity, it makes a judgment. If the second highest similarity, which belongs to the third preset range, is included in the various similarities between the second address element and the detailed address element in each historical communication address, then the historical communication address corresponding to the second highest similarity is taken as the same historical communication address of the communication address to be detected.
[0083] Specifically, the third preset range can be a range whose lower limit is greater than the second preset range, as needed, and is not limited here.
[0084] In some embodiments, if the second preset range is (0,1), then the third preset range can be 1. In other embodiments, if the second preset range is (0.02,0.98), then the third preset range can be [0.98,1].
[0085] Specifically, if there is a highest similarity among the various similarities that falls within the third preset range, then that highest similarity is the second highest similarity. In this case, it can be determined that the similarity includes the second highest similarity that falls within the third preset range, and it indicates that the historical communication address corresponding to the second highest similarity is very high. That is, there is a communication address that is the same as or very similar to the communication address to be detected among the various historical communication addresses. The communication address that is the same as or very similar to the communication address to be detected is the historical communication address corresponding to the second highest similarity. Therefore, the server can use the historical communication address corresponding to the second highest similarity as the same historical communication address of the communication address to be detected.
[0086] Optionally, after the server uses the historical communication address corresponding to the second highest similarity as the same historical communication address as the communication address to be detected, it can directly send the fourth prompt information to the client, or it can submit the second address element and the historical communication address corresponding to the second highest similarity to a human for confirmation. After the human confirms that the second address element and the historical communication address corresponding to the second highest similarity are the same, the server is triggered to send the fourth prompt information to the client. Otherwise, the server is triggered to record the communication address to be detected as the confirmed installation communication address and send the second prompt information to the client.
[0087] Furthermore, the fourth prompt message can be used to notify the user that the detailed address they entered has been registered. For example, the fourth prompt message can be "This detailed address has been registered" and the historical communication address corresponding to the second highest similarity, so that users can discover the incorrect communication address in time and do not need to query the registration address in the database multiple times, which improves the user's registration efficiency, reduces the system's operating pressure, and ensures that the industry provides high-quality services.
[0088] In order to accurately extract the first address element and the second address element from the communication address to be detected, in another embodiment of this disclosure, it is necessary to first split the communication address to be detected, as described below. Figure 2 Let me explain.
[0089] Figure 2 A flowchart illustrating another communication address detection method provided in an embodiment of this disclosure is shown.
[0090] like Figure 2 As shown, the method for detecting this communication address may include the following steps.
[0091] S210. Receive the communication address to be detected, which includes a first address element corresponding to the administrative level and a second address element corresponding to the detailed address.
[0092] Among them, S210 and Figure 1 The S110 shown is similar and will not be described in detail here.
[0093] S220. The communication address to be detected is split according to the address components to obtain multiple address elements corresponding to the communication address to be detected. The multiple address elements form the first address element and the second address element.
[0094] In this embodiment of the disclosure, after receiving the communication address to be detected, the server can first split the communication address to be detected according to the address components to obtain multiple address elements corresponding to the communication address to be detected, and then form a first address element and a second address element based on the multiple address elements.
[0095] Specifically, the address components include at least seven address segments: province, city, district / county, street (township), village / community, residential area, and house number. The method for splitting the communication address to be detected can be to use regular expressions to split the address into word groups corresponding to each address segment, i.e., each address component, which is the address element itself. Then, the word groups corresponding to the province, city, and district / county address segments are combined to obtain the first address element. The word groups corresponding to the street (township), village / community, residential area, and house number address segments are combined to obtain the second address element.
[0096] For example, if a user submits a communication address to be detected as “Room 406, Unit 2, Hanyuan Community, Ebi Village Committee, Eyana Naxi Township, Muli Tibetan Autonomous County, Liangshan Yi Autonomous Prefecture, Sichuan Province”, using regular expressions to split the communication address, we get seven word segments corresponding to the following: “Sichuan Province”, “Liangshan Yi Autonomous Prefecture”, “Muli Tibetan Autonomous County”, “Eyana Naxi Township”, “Ebi Village Committee”, “Hanyuan Community”, and “Room 406, Unit 2”. Among these, “Muli Tibetan Autonomous County, Liangshan Yi Autonomous Prefecture, Sichuan Province” is the first address element corresponding to the administrative level in the communication address to be detected, and “Room 406, Unit 2, Hanyuan Community, Ebi Village Committee, Eyana Naxi Township” is the second address element corresponding to the detailed address in the communication address to be detected.
[0097] S230. When the number of multiple address elements is greater than or equal to the preset number, the first address element is matched with each preset administrative level element to obtain the first matching result.
[0098] In this embodiment of the disclosure, after the server splits the communication address to be detected according to its address components to obtain multiple address elements corresponding to the communication address to be detected, it can first determine the number of address elements obtained. If the number of address elements is greater than or equal to a preset number, then the first address element is matched with each preset administrative level element to obtain a first matching result.
[0099] Specifically, the preset quantity can be a value set in advance as needed, and there is no restriction here.
[0100] In this embodiment, the preset number can be 7 to ensure that the number of address elements is consistent with the number of address segments. That is, when the number of address elements obtained is greater than or equal to 7, the first address element can be matched with each preset administrative level element to obtain the first matching result. Figure 1 Step S120 will not be described in detail here.
[0101] Furthermore, if the number of address elements obtained is less than the preset number, the server can directly send the fifth prompt message to the client, or submit the multiple address elements to a human for confirmation. If the human confirms that a certain level is missing among the multiple address elements, a suggested address is given, and the server is triggered to send the fifth prompt message to the client. Otherwise, the multiple address elements received are adjusted to trigger the server to obtain the first address element and the second address element using the adjusted address elements, and the first address element is matched with each preset administrative level element to obtain the first matching result.
[0102] The fifth prompt message can be used to notify users that the application address they filled in is incorrect. For example, the fifth prompt message can be "application address level is missing" and a suggested address, so that users can discover the incorrect communication address in time and do not need to query the application address in the database multiple times, which improves the application efficiency of users, reduces the operating pressure of the system, and ensures that the industry provides high-quality services.
[0103] In some embodiments of this disclosure, when the communication address to be detected is a municipality address, the number of multiple address elements obtained is less than 7. In this case, the server processes this type of municipality address by adding the city-level address as "municipal district". For example, if the communication address to be detected is "Beijing Miyun District, Beijing Miyun Economic Development Zone", it is split into "Beijing", "Miyun District", and "Beijing Miyun Economic Development Zone". Since Beijing is a municipality, the number of multiple address elements obtained will be less than 7. The server processes it to obtain "Beijing", "municipal district", "Miyun District", and "Beijing Miyun Economic Development Zone", and the number of multiple address elements obtained will then satisfy 7.
[0104] S240. If the first matching result is that there is a preset administrative level element that matches the first address element, calculate the similarity between the second address element and the detailed address elements in each historical communication address.
[0105] S250. If the similarity scores all fall within the first preset range, then the communication address to be detected is determined to have passed the detection.
[0106] Among them, S240-S250 and Figure 1 S130-S140 shown are similar and will not be described in detail here.
[0107] In this embodiment of the disclosure, after receiving the communication address to be detected, the communication address to be detected can be accurately and efficiently split, so that the accuracy of the first address element and the second address element used in the detection process is high, thereby improving the detection accuracy of the communication address to be detected.
[0108] In another embodiment of this disclosure, after the server receives the communication address to be detected, some preprocessing is required on the communication address to be detected in order to improve processing efficiency.
[0109] In some embodiments, before matching the first address element with each preset administrative level element to obtain a first matching result, the method for detecting the communication address may further include: calculating the hash function value of the communication address to be detected; matching the hash function value with each historical hash function value to obtain a second matching result; if the second matching result is that there is no historical hash function value that matches the hash function value, matching the first address element with each preset administrative level element to obtain a first matching result.
[0110] Specifically, after the server receives the communication address to be detected, it can use a preset algorithm to calculate the hash function value of the communication address to be detected.
[0111] Optionally, the preset algorithm can be a hash value calculation method. The hash function value can be a hash value, which can be used to determine whether the communication address to be detected is the same as a historical communication address string. The hash values corresponding to historical communication addresses are pre-calculated and stored in the access address database; that is, the access address database pre-sets the hash values corresponding to each historical communication address.
[0112] Specifically, the access address database can be a database that stores historical user access records, historical user installation records, historical retrieval records, and hash values corresponding to historical communication addresses.
[0113] Furthermore, the server can match the hash function value of the communication address to be detected with various historical hash function values to obtain a second matching result.
[0114] For example, after calculating the hash function value of the communication address to be detected on the server side, the result A is obtained. The hash function value is then matched with various historical hash function values in the access address database. If there is no historical hash function value with the same value as A in the access address database, that is, the second matching result is that there is no historical hash function value that matches the hash function value, it means that the communication address to be detected has been preliminarily detected as not having been submitted for installation. If there is a historical hash function value with the same value as A in the access address database, that is, the second matching result is that there is a historical hash function value that matches the hash function value, it means that the communication address to be detected has been preliminarily detected as having been submitted for installation.
[0115] In this embodiment, when the server determines that the second matching result is that there is no historical hash function value matching the hash function value, it can further match the first address element with each preset administrative level element to obtain the first matching result. When the second matching result is determined to be that there is a historical hash function value matching the hash function value, the server can directly send a sixth prompt message to the client, or it can submit the communication address to be detected and the historical communication address corresponding to the historical hash function value matching the hash function value to a human for confirmation. If the human confirmation result is the same as the second matching result, the server sends a sixth prompt message to the client; otherwise, it triggers the server to match the first address element with each preset administrative level element to obtain the first matching result.
[0116] Furthermore, this sixth prompt message can be used to notify the user that the application address they entered is duplicated. For example, the sixth prompt message can be "An application address of a user has already been queried" to prompt the user. In this way, the user can be clearly notified of the address error and the reason for the error on the client side, so that the user can discover the incorrect communication address in time, and there is no need to query the application address in the database multiple times. This improves the user's application efficiency, reduces the system's operating pressure, and ensures that the industry provides high-quality services.
[0117] In other embodiments, the preprocessing also includes detecting whether the communication address to be detected contains text content and symbol content of a preset language.
[0118] After receiving the communication address to be tested, or after the client receives the communication address to be tested uploaded by the user, the server can determine whether the communication address to be tested contains text content and symbol content in a preset language.
[0119] Furthermore, the text content of the preset language can include Chinese characters, English text, etc. The symbol content can include punctuation marks, special symbols, etc.
[0120] Specifically, taking Chinese characters as the text content of the preset language as an example, the server can detect whether there are Chinese characters and symbols in the communication address to be detected. If the server detects that the communication address to be detected contains Chinese characters but does not contain symbols, it will further match the first address element with each preset administrative level element to obtain the first matching result. If the client detects that the communication address to be detected contains Chinese characters but does not contain symbols, it will further send the communication address to be detected to the server.
[0121] Therefore, in this embodiment of the disclosure, the communication address to be detected may contain text content in a preset language but not symbol content, so that its form is legal.
[0122] Optionally, the communication address to be detected may also contain numbers to make its form valid.
[0123] For example, if a user inputs the communication address to be tested as "&i. / f,j@s%i^f", it can be determined that the communication address contains special characters, therefore the communication address is invalid. As another example, if a user inputs the communication address to be tested as "Room 406, Unit 2, Hanyuan Community, Ebi Village Committee, Eyana Naxi Township, Muli Tibetan Autonomous County, Liangshan Yi Autonomous Prefecture, Sichuan Province", it can be determined that the communication address contains Chinese characters and numbers but no symbols, therefore the communication address is valid.
[0124] To further reduce the data processing volume of the server during address analysis, in another embodiment of this disclosure, the flag address in the communication address to be detected can be detected before detecting the detailed address in the communication address to be detected. The following describes how... Figure 3 Please provide an explanation.
[0125] Figure 3 A flowchart illustrating another communication address detection method provided in this disclosure is shown.
[0126] like Figure 3 As shown, the method for detecting this communication address may include the following steps.
[0127] S310. Receive the communication address to be detected, which includes a first address element corresponding to the administrative level and a second address element corresponding to the detailed address.
[0128] Among them, S310 and Figure 1 The S110 shown is similar and will not be described in detail here.
[0129] Optionally, the communication address to be detected may also include a third address element corresponding to the flag address. The third address element belongs to the second address element, that is, the third address element is a part of the second address element. The third address element can represent the flag address.
[0130] Specifically, the third address element must include at least the word segments corresponding to the street (township) and village committee (community) address segments in the communication address to be detected. For example, if the communication address submitted by the user is "Room 406, Unit 2, Hanyuan Community, Ebi Village Committee, Eya Naxi Township, Muli Tibetan Autonomous County, Liangshan Yi Autonomous Prefecture, Sichuan Province", then "Ebi Village Committee, Eya Naxi Township" is the third address element corresponding to the marker address in the communication address to be detected.
[0131] Optionally, after the server splits the communication address to be detected into multiple address elements according to the address components, it can also form a third address element based on these multiple address elements. Specifically, the server can combine the segmented words corresponding to the two address segments of street (township) and village committee (community) to obtain the third address element.
[0132] S320. Match the first address element with each preset administrative level element to obtain the first matching result.
[0133] Among them, S320 and Figure 1 The S120 shown is similar and will not be described in detail here.
[0134] S330. If the first matching result is that there is a preset administrative level element that matches the first address element, perform an index query on the third address element in the marker address database to obtain the index query result.
[0135] In this embodiment of the disclosure, when the server determines that the first matching result is that there is a preset administrative level element that matches the first address element, it performs an index query on the third address element in the communication address to be detected in the preset flag address database to obtain the index query result.
[0136] Specifically, the identifier address database can store each identifier address element in the form of a tree structure. Taking a tree structure as an example, this tree structure includes a root node and leaf nodes. A root node can be connected to at least one leaf node. Specifically, the root node corresponds to a street (township) name, and each leaf node corresponds to a village committee (community) name. Furthermore, there is a hierarchical relationship of geographical subordination between the root node and its connected leaf nodes.
[0137] In this embodiment of the disclosure, performing an index query on the third address element in the marker address database to obtain the index query result may specifically include:
[0138] The server first matches the word segmentation phrases corresponding to the street (township) in the third address element with the root nodes of each structure tree in the address database. If no street (township) name with the same word segmentation phrase exists, the index query result is determined to be an index query error. If a street (township) name with the same word segmentation phrase exists, the server further matches the word segmentation phrases corresponding to the village committee (community) in the third address element with each leaf node under the root node of that street (township) name. If no village committee (community) name with the same word segmentation phrase exists, the index query result is determined to be an index query error. If a village committee (community) name with the same word segmentation phrase exists, the index query result is determined to be an index query correct.
[0139] For example, if the third address element is "Ebi Village Committee of Eyana Naxi Ethnic Township", an index query in the address database will show that there is an Ebi Village Committee in Eyana Naxi Ethnic Township, then the index result of the third address element is that the index query is correct.
[0140] S340. If the index query result is that the index query is correct, calculate the similarity between the second address element and the detailed address elements in each historical communication address.
[0141] In this embodiment of the disclosure, after the server performs an index query on the third address element in the communication address to be detected in the flag address database, if the index query result is correct, the similarity between the second address element and the detailed address elements in each historical communication address can be calculated. Figure 1 The S130 shown is similar and will not be described in detail here.
[0142] S350. If the similarity scores all fall within the first preset range, then the communication address to be detected is determined to have passed the detection.
[0143] Among them, S350 and Figure 1 The S140 shown is similar and will not be described in detail here.
[0144] In this embodiment, after determining that a preset administrative level element matches the first address element, the system further analyzes the third address element corresponding to the flag address in the communication address to be detected and the second address element corresponding to the detailed address in the communication address to be detected, thereby achieving hierarchical analysis of the second address element and multidimensional analysis of the second address element to determine whether the communication address is a complete and accurate address. This improves address analysis capabilities and thus enhances the accuracy of the analysis results. Furthermore, in this embodiment, the analysis of the second address element (i.e., the detailed address) is only performed if the index query result corresponding to the third address element is correct (i.e., the flag address represented by the third address element is correct). Therefore, based on the analysis of the flag address, communication addresses that do not meet the requirements can be quickly filtered out, thereby improving the efficiency of address analysis, reducing the amount of data processing required for address analysis, and ultimately improving address management efficiency.
[0145] The following two specific examples illustrate the communication address detection method provided in this disclosure.
[0146] Example A: The communication address to be detected is "Room 406, Unit 2, Ebi Village Committee, Eyana Naxi Township, Muli Tibetan Autonomous County, Liangshan Yi Autonomous Prefecture, Sichuan Province".
[0147] First, the client checks the validity of the communication address to be detected. It finds that the communication address is composed entirely of Chinese characters and numbers, thus confirming its validity. Then, the client sends the communication address to the server for hash function calculation. If the server does not find a historical hash function value matching the hash function value in the access address database, it further splits the communication address into seven segments, resulting in: Sichuan Province, Liangshan Yi Autonomous Prefecture, Muli Tibetan Autonomous County, Eyan Naxi Ethnic Township, Ebi Village Committee, Hanyuan Community, Unit 2, Room 406. Therefore, the number of address elements is 7. Next, the server matches the first address element in the macro address database and determines that Muli Tibetan Autonomous County exists within Liangshan Yi Autonomous Prefecture. Then, it performs a full query on the third address element in the marker address database. If Eyana Naxi Township is found under Muli Tibetan Autonomous County, the similarity between the second address element and the detailed address element in each historical communication address stored in the historical communication address database can be calculated. If the similarity is 0 for all of them (0 being the first preset range), the communication address to be detected is recorded as the confirmed installation address and returned to the client. The second address element is also saved to the historical installation address database.
[0148] Case B: The communication address to be tested is "Room 402, Unit 1, Cuiyuan Community, Business District, Miyun Economic Development Zone, Beijing".
[0149] First, the client checks the validity of the communication address to be detected. It finds that the address consists entirely of Chinese characters and numbers, thus confirming its validity. Then, the client sends the address to the server for hash function calculation. If the server does not find a matching hash function value in the address database, it further splits the address into seven segments: Beijing Municipality, Municipal District, Miyun District, Beijing Miyun Economic Development Zone, Business District, Community, Cuiyuan Community, Unit 1, Room 402. Since Beijing is a municipality, the Municipal District is added as a second-level address, resulting in a total of 8 address elements. Next, the server matches the first address element in the macro address database to confirm that Miyun District exists within the municipal area of Beijing. Then, it performs a full query on the marker address database for the third address element. If it finds that Miyun District includes Beijing Miyun Economic Development Zone, but Beijing Miyun Economic Development Zone does not include Business District, then the unfounded address element can be merged with its adjacent address elements to obtain a new third address element. For example, it can merge Business District and its subsequent Community to make the new address element "Business District Community". The new third address element is Beijing Miyun Economic Development Zone Business District Community. Then, it performs a full query on the marker address database again. If it finds that Beijing Miyun Economic Development Zone does indeed include Business District Community, then it can calculate the similarity between the second address element and the detailed address elements in each historical communication address stored in the historical communication address database. If the similarity is 0 (0 is the first preset range), then the communication address to be detected is recorded as the confirmed installation address and returned to the client, and the second address element is saved to the historical installation address database.
[0150] Figure 4 A schematic diagram of the structure of a communication address detection device provided in an embodiment of this disclosure is shown.
[0151] In this embodiment of the disclosure, the communication address detection device can be located in the server. The server may include at least one server, which can be a cloud server or a server cluster, or other device with storage and computing capabilities.
[0152] like Figure 4 As shown, the communication address detection device 400 may include an address receiving unit 410, a first matching unit 420, a similarity calculation unit 430, and a first determination unit 440.
[0153] The address receiving unit 410 can be used to receive a communication address to be detected, which includes a first address element corresponding to the administrative level and a second address element corresponding to the detailed address.
[0154] The first matching unit 420 can be used to match the first address element with each preset administrative level element to obtain the first matching result.
[0155] The similarity calculation unit 430 can be used to calculate the similarity between the second address element and the detailed address elements in each historical communication address if the first matching result is that there is a preset administrative level element that matches the first address element.
[0156] The first determining unit 440 can be used to determine that the communication address to be detected passes the detection if the similarity is within the first preset range.
[0157] In this embodiment of the disclosure, after receiving the communication address to be detected, the first address element corresponding to the administrative level in the communication address to be detected is matched with each preset administrative level element to obtain a first matching result. If the first matching result indicates that there is a preset administrative level element that matches the first address element, the similarity between the second address element corresponding to the detailed address in the communication address to be detected and the detailed address elements in each historical communication address is calculated. If the similarity is determined to be within a first preset range, the communication address to be detected is determined to pass the detection. That is, when performing address analysis on the communication address to be detected, the hierarchical analysis of the communication address to be detected is achieved by sequentially analyzing the first address element corresponding to the administrative level in the communication address to be detected and the second address element corresponding to the detailed address in the communication address to be detected, thereby achieving multi-dimensional analysis of the communication address to be detected to determine whether the communication address is a complete and accurate address, and improving the address analysis capability, thereby improving the accuracy of the analysis results. Meanwhile, in this embodiment of the disclosure, the analysis of the second address element, i.e. the detailed address, is only performed if the first matching result corresponding to the first address element is that there is a preset administrative level element that matches the first address element, i.e., the administrative level represented by the first address element is correct. Thus, communication addresses that do not meet the requirements can be quickly filtered out based on the analysis of the administrative level, thereby improving the analysis efficiency of address analysis, reducing the amount of data processing required for address analysis, and thus improving the efficiency of address management.
[0158] In some embodiments of this disclosure, the communication address detection device 400 may further include an address splitting unit.
[0159] The address splitting unit can be used to split the communication address to be detected according to the address constituent elements before matching the first address element with each preset administrative level element to obtain the first matching result, so as to obtain multiple address elements corresponding to the communication address to be detected, and the multiple address elements form the first address element and the second address element.
[0160] Accordingly, the first determining unit 440 can be specifically used to match the first address element with each preset administrative level element when the number of multiple address elements is greater than or equal to a preset number, so as to obtain a first matching result.
[0161] In some embodiments of this disclosure, the communication address detection device 400 may further include an address calculation unit and a second matching unit.
[0162] The address calculation unit can be used to calculate the hash function value of the communication address to be detected before matching the first address element with each preset administrative level element to obtain the first matching result.
[0163] The second matching unit can be used to match the hash function value with each historical hash function value to obtain the second matching result.
[0164] Accordingly, the first matching unit 420 can be specifically used to match the first address element with each preset administrative level element if the second matching result is that there is no historical hash function value that matches the hash function value, so as to obtain the first matching result.
[0165] In some embodiments of this disclosure, the communication address to be detected contains text content in a preset language but does not contain symbol content.
[0166] In some embodiments of this disclosure, the communication address to be detected may include a third address element corresponding to the flag address, and the third address element may belong to the second address element.
[0167] Accordingly, the communication address detection device 400 may also include an index lookup unit.
[0168] This index query unit can be used to perform an index query on the third address element in the flag address database before calculating the similarity between the second address element and the detailed address elements in each historical communication address, and obtain the index query result.
[0169] Accordingly, the similarity calculation unit 430 can be specifically used to calculate the similarity between the second address element and the detailed address elements in each historical communication address if the index query result is correct.
[0170] In some embodiments of this disclosure, the communication address detection device 400 may further include a second determination unit.
[0171] The second determining unit can be used to calculate the similarity between the second address element and the detailed address elements in each historical communication address, and if the similarity includes the first highest similarity that belongs to the second preset range, then the historical communication address corresponding to the first highest similarity is used as the similar historical communication address of the communication address to be detected.
[0172] In some embodiments of this disclosure, the communication address detection device 400 may further include a third determining unit.
[0173] The third determining unit can be used to calculate the similarity between the second address element and the detailed address elements in each historical communication address, and if the similarity includes the second highest similarity that belongs to the third preset range, then the historical communication address corresponding to the second highest similarity is used as the same historical communication address of the communication address to be detected.
[0174] It should be noted that, Figure 4 The communication address detection device 400 shown can perform... Figures 1 to 3 The various steps in the method embodiment shown are implemented. Figures 1 to 3 The processes and effects in the method embodiments shown are not described in detail here.
[0175] Figure 5 A schematic diagram of the structure of a communication address detection device provided in an embodiment of this disclosure is shown.
[0176] In this embodiment of the disclosure, the device for detecting the communication address can be a server, which can be a cloud server or a server cluster or other device with storage and computing functions.
[0177] like Figure 5 As shown, the device for detecting the communication address may include a processor 501 and a memory 502 storing computer program instructions.
[0178] Specifically, the processor 501 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0179] Memory 502 may include a large-capacity storage device for information or instructions. For example, and not limitingly, memory 502 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 502 may include removable or non-removable (or fixed) media. Where appropriate, memory 502 may be internal or external to the integrated gateway device. In a particular embodiment, memory 502 is a non-volatile solid-state memory. In a particular embodiment, memory 502 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable programmable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0180] The processor 501 reads and executes computer program instructions stored in the memory 502 to perform the steps of the communication address detection method provided in this embodiment of the disclosure.
[0181] In one example, the device for detecting the communication address may further include a transceiver 503 and a bus 504. Wherein, as Figure 5 As shown, the processor 501, memory 502 and transceiver 503 are connected via bus 504 and communicate with each other.
[0182] Bus 504 may include hardware, software, or both. For example, and not limitingly, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 504 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.
[0183] This disclosure also provides a computer-readable storage medium that can store a computer program, which, when executed by a processor, enables the processor to implement the communication address detection method provided in this disclosure.
[0184] The aforementioned storage medium may, for example, include a memory 502 containing computer program instructions, which can be executed by the processor 501 of the communication address detection device to complete the communication address detection method provided in this embodiment. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device.
[0185] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the term "comprising" is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus.
[0186] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for detecting a communication address, characterized in that, include: Receive a communication address to be detected uploaded by a user, wherein the communication address to be detected includes a first address element corresponding to the administrative level and a second address element corresponding to the detailed address; The first address element is matched with each preset administrative level element to obtain the first matching result; If the first matching result is that there is a preset administrative level element that matches the first address element, calculate the similarity between the second address element and the detailed address elements in each historical communication address in the pre-established historical communication address database. The historical communication address database is used to store the detailed address elements in the communication addresses where the user has successfully applied for installation in the past. If the similarity values all fall within the first preset range, it is determined that the similarity between the communication address to be detected and each historical communication address is very low. There is no communication address that is the same as or similar to the communication address to be detected among the historical communication addresses. The communication address to be detected passes the detection and is recorded as the confirmed installation communication address. The communication address to be detected is fed back to the client, that is, the second prompt information is sent to the client, and the second address element is saved in the historical communication address database. If the similarity includes the first highest similarity within the second preset range, then the historical communication address corresponding to the first highest similarity is used as the similar historical communication address of the communication address to be detected, and a third prompt message is sent to the client. Alternatively, the second address element and the historical communication address corresponding to the first highest similarity are submitted to a human for confirmation. After the human confirms that the second address element and the historical communication address corresponding to the first highest similarity are the same, the server is triggered to send a third prompt message to the client. Otherwise, the server is triggered to record the communication address to be detected as the confirmed installation communication address and send a second prompt message to the client. If the similarity includes the second highest similarity within the third preset range, then the historical communication address corresponding to the second highest similarity is taken as the same historical communication address as the communication address to be detected, and the fourth prompt information is sent to the client. Alternatively, the second address element and the historical communication address corresponding to the second highest similarity are submitted to a human for confirmation. After the human confirms that the second address element and the historical communication address corresponding to the second highest similarity are the same, the server is triggered to send the fourth prompt information to the client. Otherwise, the server is triggered to record the communication address to be detected as the confirmed installation communication address and send the second prompt information to the client.
2. The method according to claim 1, characterized in that, Before matching the first address element with each preset administrative level element to obtain the first matching result, the method further includes: The communication address to be detected is split according to the address components to obtain multiple address elements corresponding to the communication address to be detected. The multiple address elements form the first address element and the second address element. The step of matching the first address element with each preset administrative level element to obtain a first matching result includes: If the number of the plurality of address elements is greater than or equal to a preset number, the first address element is matched with each of the preset administrative level elements to obtain the first matching result.
3. The method according to claim 1 or 2, characterized in that, Before matching the first address element with each preset administrative level element to obtain the first matching result, the method further includes: Calculate the hash function value of the communication address to be detected; The hash function value is matched with each historical hash function value to obtain a second matching result; The step of matching the first address element with each preset administrative level element to obtain a first matching result includes: If the second matching result is that there is no historical hash function value that matches the hash function value, the first address element is matched with each of the preset administrative level elements to obtain the first matching result.
4. The method according to claim 1, characterized in that, The communication address to be detected contains text content in a preset language but does not contain any symbols.
5. The method according to claim 1, characterized in that, The communication address to be detected includes a third address element corresponding to the flag address, and the third address element belongs to the second address element; The method further includes, prior to calculating the similarity between the second address element and the detailed address elements in each historical communication address: Perform an index query on the third address element in the identifier address database to obtain the index query results; The calculation of the similarity between the second address element and the detailed address elements in each historical communication address includes: If the index query result indicates that the index query is correct, calculate the similarity between the second address element and the detailed address elements in each of the historical communication addresses.
6. A communication address detection device, characterized in that, include: The address receiving unit is used to receive the communication address to be detected uploaded by the user. The communication address to be detected includes a first address element corresponding to the administrative level and a second address element corresponding to the detailed address. The first matching unit is used to match the first address element with each preset administrative level element to obtain a first matching result; The similarity calculation unit is used to calculate the similarity between the second address element and the detailed address elements in each historical communication address in the pre-established historical communication address database if the first matching result is that there is a preset administrative level element that matches the first address element. The historical communication address database is used to store the detailed address elements in the communication addresses where the user has successfully registered in the past. The first determining unit is configured to determine that if the similarity values all fall within a first preset range, the similarity between the communication address to be detected and each historical communication address is very low, and there is no communication address that is the same as or similar to the communication address to be detected among the historical communication addresses. The communication address to be detected is detected, and the communication address to be detected is recorded as the confirmed installation communication address. The communication address to be detected is fed back to the client, that is, a second prompt message is sent to the client, and the second address element is saved to the historical communication address database. The second determining unit is used to calculate the similarity between the second address element and the detailed address elements in each historical communication address. If the similarity includes the first highest similarity within the second preset range, the historical communication address corresponding to the first highest similarity is used as the similar historical communication address of the communication address to be detected, and the third prompt information is fed back to the client. Alternatively, the second address element and the historical communication address corresponding to the first highest similarity are submitted to the human for confirmation. After the human confirms that the second address element and the historical communication address corresponding to the first highest similarity are the same, the server is triggered to feed back the third prompt information to the client. Otherwise, the server is triggered to record the communication address to be detected as the confirmed installation communication address and feed back the second prompt information to the client. The third determining unit is used to calculate the similarity between the second address element and the detailed address elements in each historical communication address. If the similarity includes the second highest similarity within the third preset range, the historical communication address corresponding to the second highest similarity is used as the same historical communication address as the communication address to be detected, and the fourth prompt information is fed back to the client. Alternatively, the second address element and the historical communication address corresponding to the second highest similarity are submitted to the human for confirmation. After the human confirms that the second address element and the historical communication address corresponding to the second highest similarity are the same, the server is triggered to feed back the fourth prompt information to the client. Otherwise, the server is triggered to record the communication address to be detected as the confirmed installation communication address and feed back the second prompt information to the client.
7. A communication address detection device, characterized in that, include: processor; Memory, used to store executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the communication address detection method according to any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, causes the processor to implement the communication address detection method according to any one of claims 1-5.
Citation Information
Patent Citations
Method for intelligently and rapidly matching mass address data
CN107423295A
Address matching method and device, computer equipment and storage medium
CN110442603A
Address information detection method and system, electronic equipment and storage medium
CN111966766A