Address book data correction method and device
By extracting and matching the organizational affiliation information and position information in the address book data, and using the abstract organizational hierarchy tree for correction, the problem of inconsistent address book information in government collaborative office work is solved, and the accuracy and efficiency of the address book data are improved.
Patent Information
- Application Number
- CN202410756816.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-12
AI Technical Summary
In the process of government collaborative office work, due to the inconsistency of address book information among different departments and units, the address book information is incomplete and inaccurate, which brings trouble to government affairs collaborative office.
By extracting organizational affiliation information and position information from the address book data to be corrected, matching it with the abstract organizational hierarchical tree, searching for target level characteristic characters step by step, correcting the organizational affiliation information based on the target level characteristic characters, and realizing the address book Uniform correction of data.
It improves the effectiveness and efficiency of address book data correction and ensures the matching and accuracy of position information and organizational affiliation information in address book data of different units and departments.
Smart Images

Figure CN118535771A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for correcting address book data. Background Art
[0002] As the pace of digital transformation accelerates, collaborative government work has gradually become a trend. In the process of collaborative government work, various departments and units need to communicate, coordinate and exchange frequently. The address book service is created based on the organizational structure. Each unit and region authorizes the maintenance of the organizational affiliation information of local government affairs personnel according to their respective address book management permissions, and updates positions, telephone numbers and other information online in real time.
[0003] However, due to the lack of uniformity in address book information between different departments and units, changes in personnel organization, etc., the address book information is incomplete and inaccurate, which has brought certain troubles to government collaborative office. Summary of the invention
[0004] Embodiments of the present application provide a method, apparatus, device, and storage medium for correcting address book data.
[0005] According to the first aspect, an embodiment of the present application provides a method for correcting address book data, the method comprising: extracting organizational affiliation information and position information from the address book data to be corrected; matching the organizational affiliation information with an abstract organizational hierarchy tree to obtain organizational hierarchy information; in response to determining that the position information does not match the last-level hierarchical feature characters of the organizational hierarchy information, searching upward in the organizational hierarchy information for target hierarchical feature characters that match the position information step by step; in response to finding the target hierarchical feature characters, correcting the organizational affiliation information based on the target hierarchical feature characters.
[0006] According to the second aspect, an embodiment of the present application provides a device for correcting address book data, which includes: an extraction module, a matching module, a search module and a correction module, wherein the extraction module is configured to extract organizational affiliation information and position information from the address book data to be corrected; the matching module is configured to match the organizational affiliation information with an abstract organizational hierarchy tree to obtain organizational hierarchy information; the search module is configured to, in response to determining that the position information does not match the last-level hierarchical feature characters of the organizational hierarchy information, search upward in the organizational hierarchy information for target hierarchical feature characters that match the position information step by step; the correction module is configured to, in response to finding the target hierarchical feature characters, correct the organizational affiliation information based on the target hierarchical feature characters.
[0007] According to the third aspect, an embodiment of the present application provides an electronic device, which includes one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement a method for correcting address book data as in any embodiment of the first aspect.
[0008] According to a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements a method for correcting address book data as in any embodiment of the first aspect.
[0009] The present application extracts organizational affiliation information and position information from the address book data to be corrected; matches the organizational affiliation information with an abstract organizational hierarchy tree to obtain organizational hierarchy information; in response to determining that the position information does not match the last-level hierarchical feature characters of the organizational hierarchy information, searches upward in the organizational hierarchy information for target hierarchical feature characters that match the position information step by step; in response to finding the target hierarchical feature characters, corrects the organizational affiliation information based on the target hierarchical feature characters, that is, uses a unified abstract organizational hierarchy tree and hierarchical feature characters of each level to correct the problem of mismatch between position information and organizational affiliation information in the address book data of different units and departments, thereby improving the effectiveness and efficiency of correcting the address book data.
[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0012] Figure 2 is a flow chart of an embodiment of a method for correcting address book data according to the present application;
[0013] Figure 3 is a schematic diagram of an application scenario of the address book data correction method according to the present application;
[0014] Figure 4a is a flow chart of another embodiment of the method for correcting address book data according to the present application;
[0015] Figure 4b is a flow chart of another embodiment of the method for correcting address book data according to the present application;
[0016] Figure 4c is a flow chart of another embodiment of the method for correcting address book data according to the present application;
[0017] Figure 5 is a schematic diagram of an embodiment of a device for correcting address book data according to the present application;
[0018] Figure 6 It is a structural diagram of a computer system suitable for implementing a server of an embodiment of the present application. DETAILED DESCRIPTION
[0019] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0021] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the contact directory data correction method of the present application can be applied.
[0022] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0023] The terminal devices 101, 102, 103 interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications may be installed on the terminal devices 101, 102, 103, for example, address book data correction applications, communication applications, etc.
[0024] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to mobile phones and laptops. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide address book data correction services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0025] Server 105 can be a server that provides various services, for example, extracting organizational affiliation information and position information from the address book data to be corrected; matching the organizational affiliation information with the abstract organizational hierarchy tree to obtain organizational hierarchy information; in response to determining that the position information does not match the last-level hierarchical feature characters of the organizational hierarchy information, searching the organizational hierarchy information step by step for target hierarchical feature characters that match the position information; in response to finding the target hierarchical feature characters, correcting the organizational affiliation information based on the target hierarchical feature characters.
[0026] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, used to provide address book data correction services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0027] It should be noted that the address book data correction method provided in the embodiment of the present disclosure can be executed by the server 105, or by the terminal devices 101, 102, 103, or by the server 105 and the terminal devices 101, 102, 103 cooperating with each other. Accordingly, the various parts (such as various units, sub-units, modules, sub-modules) included in the address book data correction device can be all set in the server 105, or all set in the terminal devices 101, 102, 103, or respectively set in the server 105 and the terminal devices 101, 102, 103.
[0028] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0029] Figure 2 A flowchart 200 of an embodiment of a method for correcting contact data that can be applied to the present application is shown. In this embodiment, the method for correcting contact data includes the following steps:
[0030] Step 201: extracting organizational information and position information from the address book data to be corrected.
[0031] In this embodiment, the execution subject (such as Figure 1 The server 105 or terminal devices 101, 102, 103 shown in the figure can obtain the address book data to be corrected locally or from a remote server storing the address book data to be corrected, and extract the organization affiliation information and position information from the address book data to be corrected.
[0032] The organization affiliation information usually includes multiple organization names, each of which has a hierarchical relationship and can be connected by a hierarchical separator, for example, City A-District B-Bureau C-Division D-Office E, City F-District G, etc. Position information can be any information representing a position, for example, director, manager, etc.
[0033] Step 202, matching the organization affiliation information with the abstract organization hierarchy tree to obtain the organization hierarchy information.
[0034] In this embodiment, the execution subject may determine the organizational hierarchy information according to the organizational affiliation information and the matching information corresponding to each organizational node in the abstract organizational hierarchy tree.
[0035] Among them, each organization node corresponds to a hierarchical characteristic character. For each organization node, the matching information corresponding to the organization node is the method information of matching the organization affiliation information to the current organization node according to a preset matching rule (for example, regular expression matching, LIKE operator matching, etc.). For example, if the hierarchical characteristic character corresponding to the current organization node is "bureau", then the matching information corresponding to the organization node is the search method information of searching whether "bureau" exists in the organization affiliation information according to regular expression matching.
[0036] Here, the abstract organization hierarchy tree is constructed based on the preset organization hierarchy relationship and hierarchy characteristic characters, and each level of the abstract organization hierarchy tree may have one or more organization nodes. For example, the preset organization hierarchy relationship is: City A-District B-Bureau C-Department D-Office E, and the abstract organization hierarchy tree constructed based on this organization hierarchy relationship is: City-District-Bureau-Department-Office.
[0037] The order of the characteristic characters of each level in the organizational level information conforms to the hierarchical relationship indicated by the abstract organizational level tree.
[0038] Specifically, the preset organizational hierarchy relationship is: City A - District B - Bureau C - Department D - Office E. The abstract organizational hierarchy tree constructed based on the organizational hierarchy relationship is: City - District - Bureau - Department - Office. The organizational affiliation information in the address book data to be corrected is: City M - District N - Department F. The executing entity can match the organizational affiliation information with the above-mentioned abstract organizational hierarchy tree to obtain the organizational hierarchy information, namely city-district-department.
[0039] In some optional methods, the organization affiliation information is matched with the abstract organization hierarchy tree to obtain the organization hierarchy information, including: according to a preset alias mapping table, each organization name in the organization affiliation information is mapped to a standard organization name to generate standard organization affiliation information; the standard organization affiliation information is matched with the abstract organization hierarchy tree to obtain the organization hierarchy information.
[0040] In this implementation, the organization affiliation information includes multiple organization names, and each organization name can be connected by a hierarchical separator. The execution entity can first map each organization name in the organization affiliation information to a standard organization name according to a preset alias mapping table to generate standard organization affiliation information; match the standard organization affiliation information with the abstract organization hierarchy tree to obtain the organization hierarchy information.
[0041] The alias mapping table is used to represent the mapping relationship between the standard organization name and the candidate organization name.
[0042] Specifically, for example, the organization affiliation information is: Executive Vice President-Engineering Department-Electrical Control. The executing entity can map each organization name in the organization affiliation information, namely "Executive Vice President", "Engineering Department", and "Electrical Control" to a standard organization name according to a preset alias mapping table, and generate standard organization affiliation information: Executive Vice President-Engineering Department-Electrical Control Group; for another example, the organization affiliation information is: City A-District Medical Insurance Bureau. The executing entity can map each organization name in the organization affiliation information, namely "City A", "District Medical Insurance Bureau", to a standard organization name according to a preset alias mapping table, and generate standard organization affiliation information: City A-District Medical Insurance Bureau.
[0043] This implementation method generates standard organization affiliation information by mapping each organization name in the organization affiliation information to a standard organization name according to a preset alias mapping table; matches the standard organization affiliation information with an abstract organization hierarchy tree to obtain organization hierarchy information, i.e., determines the organization hierarchy information based on the standard organization affiliation information, effectively avoiding the problem of errors in the determined organization hierarchy information caused by the organization name in the organization affiliation information being an abbreviation or an alias. This method effectively improves the accuracy and rationality of the determined organization hierarchy information.
[0044] Step 203 , in response to determining that the position information does not match the final level characteristic characters of the organizational level information, searching the organizational level information for target level characteristic characters that match the position information step by step upward.
[0045] In this embodiment, the organizational hierarchy information includes multiple levels of hierarchical characteristic characters. The execution subject can determine whether the position information matches the last level characteristic characters of the organizational hierarchy information. If not, the execution subject can search the organizational hierarchy information step by step for target level characteristic characters that match the position information.
[0046] Here, the method for judging whether the final-level characteristic characters of the position information and the organizational hierarchy information match can be to directly judge whether the position information and the final-level characteristic characters conform to the preset mapping relationship based on the preset mapping relationship table of the position information and the hierarchy characteristic characters; or the position information and the standard roles in the standard role table corresponding to the final-level characteristic characters can be matched to determine whether there is a target standard role that matches the position information. This application does not limit this.
[0047] In some optional methods, in response to determining that the last-level characteristic characters of the position information and the organizational hierarchy information do not match, the target level characteristic characters that match the position information are searched for level by level in the organizational hierarchy information, including: matching the position information with each standard role in the standard role table corresponding to the last-level characteristic characters of the organizational hierarchy information; in response to determining that there is no target standard role that matches the position information, searching for the target level characteristic characters that match the position information level by level in the organizational hierarchy information.
[0048] In this implementation, the executing entity can calculate the role similarity of each standard role in the standard role table corresponding to the last-level hierarchical characteristic characters of the job information and the organizational hierarchy information; if the role similarities corresponding to each standard role do not meet the preset conditions, it is determined that there is no target standard role that matches the job information, and the target hierarchical characteristic characters that match the job information are searched upward step by step in the organizational hierarchy information; if there is a role similarity that meets the preset conditions, the standard role corresponding to the role similarity that meets the preset conditions is determined as the target standard role.
[0049] Among them, the preset conditions can be set according to experience and actual needs, for example, the role similarity is greater than or equal to a preset role similarity threshold, greater than a preset role similarity threshold, etc.
[0050] Specifically, the organization affiliation information included in the address book data is: City A - District B - Bureau C - Department D, and the position information is: Director. The executing entity matches the organization affiliation information with the abstract organization hierarchy tree, and the obtained organization hierarchy information is: City - District - Bureau - Department. The standard role table corresponding to the last-level hierarchical feature character "Department" of the organization hierarchy information includes standard roles such as "Director, Deputy Director". Since the position information "Director" does not match the standard roles, the executing entity can search the standard role table corresponding to each level feature character in the organization hierarchy information from the last-level hierarchical feature character upwards. For example, if the "Bureau" level feature character is searched, the standard role table corresponding to the level feature character includes standard roles such as "Director, Deputy Director". Since the position information "Director" matches the standard role "Director", the executing entity can determine the "Bureau" level feature character as the target level feature character.
[0051] This implementation method matches the job information with each standard role in the standard role table corresponding to the last-level characteristic character of the organizational hierarchy information; in response to determining that there is no target standard role matching the job information, the target level characteristic character matching the job information is searched upward level by level in the organizational hierarchy information, that is, the target level characteristic character is determined directly based on whether the standard role table matches. Compared with determining whether the job information matches the last-level characteristic character based on a preset mapping relationship table, this method is more intuitive and specific, and further improves the accuracy and reliability of the determined matching results.
[0052] Step 204 : in response to finding the target-level characteristic character, correct the organization affiliation information based on the target-level characteristic character.
[0053] In this embodiment, after determining the target level characteristic characters, the execution subject may correct the organization affiliation information according to the target level characteristic characters.
[0054] Specifically, the organizational affiliation information included in the address book data is: City A-District B-Bureau C-Department D, the position information is: Director, and the target level characteristic character is "Bureau". The executing entity can correct the organizational affiliation information A City-District B-Bureau C-Department D to A City-District B-Bureau C based on the target level characteristic character.
[0055] In some optional embodiments, the method also includes: updating the abstract organization hierarchy tree by: matching the newly added organization affiliation information included in the newly added address book data with the abstract organization hierarchy tree; in response to determining that the newly added organization affiliation information partially matches the abstract organization hierarchy tree, updating the abstract organization hierarchy tree based on the last-level characteristic characters of the organization hierarchy information corresponding to the matching part in the newly added organization affiliation information and the organization name included in the unmatched part.
[0056] In this implementation, the execution subject may obtain the newly added address book data in real time or periodically, and match the newly added organization affiliation information included in the newly added address book data with the abstract organization hierarchy tree.
[0057] If it is determined that the newly added organizational affiliation information partially matches the abstract organizational hierarchy tree (that is, the organizational affiliation information includes a matching part and an unmatched part), the abstract organizational hierarchy tree is updated based on the last-level characteristic characters of the organizational hierarchy information corresponding to the matching part in the newly added organizational affiliation information and the organization name included in the unmatched part.
[0058] Here, the execution entity can directly update the abstract organizational hierarchy tree based on the last-level characteristic characters of the organizational hierarchy information corresponding to the matching part of the newly added organizational affiliation information and the organization name included in the unmatched part; or it can first perform word segmentation processing on the organization name included in the unmatched part to obtain a word segmentation result, and determine the word segmentation result whose text support (i.e., the frequency of occurrence of the text in a preset text data set) is greater than a preset support threshold as the target word segmentation result, and update the abstract organizational hierarchy tree based on the last-level hierarchical characteristic characters of the organizational hierarchy information corresponding to the matching part of the newly added organizational affiliation information and the target word segmentation result. The present application does not limit this.
[0059] Specifically, the abstract organizational hierarchy tree is: city-district-bureau, and the newly added organizational affiliation information included in the newly added address book data is: city A-district B-bureau C-department D. The executing entity matches the newly added organizational affiliation information with the abstract organizational hierarchy tree to obtain the organizational hierarchy information: city-district-bureau. Since the newly added organizational affiliation information partially matches the abstract organizational hierarchy tree, the executing entity can update the abstract organizational hierarchy tree based on the last-level characteristic character of the organizational hierarchy information corresponding to the matching part (i.e., city A-district B-bureau C), i.e., "bureau", and the organization name included in the unmatched part, i.e., "department D".
[0060] Here, the execution entity can directly update the abstract organizational hierarchy tree according to the preset hierarchical relationship table, based on the last-level hierarchical characteristic characters of the organizational hierarchy information corresponding to the matching part (i.e., City A-District B-Bureau C), i.e., "Bureau", and the organization name included in the unmatched part, i.e., "Department D"; or the last-level hierarchical characteristic characters of the organizational hierarchy information corresponding to the matching part (i.e., City A-District B-Bureau C), i.e., "Bureau", and the organization name included in the unmatched part, i.e., "Department D" can be presented to the user, and the user can update the abstract organizational hierarchy tree according to the correspondence between the last-level hierarchical characteristic characters and the organization name included in the unmatched part. This application does not limit this.
[0061] Specifically, according to the preset hierarchical relationship, the execution subject may add an organization node corresponding to the hierarchical characteristic character "bureau" under the organization node corresponding to the hierarchical characteristic character "bureau" in the abstract organization hierarchy tree.
[0062] This implementation method matches the newly added organization affiliation information included in the newly added address book data with the abstract organization hierarchy tree; in response to determining that the newly added organization affiliation information partially matches the abstract organization hierarchy tree, the abstract organization hierarchy tree is updated based on the last-level hierarchy feature characters of the organization hierarchy information corresponding to the matching part in the newly added organization affiliation information and the organization name included in the unmatched part, thereby achieving real-time updating of the abstract organization hierarchy tree according to the newly added address book data, thereby ensuring the validity and reliability of the abstract organization hierarchy tree.
[0063] Continue to see Figure 3 , Figure 3 It is a schematic diagram of an application scenario of the address book data correction method according to this embodiment.
[0064] exist Figure 3 In the application scenario, the execution subject 301 can obtain the address book data 302 to be corrected locally or on a remote server storing the address book data to be corrected, extract the organization affiliation information and position information from the address book data 302 to be corrected, for example, the organization affiliation information is: City A - District B - Bureau C - Department D, the position information is: Director, match the organization affiliation information with the abstract organization hierarchy tree 303 to obtain the organization hierarchy information 304, the abstract organization hierarchy tree is constructed based on the preset organization hierarchy relationship and hierarchy feature characters, for example, city - district - bureau - department - office, each organization node of the abstract organization hierarchy tree is a hierarchical feature character, namely "city", "district", "bureau", "department", "office" In response to determining that the position information does not match the last-level characteristic character of the organizational hierarchy information, that is, the position information "bureau director" does not match the last-level characteristic character of the organizational hierarchy information "bureau director", the organizational hierarchy information is searched for the target level characteristic character 305 that matches the position information step by step in the organizational hierarchy information; in response to finding the target level characteristic character 305, that is, "bureau", the organizational affiliation information is corrected 306 based on the target level characteristic character, and the corrected organizational affiliation information is: A city-B district-C bureau, and the corrected address book data is: A city-B district-C bureau, bureau director.
[0065] The address book data correction method disclosed in the present invention extracts organization affiliation information and position information from the address book data to be corrected; matches the organization affiliation information with an abstract organization hierarchy tree to obtain the organization hierarchy information; in response to determining that the position information does not match the last-level hierarchical feature characters of the organization hierarchy information, searches for target hierarchical feature characters that match the position information in the organization hierarchy information step by step; in response to finding the target hierarchical feature characters, corrects the organization affiliation information based on the target hierarchical feature characters, that is, uses a unified abstract organization hierarchy tree and hierarchical feature characters of each level to correct the problem of mismatch between position information and organization affiliation information in the address book data of different units and departments, thereby improving the effectiveness and efficiency of correcting the address book data.
[0066] Further references Figure 4a , which shows a process 400 of another embodiment of the method for correcting contact data. In this embodiment, the process 400 of the method for correcting contact data may include the following steps:
[0067] Step 401, extracting organizational information and position information from the address book data to be corrected.
[0068] In this embodiment, the implementation details and technical effects of step 401 can refer to the description of step 201 and will not be repeated here.
[0069] Step 402, matching the organization affiliation information with the abstract organization hierarchy tree to obtain the organization hierarchy information.
[0070] In this embodiment, the implementation details and technical effects of step 402 can refer to the description of step 202 and will not be repeated here.
[0071] Step 403 , in response to determining that the position information does not match the final level characteristic characters of the organizational level information, searching the organizational level information for target level characteristic characters that match the position information step by step upward.
[0072] In this embodiment, the implementation details and technical effects of step 403 may refer to the description of step 203 and will not be repeated here.
[0073] Step 404 : in response to finding the target level characteristic character, correct the organization affiliation information based on the target level characteristic character.
[0074] In this embodiment, the implementation details and technical effects of step 404 can refer to the description of step 204 and will not be repeated here.
[0075] Step 405 , in response to not finding the target hierarchical characteristic character, determining whether there is a target non-standard role based on the first similarity between the position information and each non-standard role in a preset non-standard role table.
[0076] In this embodiment, the execution entity searches for characteristic characters of each level in the organizational hierarchy information step by step to determine whether there are characteristic characters of the target level that match the position information. If there are no characteristic characters of the target level, that is, the position information does not match the characteristic characters of each level in the organizational hierarchy information, then the first similarity between the position information and each non-standard role in the preset non-standard role table can be calculated.
[0077] Here, the executing entity can directly calculate the first similarity between the job information and each non-standard role in the preset non-standard role table, or it can first segment the job information, for example, segment "director's assistant" into "director", "assistant", etc., and calculate the first similarity between the job information after segmentation and each non-standard role in the preset non-standard role table. This application does not limit this.
[0078] Step 406 , in response to determining that there is a target non-standard role, correcting the position information based on the target non-standard role.
[0079] In this embodiment, the first similarity between the job information and the target non-standard role meets the first preset condition. After determining the target non-standard role, the executing entity can directly correct the job information according to the target non-standard role, or correct the job field according to the correction strategy corresponding to the target non-standard role. This application does not limit this.
[0080] The first preset condition may be set according to actual needs, for example, the first similarity is greater than or equal to a preset similarity threshold, greater than a preset similarity threshold, etc.
[0081] Here, the similarity threshold can be set according to experience and actual needs, for example, 0.8, 0.9, etc., and this application does not limit this.
[0082] Specifically, the job information is "incumbent employee" and the target non-standard role is "staff member". The executing entity can directly correct the job information "incumbent employee" to "staff member".
[0083] In some optional methods, the standard role table and the non-standard role table are generated in the following manner: each job data in the job data list is split according to the job separator to obtain a candidate job set; each candidate job in the candidate job set is clustered to obtain a job cluster set; based on the job cluster set, the standard role table and the non-standard role table are determined.
[0084] In this implementation, after obtaining the job data list, the execution subject may first split each job data in the job data list according to the job separator to obtain a set of candidate jobs.
[0085] The position separator can be any character used to separate fields, such as "-", ",", etc., which is not limited in this application. For example, "deputy manager, chief engineer" can be split into "deputy manager", "chief engineer"; "deputy mayor, director" can be split into "deputy mayor", "director", etc.
[0086] Furthermore, the executing entity may cluster the candidate positions in the candidate position set to obtain a position cluster set. After obtaining the position cluster set, the executing entity may obtain a standard role table and a non-standard role table according to the position cluster set in accordance with a preset matching rule. The position cluster set may also be presented to the user, and a standard role table and a non-standard role table may be obtained based on the user's judgment. This application does not limit this.
[0087] This implementation method splits each job data in the job data list according to the job separator to obtain a candidate job set; clusters each candidate job in the candidate job set to obtain a job cluster set; based on the job cluster set, determines the standard role table and the non-standard role table, thereby improving the efficiency and accuracy of the generated standard role table and non-standard role table.
[0088] In some optional embodiments, the method further includes: mapping each organization name in the corrected organization attribution information to a standard organization name according to a preset alias mapping table, to generate corrected standard organization attribution information.
[0089] In this implementation, after obtaining the corrected organization affiliation information, the execution subject may map each organization name in the corrected organization affiliation information to a standard organization name according to a preset alias mapping table to generate the corrected standard organization affiliation information.
[0090] This implementation method maps each organization name in the corrected organization attribution information to a standard organization name according to a preset alias mapping table, generates corrected standard organization attribution information, and improves the validity and standardization of the corrected organization attribution information.
[0091] In some optional methods, the alias mapping table is generated in the following manner: for each level in the organizational hierarchy of the entity, determine the second similarity between each organization name in the level and the remaining organization names, and determine the organization name whose second similarity meets the second preset condition as: the candidate organization name corresponding to the standard organization name of the level; and construct an alias mapping table based on the standard organization name and the corresponding candidate organization name.
[0092] In this implementation, the execution entity can generate an alias mapping table in the following manner: determine each level in the entity's organizational hierarchy relationship based on the edit distance, and for each level, calculate the second similarity between each organization name in the level and each of the remaining organization names, and determine the organization name whose second similarity meets the second preset condition as the candidate organization name corresponding to the standard organization name of the level; further, construct an alias mapping table based on the standard organization name and the corresponding candidate organization name.
[0093] The second preset condition may be set according to actual needs, for example, the second similarity is greater than or equal to a preset similarity threshold, greater than a preset similarity threshold, etc.
[0094] Here, the similarity threshold can be set according to experience and actual needs, for example, 0.8, 0.9, etc., and this application does not limit this.
[0095] Specifically, for a level in the organizational hierarchy relationship of an entity, if the second similarity between organization name A and organization name B is greater than or equal to a preset similarity threshold, such as 0.8, then organization names A and B can be determined as candidate organization names corresponding to the standard organization names of this level, and an alias mapping table can be constructed based on the standard organization names and the corresponding candidate organization names.
[0096] In a specific example, Figure 4b As shown, offline synchronization is performed on the physical address book to obtain the existing physical address book, wherein the physical address book may include multiple address book data, and the address book data includes organizational affiliation information and position information. Based on the physical address book, the following operations are performed: standard role extraction is performed to obtain a standard role table; alias mapping table is constructed and updated to obtain an alias mapping table; abstract organization hierarchy extraction is performed to obtain an abstract organization hierarchy tree. Further, based on the standard role table, alias mapping table, and abstract organization hierarchy tree, the address book data to be corrected is corrected using an address book data correction method to obtain corrected address book data, and the physical address book is updated based on the corrected address book data.
[0097] In another specific example, Figure 4c As shown, the process of address book data correction may specifically include the following parts: abstract organization hierarchy tree update, specifically including: matching the newly added organization affiliation information included in the newly added address book data with the abstract organization hierarchy tree; in response to determining that the newly added organization affiliation information partially matches the abstract organization hierarchy tree, the last-level characteristic characters of the organization hierarchy information corresponding to the matching part in the newly added organization affiliation information and the organization name included in the unmatched part may be presented to the user, and the user manually checks and updates the abstract organization hierarchy tree to obtain an updated abstract organization hierarchy tree.
[0098] The alias mapping table is determined, specifically including: for each level in the organizational hierarchy of the entity, determining the second similarity between each organization name in the level and the remaining organization names, that is, calculating the similarity of the organization names at the same level, obtaining a similarity pair list, and determining the organization name in the similarity pair list whose second similarity meets the second preset condition as: the candidate organization name corresponding to the standard organization name at the level; constructing an alias mapping table based on the standard organization name and the corresponding candidate organization name. Further, after obtaining the alias mapping table, the alias mapping table can be checked for organizational rationality based on the updated abstract organizational hierarchy tree, that is, the rationality of the candidate organization name. Further, the alias mapping table can be iteratively corrected through manual hierarchical investigation and confirmation.
[0099] The construction of the standard role table and the non-standard role table may specifically include: splitting each job data in the job data list according to the job separator to obtain a candidate job set; clustering each candidate job in the candidate job set to obtain a job cluster set; based on the job cluster set, determining the standard role table and the non-standard role table, and may also include: matching the standard role table with the job data list, if there is unmatched job data, extracting information for the unmatched job data, manually checking and updating the extracted data, to obtain an updated standard role table and non-standard role table.
[0100] Here, the updated standard role table and the non-standard role table can be stored together in the word segmentation library.
[0101] Address book data correction specifically includes: extracting organization affiliation information and position information from the address book data to be corrected; performing standard verification on the organization affiliation information and position information to obtain standard organization affiliation information and standard position information, wherein the standard position information can overcome the problem that the position information is abbreviation or alias, and matching the standard organization affiliation information with the abstract organization hierarchy tree to obtain the organization hierarchy information; matching the standardized verified position information with the role table, in response to determining that the position information does not match the standard roles in the standard role table corresponding to the last level feature character of the organization hierarchy information, searching for the target level feature character matching the position information in the organization hierarchy information step by step; in response to finding the target level feature character, correcting the organization affiliation information based on the target level feature character. In response to not finding the target level feature character, determining whether there is a target non-standard role based on the first similarity between the position information and each non-standard role in the preset non-standard role table; in response to determining that there is a target non-standard role, correcting the position information based on the target non-standard role. Finally, a log file is generated according to the address book data correction process.
[0102] This implementation method determines the second similarity between each organization name in each level of the entity's organizational hierarchy and the remaining organization names, and determines the organization name whose second similarity meets the second preset condition as: the candidate organization name corresponding to the standard organization name of the level; based on the standard organization name and the corresponding candidate organization name, an alias mapping table is constructed, which fully considers the organization aliases that may exist in the entity's organizational hierarchy, and improves the accuracy and reliability of the determined alias mapping table.
[0103] from Figure 4a It can be seen that Figure 2Compared with the corresponding embodiments, process 400 of the address book data correction method in this embodiment reflects that in response to not finding the target level feature character, based on the first similarity between the position information and each non-standard role in the preset non-standard role table, it is determined whether there is a target non-standard role; in response to determining that the target non-standard role exists, the position information is corrected based on the target non-standard role. This method realizes the correction of the position information in the address book data, and further improves the effectiveness and comprehensiveness of the address book data correction.
[0104] Further references Figure 5 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a device for correcting address book data. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0105] like Figure 5 As shown, the address book data correction device 500 of this embodiment includes: an extraction module 501, a matching module 502, a search module 503 and a correction module 504.
[0106] The extraction module 501 may be configured to extract organizational affiliation information and position information from the address book data to be corrected.
[0107] The matching module 502 may be configured to match the organization affiliation information with the abstract organization hierarchy tree to obtain the organization hierarchy information.
[0108] The search module 503 may be configured to search for target level characteristic characters matching the position information in the organizational hierarchy information level by level in response to determining that the position information does not match the last level characteristic characters of the organizational hierarchy information.
[0109] The correction module 504 may be configured to correct the organization affiliation information based on the target-level characteristic character in response to finding the target-level characteristic character.
[0110] In some optional embodiments of this embodiment, the device also includes: a determination module, which is configured to determine whether there is a target non-standard role based on the first similarity between the job information and each non-standard role in a preset non-standard role table in response to not finding the target level feature character; in response to determining that the target non-standard role exists, correct the job information based on the target non-standard role.
[0111] In some optional modes of this embodiment, the search module is further configured to match the position information with each standard role in the standard role table corresponding to the last-level hierarchical characteristic characters of the organizational hierarchy information; in response to determining that there is no target standard role that matches the position information, the target hierarchical characteristic characters that match the position information are searched upward level by level in the organizational hierarchy information.
[0112] In some optional methods of this embodiment, the standard role table and the non-standard role table are generated in the following manner: each job data in the job data list is split according to the job separator to obtain a candidate job set; each candidate job in the candidate job set is clustered to obtain a job cluster set; based on the job cluster set, the standard role table and the non-standard role table are obtained.
[0113] In some optional embodiments of this embodiment, the matching module is further configured to map each organization name in the organization affiliation information to a standard organization name according to a preset alias mapping table to generate standard organization affiliation information; and match the standard organization affiliation information with the abstract organization hierarchy tree to obtain organization hierarchy information.
[0114] In some optional aspects of this embodiment, the device further includes: a mapping module configured to map each organization name in the corrected organization affiliation information to a standard organization name according to a preset alias mapping table, thereby generating corrected standard organization affiliation information.
[0115] In some optional methods of this embodiment, the alias mapping table is generated in the following manner: for each level in the organizational hierarchy of the entity, determine the second similarity between each organization name in the level and the remaining organization names, and determine the organization name whose second similarity meets the second preset condition as: the candidate organization name corresponding to the standard organization name of the level; and construct an alias mapping table based on the standard organization name and the corresponding candidate organization name.
[0116] In some optional embodiments of the present embodiment, the device also includes an update module, which is configured to match the newly added organization affiliation information included in the newly added address book data with the abstract organization hierarchy tree; in response to determining that the newly added organization affiliation information partially matches the abstract organization hierarchy tree, the abstract organization hierarchy tree is updated based on the last-level hierarchy feature characters of the organization hierarchy information corresponding to the matching part in the newly added organization affiliation information and the organization name included in the unmatched part.
[0117] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0118] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0119] like Figure 6 , is a block diagram of an electronic device according to the address book data correction method of an embodiment of the present application.
[0120] 600 is a block diagram of an electronic device according to the address book data correction method of an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0121] like Figure 6 As shown, the electronic device includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 601 is taken as an example.
[0122] The memory 602 is a non-transient computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the address book data correction method provided in the present application. The non-transient computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the address book data correction method provided in the present application.
[0123] The memory 602 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the contact data correction method in the embodiment of the present application (for example, the attached Figure 5 The processor 601 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 602, that is, the address book data correction method in the above method embodiment is implemented.
[0124] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of the electronic device for address book data correction, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 602 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the electronic device for address book data correction via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0125] The electronic device of the address book data correction method may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0126] The input device 603 can receive input digital or character information, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a track ball, a joystick, and other input devices. The output device 604 may include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor). The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device may be a touch screen.
[0127] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0128] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0129] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0130] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0131] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0132] According to the technical solution of the embodiment of the present application, effective correction of address book data is achieved.
[0133] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0134] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for correcting address book data, the method comprising: Extracting organizational affiliation information and position information from the address book data to be corrected; Matching the organization affiliation information with an abstract organization hierarchy tree to obtain organization hierarchy information, wherein the abstract organization hierarchy tree is constructed based on a preset organization hierarchy relationship and hierarchy characteristic characters; In response to determining that the position information does not match the last level characteristic character of the organizational level information, searching the organizational level information for a target level characteristic character that matches the position information step by step upward; In response to finding the target-level characteristic character, the organization affiliation information is corrected based on the target-level characteristic character.
2. The method according to claim 1, further comprising: In response to not finding the target hierarchical characteristic character, determining whether there is a target non-standard role based on a first similarity between the position information and each non-standard role in a preset non-standard role table; In response to determining that there is a target non-standard role, the position information is corrected based on the target non-standard role.
3. The method according to claim 2, wherein: In response to determining that the position information does not match the last level characteristic character of the organizational hierarchy information, searching the organizational hierarchy information for a target level characteristic character that matches the position information step by step upwards, including: Matching the position information with each standard role in the standard role table corresponding to the last level characteristic character of the organizational level information; In response to determining that there is no target standard role matching the position information, searching for target hierarchical characteristic characters matching the position information in the organizational hierarchical information level by level.
4. The method according to claim 3, wherein: The standard role table and the non-standard role table are generated in the following manner: Each piece of job data in the job data list is split according to the job separator to obtain a set of candidate jobs; Clustering each candidate position in the candidate position set to obtain a position cluster set; Based on the position cluster set, a standard role table and a non-standard role table are determined.
5. The method according to claim 1, wherein: The organization attribution information includes a plurality of organization names, and the organization attribution information is matched with an abstract organization hierarchy tree to obtain organization hierarchy information, including: According to a preset alias mapping table, each organization name in the organization attribution information is mapped to a standard organization name to generate standard organization attribution information, wherein the alias mapping table is used to characterize a mapping relationship between the standard organization name and the candidate organization name; The standard organization affiliation information is matched with the abstract organization hierarchy tree to obtain organization hierarchy information.
6. The method according to claim 1, further comprising: According to a preset alias mapping table, each organization name in the corrected organization attribution information is mapped to a standard organization name to generate the corrected standard organization attribution information, wherein the alias mapping table is used to characterize the mapping relationship between the standard organization name and the candidate organization name.
7. The method according to any one of claims 5 or 6, wherein: The alias mapping table is generated in the following way: For each level in the organizational hierarchy of the entity, determine a second similarity between each organization name in the level and the remaining organization names, and determine the organization name whose second similarity meets the second preset condition as: a candidate organization name corresponding to the standard organization name of the level; An alias mapping table is constructed according to the standard organization name and the corresponding candidate organization name.
8. The method according to any one of claims 1 to 6, further comprising: The abstract organization hierarchy tree is updated in the following ways: Matching the newly added organization affiliation information included in the newly added address book data with the abstract organization hierarchy tree; In response to determining that the newly added organization affiliation information partially matches the abstract organization hierarchy tree, the abstract organization hierarchy tree is updated based on the last-level characteristic characters of the organization hierarchy information corresponding to the matching portion in the newly added organization affiliation information and the organization name included in the unmatched portion.
9. A device for correcting address book data, comprising: An extraction module, configured to extract organizational affiliation information and position information from the address book data to be corrected; A matching module is configured to match the organization affiliation information with an abstract organization hierarchy tree to obtain organization hierarchy information, wherein the abstract organization hierarchy tree is constructed based on a preset organization hierarchy relationship and hierarchy characteristic characters; A search module is configured to, in response to determining that the position information does not match the last level characteristic character of the organizational hierarchy information, search the organizational hierarchy information for a target level characteristic character that matches the position information level by level; The correction module is configured to correct the organization affiliation information based on the target level characteristic character in response to finding the target level characteristic character.
10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Personnel visible address book permission setting method, electronic equipment and storage medium
CN111552841A
Data synchronization method and device, equipment and storage medium
CN113157980A
Position name identification method and device, computing processing equipment, program and medium
CN114461900A
Intelligent management method and system for organizational structure and medium
CN114548914A
Multi-level block chain system, role management method thereof and related products
CN114626803A
Cited By
Dynamic intelligent retrieval method for address book organization permission tree based on compression algorithm
CN119336954A
