A method, device, equipment and storage medium for updating user information
By obtaining external user information from an external database and updating internal user information in State Grid user files based on similarity, it solves the high cost and low efficiency problems caused by manual updates and achieves timely and standardized management of user information.
Patent Information
- Application Number
- CN202110989344.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-26
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-08-26
AI Technical Summary
The update of user information in State Grid's user files relies on manual verification, resulting in high labor costs, low work efficiency, and information that is not updated in a timely manner.
By obtaining the external user information from the external database, the internal user information is updated based on the similarity, the total similarity is calculated using the name and address similarity, and the internal user information is updated if the threshold is reached.
It achieves standardized management and timely updating of user information, reduces the cost of manual verification, and improves work efficiency.
Smart Images

Figure CN113672703B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of information management technology, and in particular to a method, device, equipment and storage medium for updating user information. Background Art
[0002] User files are important information for understanding users and marketing management, and are the basis for State Grid to provide users with diversified, high-quality and accurate services. User information such as user names and user addresses in State Grid's user files are not standardized and updated in a timely manner.
[0003] Currently, the updating of user files mainly relies on manual visits or telephone calls to verify and update user file information, which has high labor costs and low work efficiency. Summary of the invention
[0004] The embodiments of the present invention provide a method, apparatus, device and storage medium for updating user information, so as to update the internal user information in the internal archives based on the similarity according to the external user information obtained from the external database, so as to realize the standardized management and timely update of the user names and addresses of the marketing archives.
[0005] In a first aspect, an embodiment of the present invention provides a method for updating user information, comprising:
[0006] Obtaining internal user information of a user from an internal archive and obtaining external user information of the user from an external system;
[0007] Determining a total similarity between the first feature information in the internal user information and the second feature information in the external user information;
[0008] If the total similarity is greater than or equal to a first threshold, the internal user information is updated according to the external user information.
[0009] Furthermore, the first characteristic information includes: an internal user name and an internal user address, and the second characteristic information includes: an external user name and an external user address.
[0010] Accordingly, determining the total similarity between the first feature information in the internal user information and the second feature information in the external user information includes:
[0011] Determine the weighted name similarity between the internal user name and the external user name by multiplying the name similarity between the internal user name and the external user name by the name similarity weight;
[0012] Determine the product of the address similarity and the address similarity weight of the internal user address and the external user address as the weighted address similarity of the internal user address and the external user address;
[0013] The sum of the name weighted similarity and the address weighted similarity is determined as the total similarity between the internal user information and the external user information.
[0014] Further, determining the name similarity between the internal user name and the external user name includes:
[0015] If the first user name is the internal user name and the second user name is the external user name, determining the relative similarity between the first user name and the second user name as a first relative similarity;
[0016] If the first user name is the external user name and the second user name is the internal user name, determining the relative similarity between the first user name and the second user name as a second relative similarity;
[0017] An average of the first relative similarity and the second relative similarity is determined as the name similarity between the internal user name and the external user name.
[0018] Furthermore, the step of determining the relative similarity between the first user name and the second user name is:
[0019] Segmenting the first user name to obtain a first user name keyword set;
[0020] Determine a first inverse frequency sum of each of the first user name keywords in the first user name keyword set; the first inverse frequency sum is the sum of inverse text frequency indexes of the first user name keywords in the industry name keyword set corresponding to the industry to which the first user name belongs;
[0021] Retrieving the first user name keyword set based on the second user name to obtain the first user name keyword corresponding to the second user name;
[0022] Determine a second inverse frequency sum of each of the industry name keywords; the second inverse frequency sum is the sum of inverse text frequency indexes of the first user name keywords retrieved by each of the second user names in the industry name keyword set corresponding to the industry to which the first user name belongs;
[0023] A ratio of the second inverse frequency sum to the first inverse frequency sum is determined as a relative similarity between the first user name and the second user name.
[0024] Furthermore, the segmenting of the internal user name to obtain at least one internal name keyword includes:
[0025] Determining redundant words according to the type of industry to which the internal user name belongs;
[0026] Removing the redundant words from the internal user name to obtain the core noun of the internal user name;
[0027] The core noun is decomposed to obtain at least one internal name keyword.
[0028] Further, determining the address similarity between the internal user address and the external user address includes:
[0029] Decomposing the internal user address and the external user address into a primary address, a secondary address and a tertiary address respectively; the primary address includes: a provincial address, a municipal address and a district address in sequence; the secondary address includes: a multi-sub-address;
[0030] If the primary address of the internal user address is different from the primary address of the external user address, determining that the address similarity between the internal user address and the external user address is zero;
[0031] If the primary address of the internal user address is the same as the primary address of the external user address, determining whether the internal user address and the external user address have conflicting sub-level addresses in the secondary address;
[0032] If yes, then determining the address similarity corresponding to the level of the conflicting sub-level address as the address similarity between the internal user address and the external user address;
[0033] If not, the address similarity corresponding to the third-level address of the internal user address and the external user address is determined as the address similarity between the internal user address and the external user address.
[0034] Further, determining the name similarity weight or address similarity weight includes:
[0035] Determining a subjective similarity weight and an objective similarity weight of the internal user information and the external user information;
[0036] Determining a distribution factor of the subjective similarity weight and the objective similarity weight;
[0037] The similarity weights of the internal user information and the external user information are determined according to the subjective similarity weight, the objective similarity weight and the allocation factor, wherein the similarity weights include: the name similarity weight and the address similarity weight.
[0038] In a second aspect, an embodiment of the present invention further provides a device for updating user information, the device comprising:
[0039] An acquisition module, used to acquire the internal user information of the user from the internal archives and to acquire the external user information of the user from the external system;
[0040] A determination module, used to determine the total similarity between the first feature information in the internal user information and the second feature information in the external user information;
[0041] An updating module is configured to update the internal user information according to the external user information if the similarity is greater than or equal to a first threshold.
[0042] In a third aspect, an embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for updating user information as described in any one of the embodiments of the present invention is implemented.
[0043] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for updating user information as described in any one of the embodiments of the present invention.
[0044] The embodiment of the present invention obtains the internal user information of the user from the internal archive, and obtains the external user information of the user from the external system; determines the total similarity between the internal user information and the external user information; if the total similarity is greater than or equal to a first threshold, updates the internal user information according to the external user information, and can update the internal user information in the internal archive based on the similarity according to the external user information obtained from the external database, thereby solving the problem of high labor cost and low work efficiency in the prior art of verifying and updating the user archive information through manual visits or telephone visits, and realizing standardized management and timely updating of user names and addresses of marketing archives. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 is a flow chart of a method for updating user information in Embodiment 1 of the present invention;
[0047] Figure 2A is a flow chart of a method for updating user information in Embodiment 2 of the present invention;
[0048] Figure 2B is a flow chart of another method for updating user information in Embodiment 2 of the present invention;
[0049] Figure 3 It is a structural diagram of a device for updating user information in Embodiment 3 of the present invention;
[0050] Figure 4 It is a structural diagram of a computer device in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0051] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0052] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0053] Embodiment 1
[0054] Figure 1 This is a flowchart of a method for updating user information provided in the first embodiment of the present invention. This embodiment is applicable to the case where user information in an internal file is updated according to user information obtained from an external system. The method can be executed by a user information updating device in the embodiment of the present invention. The device can be implemented in software and / or hardware. Figure 1 As shown, the method specifically comprises the following steps:
[0055] S110, obtaining the internal user information of the user from the internal archive, and obtaining the external user information of the user from the external system.
[0056] Among them, the users referred to in the embodiments of the present invention are generally corporate users. Internal archives can be archives for storing user information, such as databases or user systems; internal user information is user information stored in internal archives, such as the user's name, address or identity identification code number. The external system can be a relevant department or Internet platform for publicly publishing user information, such as the Industrial and Commercial Bureau, administrative department, tax department or judicial department. External user information is user information obtained from a public external system, and can also include the user's name, address, business license number, business scope, legal representative, registered capital, business status or dishonesty information.
[0057] Specifically, the internal user information of the user is obtained from the internal archives, and the internal user information may be not updated in time or filled in irregularly. The external user information of the user is obtained from the external system, and the external user information is generally accurate and updated in time.
[0058] S120: Determine the total similarity between the first feature information in the internal user information and the first and second feature information in the external user information.
[0059] The characteristic information refers to information that can represent the identity of the user, such as the user's name, address or business license number.
[0060] Specifically, the sum of the similarities between the first characteristic information in the internal user information and the second characteristic information in the external user information is determined.
[0061] In a specific example, the name similarity between the internal user name and the external user name is determined, the address similarity between the internal user address and the external user address is determined, and the sum of the name similarity and the address similarity is determined as the total similarity.
[0062] In another specific example, a name weighted similarity is determined according to a name similarity between an internal user name and the external user name and a first weight, an address weighted similarity is determined according to an address similarity between an internal user address and the external user address and a second weight, and the sum of the name weighted similarity and the address weighted similarity is determined as the total similarity.
[0063] S130: If the total similarity is greater than or equal to a first threshold, updating the internal user information according to the external user information.
[0064] Among them, the first threshold can be set according to actual needs
[0065] Specifically, if the total similarity is less than the first threshold, it cannot be determined that the internal user information and the external user information are the information of the same user, and therefore the internal user information cannot be updated according to the external user information; if the total similarity is greater than or equal to the first threshold, it means that the internal user information and the external user information are the information of the same user, and the internal user information is updated according to the external user information. The updating behavior includes: if the internal user information of the internal file exists, then the information is updated; if the internal user information does not exist, then the information is added to the internal file.
[0066] Exemplarily, if the total similarity is greater than or equal to the first threshold, the existing internal user information in the internal archive system is updated according to the business license number queried in the external system, and the business scope, legal representative and registered capital of the user queried in the external system are added to the internal user information in the internal archive.
[0067] The technical solution of this embodiment is to obtain the internal user information of the user from the internal archives, and obtain the external user information of the user from the external system; determine the total similarity between the internal user information and the external user information; if the total similarity is within a preset range, update the internal user information according to the external user information, and can update the internal user information in the internal archives based on the similarity according to the external user information obtained from the external database, so as to realize the standardized management and timely update of the user name and address of the marketing archive.
[0068] Embodiment 2
[0069] Figure 2A The present invention is a flowchart of a method for updating user information in a second embodiment of the present invention. This embodiment is optimized based on the above embodiment. In this embodiment, the first feature information includes: an internal user name and an internal user address, and the second feature information includes: an external user name and an external user address. Accordingly, the total similarity between the first feature information in the internal user information and the second feature information in the external user information includes: determining the product of the name similarity and the name similarity weight of the internal user name and the external user name as the name weighted similarity between the internal user name and the external user name; determining the product of the address similarity and the address similarity weight of the internal user address and the external user address as the address weighted similarity between the internal user address and the external user address; and determining the sum of the name weighted similarity and the address weighted similarity as the total similarity between the internal user information and the external user information.
[0070] like Figure 2A As shown, the method of this embodiment specifically includes the following steps:
[0071] S210, obtaining the internal user information of the user from the internal archive, and obtaining the external user information of the user from the external system.
[0072] S220: Determine the product of the name similarity between the internal user name and the external user name and the name similarity weight as the weighted name similarity between the internal user name and the external user name.
[0073] Specifically, step S220 may include:
[0074] S221: Determine the name similarity Sim A,B between the internal user name and the external user name name ; Among them, A represents the user obtained from the internal archive, and B represents the user obtained from the external system.
[0075] S222: Determine the name similarity weight ω1;
[0076] S223: Determine the weighted similarity of the name
[0077] Exemplarily, the method of determining the name similarity between the internal user name and the external user name may be: segmenting the internal user name to obtain at least one internal name keyword; segmenting the external user name to obtain at least one external name keyword; and calculating the similarity between the internal user name keyword and the external user name keyword as the name similarity.
[0078] Exemplarily, the method for determining the name similarity weights may be to determine the name similarity weights according to the hierarchical analysis method; or to determine the name similarity weights according to the entropy weight method; or to determine the name similarity weights according to the weights determined by the hierarchical analysis method and the weights determined by the entropy weight method.
[0079] S230: Determine the product of the address similarity between the internal user address and the external user address and the address similarity weight as the weighted address similarity between the internal user address and the external user address.
[0080] Specifically, step S230 may include:
[0081] S231: Determine the address similarity Sim A,B between the internal user address and the external user address addr ;
[0082] S232: Determine the address similarity weight ω2;
[0083] S233: Determine the weighted similarity of the address
[0084] Exemplarily, the method for determining the address similarity weight is the same as the method for determining the name similarity weight, and is not described in detail in the embodiment of the present invention.
[0085] In a specific example, the method for determining the address similarity of an internal user address and an external user address can be: decomposing the internal user address and the external user address into multiple levels of addresses, such as provincial addresses, municipal addresses, district addresses, and addresses below the district level, respectively, determining the similarities of each level of the internal user address and the external user address, and determining the address similarity based on the similarities of each level and the weights of the similarities of each level.
[0086] In another specific example, the method for determining the address similarity between the internal user address and the external user address can be: segment the addresses at each level and determine the similarity corresponding to each segment of the address. For example, the provincial address, municipal address and district address can be determined as the first segment. If the first segment address of the internal user address and the external user address is different, the address similarity is determined to be zero; if the first segment address of the internal user address and the external user address is the same, the address similarity is determined based on the similarity of the second end address of the internal user address and the external user address.
[0087] S240: Determine the sum of the weighted name similarity and the weighted address similarity as the total similarity between the internal user information and the external user information.
[0088] Specifically, the weighted similarity of the name is The weighted similarity of the address is Then the total similarity between internal user information and external user information is SimA,B comp for:
[0089]
[0090] S250: If the total similarity is within a preset range, updating the internal user information according to the external user information.
[0091] The technical solution of this embodiment is to obtain the internal user information of the user from the internal archives, and obtain the external user information of the user from the external system; determine the total similarity between the internal user information and the external user information; if the total similarity is within a preset range, update the internal user information according to the external user information, and can update the internal user information in the internal archives based on the similarity according to the external user information obtained from the external database, so as to realize the standardized management and timely update of the user name and address of the marketing archive.
[0092] Optionally, step S221: determining the name similarity between the internal user name and the external user name includes:
[0093] S2211: If the first user name is the internal user name and the second user name is the external user name, determining a relative similarity between the first user name and the second user name as a first relative similarity;
[0094] S2212: If the first user name is the external user name and the second user name is the internal user name, determining the relative similarity between the first user name and the second user name as a second relative similarity;
[0095] S2213: Determine the average of the first relative similarity and the second relative similarity as the name similarity between the internal user name and the external user name.
[0096] Exemplarily, determining a first relative similarity Sim between the internal user name and the external user name name A|B; Determine the second relative similarity Sim of the external user name relative to the internal user name name B|A; then the name similarity between the internal user name and the external user name is Sim name A, B=Sim name A|B+Sim name B|A / 2.
[0097] Optionally, step S2211 and step S2212: the step of determining the relative similarity between the first user name and the second user name is:
[0098] Segmenting the first user name to obtain a first user name keyword set;
[0099] Determine a first inverse frequency sum of each of the first user name keywords in the first user name keyword set; the first inverse frequency sum is the sum of inverse text frequency indexes of the first user name keywords in the industry name keyword set corresponding to the industry to which the first user name belongs;
[0100] Retrieving the first user name keyword set based on the second user name to obtain the first user name keyword corresponding to the second user name;
[0101] Determine a second inverse frequency sum of each of the industry name keywords; the second inverse frequency sum is the sum of inverse text frequency indexes of the first user name keyword retrieved from the second user name in the industry name keyword set corresponding to the industry to which the first user name belongs;
[0102] The ratio of the second inverse frequency sum to the first inverse frequency sum is determined as the relative similarity of the first user name to the second user name.
[0103] Specifically, the first step is: performing word segmentation on the first user name X_name to obtain at least one first user name keyword m, and the set formed by the first user name keywords m is set(X_name), that is, m∈set(X_name).
[0104] Step 2: Determine the inverse text frequency index IDF m,d of each first user name keyword X , where d X is the name keyword of the user in the industry to which the first user name X_name belongs, that is, the industry name keyword, m is the first user name keyword, and the inverse text frequency index of each first user name keyword is summed to obtain the first inverse frequency sum sum X_name,IDF =∑IDF m,d X ; Among them, the inverse text frequency index IDF m,d of the first user name keyword X The calculation method can be:
[0105]
[0106] Among them, set d X The set of industry name keywords, that is, the industry name keyword set, count m:d X The industry to which the first user name X_name belongs X The number of users whose user names contain the first user name keyword m, and N is the total number of users in the industry to which the first user name X_name belongs.
[0107] Step 3: Based on the multi-mode matching Aho-Corasick algorithm, the first user name keyword set setX_name is searched in the second user name Y_name to obtain the first user name keyword n=ACY_name,set X_name corresponding to the second user name, where AC represents the Aho-Corasick algorithm.
[0108] In the fourth step, the inverse text frequency index corresponding to the first user name keyword retrieved in the second user name in the third step is summed to obtain the second inverse frequency sum:
[0109] sum Y_name,IDF =∑IDF n,d X =∑IDF AC Y_name,setX_name,d X .
[0110] The traditional IDF value calculation method only considers the relationship between the name keyword and the user name, while in the embodiment of the present invention, the calculation method of the inverse text frequency index comprehensively considers the characteristics and differences of user names in different industries, making the matching degree of user names more accurate.
[0111] Step 5: sum the second inverse frequency Y_name,IDF With the first inverse frequency and sum X_name,IDF The ratio of the first user name to the second user name is determined as the relative similarity Sim name X|Y, that is:
[0112]
[0113] Exemplarily, for step S2211, the first user name X_name is the internal user name A_name, the second user name Y_name is the external user name B_name, and the relative similarity of the first user name to the second user name is determined as the first relative similarity Sim name A|B, that is:
[0114]
[0115] Among them, d A The internal user name keyword m1 is the industry to which the internal user name belongs; set A_name is the internal user name keyword set.
[0116] Exemplarily, for step S2212, the first user name X_name is the external user name B_name, the second user name Y_name is the internal user name A_name, and the relative similarity of the first user name to the second user name is determined as the first relative similarity Sim name B|A, that is:
[0117]
[0118] Among them, d B is the external user name keyword m2 in the industry to which the internal user name belongs; set B_name is the external user name keyword set. Here, IDF is the inverse text frequency index of the external user name.
[0119] Optionally, segmenting the internal user name to obtain at least one internal name keyword includes:
[0120] Determining redundant words according to the type of industry to which the internal user name belongs;
[0121] Removing the redundant words from the internal user name to obtain the core noun of the internal user name;
[0122] The core noun is decomposed to obtain at least one internal name keyword.
[0123] For example, user names in different industries have their own industry attributes, and redundant words are determined according to the industry type. For example, users in the manufacturing industry often have redundant words such as "manufacturing", "industry", and "real industry" in their names; users in the public administration, social organizations, and international organizations industries often have the names of their administrative regions in their names for distinction, and the words of such administrative regions can be used as redundant words; except for users of public services and management organizations, users in other industries can determine their provinces and cities as redundant words; for enterprise user names, fields such as "limited liability company" and "limited liability company" can be determined as redundant words.
[0124] Specifically, after removing redundant words from the internal user name, the core noun of the internal user name is obtained; and at least one internal name keyword can be obtained by decomposing the core noun using a decomposition tool.
[0125] Optionally, step S231: determine the address similarity Sim A,B between the internal user address and the external user address addr ,include:
[0126] Decomposing the internal user address and the external user address into a primary address, a secondary address and a tertiary address respectively; the primary address includes: a provincial address, a municipal address and a district address in sequence; the secondary address includes: a multi-sub-address;
[0127] If the primary address of the internal user address is different from the primary address of the external user address, determining that the address similarity between the internal user address and the external user address is zero;
[0128] If the primary address of the internal user address is the same as the primary address of the external user address, determining whether the internal user address and the external user address have conflicting sub-level addresses in the secondary address;
[0129] If yes, then determining the address similarity corresponding to the level of the conflicting sub-level address as the address similarity between the internal user address and the external user address;
[0130] If not, the address similarity corresponding to the third-level address of the internal user address and the external user address is determined as the address similarity between the internal user address and the external user address.
[0131] Specifically, the first step is to decompose the internal user address and the external user address to obtain the first-level address, the second-level address and the third-level address; the first-level addresses are: provincial address, municipal address and district address; the second-level address includes: multiple sub-level addresses; for example, the sub-level addresses can be: streets and parks; the third-level address can be a building number or a floor.
[0132] Step 2: Determine the address level at which the internal user address and the external user address conflict with each other. If the first-level address of the internal user address is different from the first-level address of the external user address, that is, the provincial address, municipal address or district address is different, then determine that the address similarity between the internal user address and the external user address is zero; if the first-level address of the internal user address is the same as the first-level address of the external user address, then continue to determine whether the internal user address and the external user address have conflicting sub-level addresses in the second-level address;
[0133] Step 3: If yes, determine the address similarity corresponding to the level of the conflicting sub-level address, and determine it as the address similarity between the internal user address and the external user address;
[0134] Exemplarily, the manner of determining the address similarity corresponding to the level of the conflicting sub-level addresses may be:
[0135]
[0136] Among them, k=1, 2, 3 represent the levels corresponding to provincial addresses, municipal addresses or district addresses respectively, l>k>3 represent the levels corresponding to each sub-level address in the second-level address, and l is the level corresponding to the third-level address. The weight of each sub-level address decreases exponentially by 1 / 2 as the level increases, indicating that the higher the address, the greater the impact on similarity.
[0137] Step 4: If not, determining the address similarity corresponding to the third-level address of the internal user address and the external user address as the address similarity between the internal user address and the external user address.
[0138] Specifically, when decomposing the address, the internal user address and the external user address may not be decomposed into the smallest unit, for example, only decomposed into streets, and the addresses below the streets are not decomposed. If there are no conflicting sub-level addresses at all levels of the first-level address and the second-level address, the address similarity corresponding to the third-level address of the internal user address and the external user address is calculated, and the address similarity corresponding to the third-level address is determined as the address similarity between the internal user address and the external user address.
[0139] For example, if the internal user address is "4th floor, Building A, Zhongguancun, Haidian District, Beijing", and the external user address is "5th floor, Building A, Zhongguancun, Haidian District, Beijing", the first-level address includes: "Beijing" (k=2), "Haidian District" (k=3), and the second-level address includes "Zhongguancun" (k=4). The third-level address (l=5) A_addr_Res of the internal user address is "4th floor, Building A", and the third-level address B_addr_Res of the external user address is "6th floor, Building A", then the address similarity between the internal user address and the external user address is:
[0140]
[0141] Among them, Sim (A_addr_Res, B_addr_Res) is the similarity between the unresolved address A_addr_Res "4th floor of Building A" of the internal user address and the unresolved address B_addr_Res "6th floor of Building A" of the external user address.
[0142] Optionally, step S222: determining the name similarity weight ω1 and step S232: determining the address similarity weight ω2 include:
[0143] Determining a subjective similarity weight and an objective similarity weight of the internal user information and the external user information;
[0144] Determining a distribution factor of the subjective similarity weight and the objective similarity weight;
[0145] Similarity weights of the internal user information and the external user information are calculated according to the subjective similarity weight, the objective similarity weight and the allocation factor.
[0146] The similarity weight includes the name similarity weight and the address similarity weight.
[0147] Specifically, the calculation formula of similarity weight is as follows:
[0148]
[0149] Among them, ω i is the internal user information, i=1 represents the internal user name, i=2 represents the internal user address, x i is the subjective similarity weight, u i is the objective similarity weight, and m is the allocation factor.
[0150] Exemplarily, the subjective similarity weights of internal user information and external user information are determined by the hierarchical analysis method. The hierarchical analysis method refers to decomposing the elements that are always related to the weight decision into levels such as goals, criteria, and plans, and performing qualitative and quantitative analysis on this basis to determine the weight method. The specific process of the hierarchical analysis method is not described in detail in the embodiment of the present invention. The objective similarity weights of internal user information and external user information are determined by the entropy weight method. The entropy weight method refers to using information entropy to judge the degree of discreteness of a certain indicator. The smaller the information entropy value, the greater the degree of discreteness of the indicator, and the greater the influence of the indicator on the comprehensive evaluation, that is, the greater the weight. The specific process of the entropy weight method is not described in detail in the embodiment of the present invention.
[0151] like Figure 2B As shown, the specific steps of the embodiment of the present invention are: removing redundant words and core nouns from the internal user name to obtain user name keywords, calculating the inverse text frequency index IDF of each user name keyword, calculating the first relative similarity of the internal user name to the external user name and the second relative similarity of the external user name to the internal user name based on the IDF value of each user name keyword, and obtaining the name similarity according to the first relative similarity and the second relative similarity; performing multi-level address decomposition on the internal user address and the external user address, if the decomposed addresses conflict, determining the similarity of the conflicting sub-level addresses that conflict with each other between the internal user address and the external user address; if the decomposed addresses do not conflict, calculating the similarity corresponding to the undecomposed addresses of the internal user address and the external user address as the address similarity; performing weighted summation on the name similarity and the address similarity to obtain the total similarity, and if the total similarity is within a preset range, updating the internal user information according to the external user information.
[0152] Embodiment 3
[0153] Figure 3 This is a schematic diagram of the structure of a user information updating device provided in Embodiment 3 of the present invention. This embodiment can be applied to the case where the user information in the internal archive is updated according to the user information obtained from the external system. The device can be implemented in software and / or hardware. The device can be integrated in any device that provides the user information updating function, such as Figure 3 As shown, the user information updating device specifically includes: an acquisition module 310 , a determination module 320 and an updating module 330 .
[0154] The acquisition module 310 is used to acquire the internal user information of the user from the internal archive and acquire the external user information of the user from the external system;
[0155] A determination module 320, configured to determine a total similarity between the first feature information in the internal user information and the second feature information in the external user information;
[0156] The updating module 330 is configured to update the internal user information according to the external user information if the similarity is greater than or equal to a first threshold.
[0157] Optionally, the determining module 320 includes:
[0158] A first determining unit, configured to determine a product of a name similarity between the internal user name and the external user name and a name similarity weight as a weighted name similarity between the internal user name and the external user name;
[0159] A second determining unit, configured to determine a product of an address similarity and an address similarity weight between the internal user address and the external user address as a weighted address similarity between the internal user address and the external user address;
[0160] The third determining unit is configured to determine the sum of the name weighted similarity and the address weighted similarity as the total similarity between the internal user information and the external user information.
[0161] Optionally, the first determining unit includes:
[0162] a first determining subunit, configured to determine, if the first user name is the internal user name and the second user name is the external user name, a relative similarity between the first user name and the second user name as a first relative similarity;
[0163] a second determining subunit, configured to determine, if the first user name is the external user name and the second user name is the internal user name, a relative similarity between the first user name and the second user name as a second relative similarity;
[0164] The third determining subunit is configured to determine an average of the first relative similarity and the second relative similarity as the name similarity between the internal user name and the external user name.
[0165] Optionally, the first determining subunit or the determining subunit is specifically configured to:
[0166] Segmenting the first user name to obtain a first user name keyword set;
[0167] Determine a first inverse frequency sum of each of the first user name keywords in the first user name keyword set; the first inverse frequency sum is the sum of inverse text frequency indexes of the first user name keywords in the industry name keyword set corresponding to the industry to which the first user name belongs;
[0168] Retrieving the first user name keyword set based on the second user name to obtain the first user name keyword corresponding to the second user name;
[0169] Determine a second inverse frequency sum of each of the industry name keywords; the second inverse frequency sum is the sum of inverse text frequency indexes of the first user name keywords retrieved by each of the second user names in the industry name keyword set corresponding to the industry to which the first user name belongs;
[0170] A ratio of the second inverse frequency sum to the first inverse frequency sum is determined as a relative similarity between the first user name and the second user name.
[0171] Optionally, the first determining subunit or the determining subunit is further used to:
[0172] Determining redundant words according to the type of industry to which the internal user name belongs;
[0173] Removing the redundant words from the internal user name to obtain the core noun of the internal user name;
[0174] The core noun is decomposed to obtain at least one internal name keyword.
[0175] Optionally, the second determining unit is specifically configured to:
[0176] Decomposing the internal user address and the external user address into a primary address, a secondary address and a tertiary address respectively; the primary address includes: a provincial address, a municipal address and a district address in sequence; the secondary address includes: a multi-sub-address;
[0177] If the primary address of the internal user address is different from the primary address of the external user address, determining that the address similarity between the internal user address and the external user address is zero;
[0178] If the primary address of the internal user address is the same as the primary address of the external user address, determining whether the internal user address and the external user address have conflicting sub-level addresses in the secondary address;
[0179] If yes, then determining the address similarity corresponding to the level of the conflicting sub-level address as the address similarity between the internal user address and the external user address;
[0180] If not, the address similarity corresponding to the third-level address of the internal user address and the external user address is determined as the address similarity between the internal user address and the external user address.
[0181] Optionally, the first determining unit or the second determining unit is further configured to:
[0182] Determining a subjective similarity weight and an objective similarity weight of the internal user information and the external user information;
[0183] Determining a distribution factor of the subjective similarity weight and the objective similarity weight;
[0184] The similarity weights of the internal user information and the external user information are determined according to the subjective similarity weight, the objective similarity weight and the allocation factor, wherein the similarity weights include a name similarity weight and an address similarity weight.
[0185] The above-mentioned product can execute the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0186] Embodiment 4
[0187] Figure 4 This is a schematic diagram of the structure of a computer device in Embodiment 4 of the present invention. Figure 4 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 4 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0188] like Figure 4 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processor 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processor 16).
[0189] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0190] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0191] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0192] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0193] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable a user to interact with the computer device 12, and / or communicate with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the computer device 12 in this embodiment, the display 24 does not exist as an independent individual, but is embedded in the mirror surface, and when the display surface of the display 24 is not displayed, the display surface of the display 24 and the mirror surface are visually integrated. In addition, the computer device 12 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 20. As shown in the figure, the network adapter 20 communicates with other modules of the computer device 12 through a bus 18. It should be understood that although not shown in the figures, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0194] The processor 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing the user information updating method provided in the embodiment of the present invention: obtaining the internal user information of the user from the internal archive, and obtaining the external user information of the user from the external system; determining the total similarity between the first feature information in the internal user information and the second feature information in the external user information; if the total similarity is greater than or equal to the first threshold, updating the internal user information according to the external user information.
[0195] Embodiment 5
[0196] Embodiment 5 of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for updating user information provided in all the embodiments of the invention of the present application is implemented: obtaining the internal user information of the user from an internal archive, and obtaining the external user information of the user from an external system; determining the total similarity between the first feature information in the internal user information and the second feature information in the external user information; if the total similarity is greater than or equal to a first threshold, updating the internal user information according to the external user information.
[0197] Any combination of one or more computer-readable media can be used. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0198] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0199] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0200] Computer program code for performing the operation of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0201] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for updating user information, characterized in that: include: Obtaining internal user information of a user from an internal archive and obtaining external user information of the user from an external system; Determining a total similarity between the first feature information in the internal user information and the second feature information in the external user information; If the total similarity is greater than or equal to a first threshold, updating the internal user information according to the external user information; The first characteristic information includes: an internal user name, and the second characteristic information includes: an external user name; Accordingly, determining the total similarity between the first feature information in the internal user information and the second feature information in the external user information includes: If the first user name is the internal user name and the second user name is the external user name, determining the relative similarity between the first user name and the second user name as a first relative similarity; If the first user name is the external user name and the second user name is the internal user name, determining the relative similarity between the first user name and the second user name as a second relative similarity; The steps of determining the relative similarity of the first user name to the second user name are: Segmenting the first user name to obtain a first user name keyword set; Determine a first inverse frequency sum of each of the first user name keywords in the first user name keyword set; the first inverse frequency sum is the sum of inverse text frequency indexes of the first user name keywords in the industry name keyword set corresponding to the industry to which the first user name belongs; Retrieving the first user name keyword set based on the second user name to obtain the first user name keyword corresponding to the second user name; Determine a second inverse frequency sum of each of the industry name keywords; the second inverse frequency sum is the sum of inverse text frequency indexes of the first user name keywords retrieved by each of the second user names in the industry name keyword set corresponding to the industry to which the first user name belongs; A ratio of the second inverse frequency sum to the first inverse frequency sum is determined as a relative similarity between the first user name and the second user name.
2. The method according to claim 1, characterized in that The first characteristic information further includes: an internal user address, and the second characteristic information further includes: an external user address, Accordingly, determining the total similarity between the first feature information in the internal user information and the second feature information in the external user information includes: Determine the weighted name similarity between the internal user name and the external user name by multiplying the name similarity between the internal user name and the external user name by the name similarity weight; Determine the product of the address similarity and the address similarity weight of the internal user address and the external user address as the weighted address similarity of the internal user address and the external user address; The sum of the name weighted similarity and the address weighted similarity is determined as the total similarity between the internal user information and the external user information.
3. The method according to claim 2, characterized in that Determining the name similarity between the internal user name and the external user name includes: An average of the first relative similarity and the second relative similarity is determined as the name similarity between the internal user name and the external user name.
4. The method according to claim 3, characterized in that The step of segmenting the internal user name to obtain at least one internal name keyword includes: Determining redundant words according to the type of industry to which the internal user name belongs; Removing the redundant words from the internal user name to obtain the core noun of the internal user name; The core noun is decomposed to obtain at least one internal name keyword.
5. The method according to claim 2, characterized in that: Determining the address similarity between the internal user address and the external user address includes: Decomposing the internal user address and the external user address into a primary address, a secondary address and a tertiary address respectively; the primary address includes: a provincial address, a municipal address and a district address in sequence; the secondary address includes: a multi-sub-address; If the primary address of the internal user address is different from the primary address of the external user address, determining that the address similarity between the internal user address and the external user address is zero; If the primary address of the internal user address is the same as the primary address of the external user address, determining whether the internal user address and the external user address have conflicting sub-level addresses in the secondary address; If yes, then determining the address similarity corresponding to the level of the conflicting sub-level address as the address similarity between the internal user address and the external user address; If not, the address similarity corresponding to the third-level address of the internal user address and the external user address is determined as the address similarity between the internal user address and the external user address.
6. The method according to claim 2, characterized in that Determine the name similarity weight or address similarity weight, including: Determining a subjective similarity weight and an objective similarity weight of the internal user information and the external user information; Determining a distribution factor of the subjective similarity weight and the objective similarity weight; The similarity weights of the internal user information and the external user information are determined according to the subjective similarity weight, the objective similarity weight and the allocation factor, wherein the similarity weights include a name similarity weight and an address similarity weight.
7. A user information updating device, characterized in that: include: An acquisition module, used to acquire the internal user information of the user from the internal archives and to acquire the external user information of the user from the external system; A determination module, used to determine the total similarity between the first feature information in the internal user information and the second feature information in the external user information; The first feature information includes: an internal user name, and the second feature information includes: an external user name; accordingly, determining the total similarity between the first feature information in the internal user information and the second feature information in the external user information includes: if the first user name is the internal user name and the second user name is the external user name, determining the relative similarity between the first user name and the second user name as a first relative similarity; if the first user name is the external user name and the second user name is the internal user name, determining the relative similarity between the first user name and the second user name as a second relative similarity; the steps of determining the relative similarity between the first user name and the second user name are: performing word segmentation on the first user name to obtain a first user name keyword set; determining the first user name The first inverse frequency sum of each of the first user name keywords in the user name keyword set; the first inverse frequency sum is the sum of the inverse text frequency indexes of the first user name keyword in the industry name keyword set corresponding to the industry to which the first user name belongs; the first user name keyword set is retrieved based on the second user name to obtain the first user name keyword corresponding to the second user name; the second inverse frequency sum of each of the industry name keywords is determined; the second inverse frequency sum is the sum of the inverse text frequency indexes of the first user name keywords retrieved by each of the second user names in the industry name keyword set corresponding to the industry to which the first user name belongs; the ratio of the second inverse frequency sum to the first inverse frequency sum is determined as the relative similarity of the first user name to the second user name; An updating module is configured to update the internal user information according to the external user information if the similarity is greater than or equal to a first threshold.
8. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for updating user information as claimed in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the method for updating user information as described in any one of claims 1 to 6 is implemented.
