Structural information normalization method and device, computer readable storage medium and electronic device

By constructing a prefix tree and a tree diagram to match structural information, the problem of low efficiency in the standardization of structural information in existing technologies is solved, and efficient and accurate standardization processing and information consistency are achieved.

CN120578783BActive Publication Date: 2026-02-10NO 15 INST OF CHINA ELECTRONICS TECH GRP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510500338.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-21
Publication Date
2026-02-10
Estimated Expiration
2045-04-21

AI Technical Summary

Technical Problem

Existing technologies cannot efficiently and accurately standardize structural information, which can easily lead to errors and waste of human resources.

Method used

By constructing a prefix tree and a tree diagram for structural information, the set of tuples of structural information to be matched is extracted and matched with the prefix tree and tree diagram. The maximum matching degree is calculated to determine the normalized structural information.

Benefits of technology

It enables efficient and accurate standardization of structural information, ensuring the standardization and consistency of information, and recording the optimization and adjustment process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120578783B_ABST
    Figure CN120578783B_ABST
Patent Text Reader

Abstract

The present disclosure provides a structure information normalization method and device, a computer readable storage medium and an electronic device, and relates to the technical field of data modeling analysis. The method comprises: obtaining structure information to be normalized; determining a set of structure information tuples to be matched according to the structure information; matching each tuple in the set of structure information tuples to be matched with a prefix tree and a tree graph constructed respectively to obtain a set of candidate structure information corresponding to the tuple; calculating the maximum matching degree between the tuple and each candidate structure information in the set of candidate structure information; and determining target structure information corresponding to the structure information according to the target candidate structure information corresponding to the maximum matching degree, wherein the target structure information is used to represent the normalized structure information. The present disclosure realizes efficient and accurate normalization processing of structure information.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of data modeling analysis, in particular to a structure information normalization method and device, a computer readable storage medium and an electronic device. BACKGROUND

[0002] In the process of modernization, in order to make the structure information more suitable for the needs of modernization line scene, the structure information will be continuously optimized and adjusted. In order to ensure the integrity and consistency of the structure information, a scientific and standardized way is needed to adjust the structure information accordingly.

[0003] However, the manual adjustment method is prone to errors and wastes human resources.

[0004] Therefore, the related technology cannot efficiently and accurately normalize the structure information. SUMMARY

[0005] The main purpose of the present disclosure is to provide a structure information normalization method and device, a computer readable storage medium and an electronic device, to solve the problem that the related technology cannot efficiently and accurately normalize the structure information.

[0006] To achieve the above purpose, the first aspect of the present disclosure provides a structure information normalization method, comprising:

[0007] obtaining structure information to be normalized;

[0008] determining a set of structure information tuples to be matched according to the structure information; one structure information corresponds to one tuple in the set of structure information tuples to be matched;

[0009] For each tuple in the set of structure information tuples to be matched, the tuple is matched with the prefix tree and tree graph constructed respectively, to obtain a set of candidate structure information corresponding to the tuple;

[0010] calculating the maximum matching degree between the tuple and each candidate structure information in the set of candidate structure information;

[0011] determining the target structure information corresponding to the structure information according to the target candidate structure information corresponding to the maximum matching degree, the target structure information being used to represent the normalized structure information.

[0012] Optionally, further, the determining a set of structure information tuples to be matched according to the structure information comprises:

[0013] According to the keywords, the data type of the structure information, and the data characteristics, the hierarchical information and the attribute information are extracted from the structure information by using a multi-round recursive regular matching mode, and the corresponding labels are marked on the hierarchical information and the attribute information, the data type includes: string type, numerical value type, and code type, the data characteristics include: string length, numerical value precision, and code standard, and the attribute information includes at least one of the following: unit code, postcode, area code, longitude, and latitude.

[0014] The extracted hierarchical information is combined according to the levels, and the corresponding tuple set of the structure information to be matched is obtained by eliminating irregular combinations.

[0015] Optionally, further, the tuple is matched with the prefix tree and the tree graph constructed respectively to obtain the candidate structure information set corresponding to the tuple, including:

[0016] The tuple is searched in the prefix tree to obtain a prefix tree matching result, and the prefix tree matching result includes all prefix paths to be matched and matched nodes;

[0017] According to the prefix tree matching result, the node corresponding to the tree graph is located, and the matching of the tuple and the node and the child nodes corresponding to the tree graph is checked to obtain the candidate structure information set corresponding to the tuple.

[0018] Optionally, further, the maximum matching degree between the tuple and each candidate structure information in the candidate structure information set is calculated, including:

[0019] The tuple and each candidate structure information in the candidate structure information set are respectively converted into structure information vectors;

[0020] The matching degrees of each component in the structure information vectors corresponding to the tuple and each candidate structure information in the candidate structure information set are calculated to obtain the matching degrees between the tuple and each candidate structure information in the candidate structure information set;

[0021] The matching degrees between the tuple and each candidate structure information in the candidate structure information set are sorted to obtain the maximum matching degree.

[0022] Optionally, further, the target structure information corresponding to the structure information is determined according to the target candidate structure information corresponding to the maximum matching degree, including:

[0023] if the maximum matching degree is greater than or equal to a preset threshold, determining target structure information corresponding to the structure information according to a state corresponding to the target candidate structure information, and performing necessary information filling on the target candidate structure information based on the to-be-matched structure information corresponding to the tuple; the state includes a standard state, a historical state, and a to-be-confirmed state;

[0024] if the maximum matching degree is equal to 1 and the candidate structure information set contains one candidate structure information, taking the target candidate structure information as the target structure information, and performing necessary information filling on the target candidate structure information based on the to-be-matched structure information corresponding to the tuple;

[0025] if the maximum matching degree is equal to 0, obtaining structure information with the most complete information corresponding to the tuple, and marking the structure information with the most complete information as a to-be-confirmed state.

[0026] Optionally, further, the determining the target structure information corresponding to the structure information according to the state corresponding to the target candidate structure information includes:

[0027] if the state corresponding to the target candidate structure information is a historical state, obtaining the currently used standard structure information corresponding to the target candidate structure information through a stored association relationship, and taking the currently used standard structure information corresponding to the target candidate structure information and the target candidate structure information together as the target structure information, and adjusting the credibility and the state of the target candidate structure information;

[0028] if the state corresponding to the target candidate structure information is a standard state, taking the target candidate structure information as the target structure information;

[0029] if the state of the target candidate structure information is a to-be-confirmed state, increasing the credibility of the target candidate structure information, wherein when the credibility is greater than or equal to a credibility threshold, adjusting the state of the target candidate structure information to a historical state or a standard state.

[0030] A second aspect of the present disclosure provides a structure information normalization device, comprising:

[0031] an obtaining unit configured to obtain structure information to be normalized;

[0032] a first processing unit configured to determine a to-be-matched structure information tuple set according to the structure information; one structure information corresponds to one tuple in the to-be-matched structure information tuple set;

[0033] The matching unit is configured to match each tuple in the set of to-be-matched structure information tuples with the constructed prefix tree and tree graph respectively, to obtain a set of candidate structure information corresponding to the tuple;

[0034] The second processing unit is configured to calculate a maximum matching degree between the tuple and each candidate structure information in the set of candidate structure information.

[0035] The third processing unit is configured to determine target structure information corresponding to the structure information according to target candidate structure information corresponding to the maximum matching degree, the target structure information being used to represent normalized structure information.

[0036] The third aspect of the present disclosure provides a computer readable storage medium, which stores computer instructions for causing a computer to execute the structure information normalization method provided in any one of the first aspect.

[0037] The fourth aspect of the present disclosure provides an electronic device, which comprises at least one processor and a memory connected with the at least one processor; wherein the memory stores computer programs executable by the at least one processor, and the computer programs are executed by the at least one processor to cause the at least one processor to execute the structure information normalization method provided in any one of the first aspect.

[0038] The fifth aspect of the present disclosure provides a computer program product, which comprises a computer program executable by a processor to implement the structure information normalization method provided in any one of the first aspect.

[0039] In the structure information normalization method provided in the embodiments of the present disclosure, the structure information to be normalized is obtained, and based on the structure information, a set of to-be-matched structure information tuples is determined, the to-be-matched structure information corresponding to the structure information is matched by using the constructed prefix tree and tree graph, the normalized structure information is obtained by calculating the matching degree and sorting, the purpose of normalization processing of the structure information is achieved, and efficient and accurate normalization processing is realized, so that the structure information of different sources has the technical effect of normalization, and the technical problem that related technologies cannot efficiently and accurately normalize the structure information is solved. BRIEF DESCRIPTION OF DRAWINGS

[0040] In order to make the technical solutions in the specific embodiments or related art of the present disclosure clearer, the accompanying drawings needed in the specific embodiments or related art description will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure, and all other embodiments obtained by those of ordinary skill in the art without creative labor should be within the protection scope of the present disclosure.

[0041] Figure 1 The flowchart of the structural information normalization method provided by the embodiment of the present disclosure is shown in the figure.

[0042] Figure 2 The scene diagram of the structural information normalization method provided by the embodiment of the present disclosure is shown in the figure.

[0043] Figure 3 The flowchart of the structural information normalization method provided by the embodiment of the present disclosure is shown in the figure.

[0044] Figure 4 The E-R diagram of the structural information knowledge base provided by the embodiment of the present disclosure is shown in the figure.

[0045] Figure 5 The diagram of the prefix tree data structure and the tree diagram data structure provided by the embodiment of the present disclosure is shown in the figure.

[0046] Figure 6 The block diagram of the structural information normalization device provided by the embodiment of the present disclosure is shown in the figure.

[0047] Figure 7 The block diagram of the electronic device provided by the embodiment of the present disclosure is shown in the figure. DETAILED DESCRIPTION

[0048] In order to make the technical solutions in the specific embodiments or related art of the present disclosure clearer, the accompanying drawings needed in the specific embodiments or related art description will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure, and all other embodiments obtained by those of ordinary skill in the art without creative labor should be within the protection scope of the present disclosure.

[0049] It should be noted that the terms "first", "second", and the like in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0050] In the present disclosure, the terms "upper", "lower", "left", "right", "front", "back", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings. These terms are mainly used to better describe the present disclosure and its embodiments, and are not intended to limit the indicated devices, elements or components to have a specific orientation, or to be constructed and operated in a specific orientation.

[0051] In addition, in addition to indicating the orientation or positional relationship, the above-mentioned partial terms can also be used to indicate other meanings, for example, the term "upper" can also be used to indicate a certain dependent relationship or connection relationship in some cases. For those skilled in the art, the specific meaning of these terms in the present disclosure can be understood according to the specific circumstances.

[0052] In addition, the terms "mount", "set", "provided with", "connected", "connected", "sleeved" should be broadly understood. For example, it can be fixedly connected, detachably connected, or integrally constructed; it can be mechanically connected, or electrically connected; it can be directly connected, or indirectly connected through an intermediate medium, or internal communication between two devices, elements or components. For those skilled in the art, the specific meaning of the above terms in the present disclosure can be understood according to the specific circumstances.

[0053] It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

[0054] At present, the artificial adjustment method is prone to error information and causes waste of human resources. Therefore, the related technology cannot efficiently and accurately standardize the structure information.

[0055] To address the aforementioned issues, the technical concept of this disclosure utilizes a structural information prefix tree and a tree diagram. By extracting a set of structural information tuples to be matched from the structural information, and matching and sorting them with nodes in the prefix tree and tree diagram, standardized structural information is obtained. This, in turn, updates the structural information knowledge base, ensuring that the structural information from various systems is standardized and consistent.

[0056] In practical applications, the implementing entity of this disclosure can be a structural information normalization device, which can be deployed in electronic devices, such as terminal devices or servers. Users can process structural information from different sources through electronic devices equipped with structural information normalization devices: normalization and consistency processing. The structural information can be organizational structure information, without specific limitations.

[0057] The following section uses structural information as an example to explain the method of structural information normalization in detail.

[0058] For example, see Figure 1 As shown, Figure 1 This is a flowchart illustrating the structural information normalization method provided in this embodiment. The structural information normalization method can be used to collect structural information from various business information systems (wherein, the format, data structure, and information completeness of structural information in different business information systems may differ; structural information refers to the organizational form and association method describing the internal components and interrelationships of a system, object, or data), and construct a structural information knowledge base based on the structural information from each business information system, and then perform normalization and consistency processing on the structural information knowledge base. The structural information processing (e.g., structural information normalization) can be applied to structural information related to any scenario, such as: security scenarios, company scenarios, school scenarios, etc. For security scenarios: structural information includes the structural information of various security units, etc. For company scenarios: structural information includes groups, second-level units, third-level units, fourth-level units, etc. For school scenarios: school headquarters, branch campuses, etc. No specific limitations are made on the scenarios and structural information here.

[0059] Specifically, structural information normalization methods may include the following steps (combined with...) Figure 2 As shown, Figure 2 (A schematic diagram of a scenario for the structural information normalization method provided in this embodiment of the disclosure):

[0060] S101: Construct a structural information knowledge base.

[0061] The structural information includes multiple levels (using a support scenario as an example, such as army, division, brigade, regiment, battalion, company, platoon, squad, etc.), as well as the full name, abbreviation, alias, level, unit code, parent unit code, postal code, area code, longitude, and latitude of each unit or department. The structural information knowledge base includes three types of structural information: currently used standardized structural information (i.e., the currently used standard structural information, which will not be elaborated further below), historical structural information, and structural information to be confirmed. Optionally, the structural information knowledge base also includes the credibility of the structural information. When the credibility of the structural information to be confirmed reaches a threshold, the structural information to be confirmed can be adjusted to historical or standard structural information.

[0062] (1.1) The standardized structural information currently used is the standardized output result of the structural information in this disclosure, and the corresponding data status (or status, which will not be repeated below) is status:S (referring to the standard status);

[0063] (1.2) Historical structural information that was abandoned due to structural optimization and adjustment such as reorganization and diversion is used to track and record the structural optimization and adjustment process. The corresponding data status is status:H (here referring to historical status).

[0064] (1.3) The data status of the unconfirmed structure information is status:U (which means pending confirmation).

[0065] The standard structural information (S) and historical structural information (H) mainly come from written documents; the structural information to be verified (U) comes from external input to the system (e.g., a structural information standardization system, which will not be elaborated further below). During system use, the reliability of the structural information to be verified is adjusted, and when the reliability reaches a certain condition, it is converted into standard structural information (S) or historical structural information (H).

[0066] S102: Construct the structural information prefix tree and tree diagram.

[0067] The standard structural information (S), historical structural information (H), and unconfirmed structural information (U) in the information knowledge base are used to construct the structural information prefix tree data structure and tree graph data structure. The status (status:S|H|U) is used to distinguish different types of structural data in the prefix tree node and the tree graph node.

[0068] (2.1) In the prefix tree data structure, the root node is an empty node, and the remaining nodes consist of key-value pairs. The key is the abbreviation of the unit or department (SHORT_NAME), and the value is a list of details (e.g., INFO_LIST, containing NAME (full name), ALIAS_NAME (alias or code), LEVEL (level), CODE (unit code), PARENT_CODE (parent unit code), ZIP_CODE (postal code), CITY_CODE (area code), LONGITUDE (longitude), LATITUDE (latitude), INTEGRATE_INFO (integrated information, which is a set of tokenized details; for example, integrated_info: [the BB Army, CC Division, DD Brigade, EE Regiment, FF Department]), STATUS (status)) (or set).

[0069] (2.2) In the tree diagram data structure, the root node is an empty node, and the remaining nodes are composed of hierarchical structures such as army, division, brigade, regiment, battalion, company, platoon, squad, etc. The leaf nodes contain basic units or departments such as squad, station, institute, center, department, section, office, etc.

[0070] (2.3) Each unit or department in the prefix tree node “value” list corresponds to a node in the tree diagram.

[0071] S103: Split and extract data containing structured information.

[0072] By utilizing keywords, data types of structural information, and data characteristics, structural information can be extracted from data containing structural information (such as text, which will not be elaborated further below, and there are no restrictions on the storage or presentation methods of data containing structural information).

[0073] (3.1) Keywords include army, division, brigade, regiment, battalion, company, team, platoon, squad, station, institute, center, department, section, office, etc.; data types cover string type, numerical type, encoding type, etc.; data characteristics include string length, numerical precision, encoding standard, etc.

[0074] (3.2) Construct regular expressions using keywords, data types, and data features. Employ multi-round recursive matching to split data containing structural information (e.g., text) into multiple dimensions, obtaining structural information fragments, and assigning corresponding labels to these fragments. For data from which valid information fragments cannot be extracted using regular expression matching, extract structural information through manual annotation and assign corresponding labels.

[0075] (3.3) Combine the structural information fragments according to the levels of army, division, brigade, regiment, battalion, company, team, platoon, squad, as well as station, institute, center, department, section, office, and office to obtain the set S of structural information tuples to be matched. orig Each piece of information containing structured data (or each piece of structured information or each fragment of structured information, which will not be elaborated further below) corresponds to a set of structured information tuples to be matched.

[0076] S104: Structural information matching and sorting.

[0077] The set S of structural information tuples to be matched orig The tuples in the structure information are matched with the prefix tree and tree diagram (nodes) to obtain the candidate structure information set S. prop Calculate the maximum matching degree between the structural information to be matched and the candidate structural information in the candidate structural information set.

[0078] The matching degree between structural information is calculated using structural information vectors. First, the structural information is transformed into structural information vectors. Then, the matching degree between structural information vectors is obtained by calculating the matching degree of each component (information component) of the structural information vector (e.g., the matching degree between each component in a tuple vector and each component in the corresponding candidate structural information vector). This is expressed by formula (1) as follows (i.e., the formula used to calculate the matching degree between structural information):

[0079]

[0080] in:

[0081] T i ∈S orig This refers to the i-th structural information to be matched;

[0082] P j ∈S prop This refers to the structure information of the j-th candidate;

[0083] VT i Let be the structural information vector corresponding to the i-th structural information to be matched;

[0084] VP j This is the structural information vector corresponding to the j-th candidate structural information;

[0085] VT i (k) is the k-th information component of the i-th structural information vector to be matched;

[0086] VP j (k) is the k-th information component of the j-th candidate structure information vector;

[0087] Match(VTi (k),VP j (k) represents the matching degree between the k-th information components. For string and encoded components, the matching degree is 1 when the two components are the same, and 0 otherwise. For numeric components, the matching degree is 1 when the difference between the two components is less than a given threshold, and 0 otherwise.

[0088] An example of each component in the structural information vector is as follows:

[0089] (Army, Division, Brigade, Regiment, Battalion, Company, Platoon, Squad, Unit Code, Postal Code, Area Code, Longitude, Latitude)

[0090] S105: Output standardized structural information or update the structural information database.

[0091] Based on the maximum matching degree obtained from S104, output the normalized structural information or update the structural information knowledge base.

[0092] Suppose the maximum matching result obtained in S104 is:

[0093] (T maxi ,P maxj ,m maxi,maxj ) = argmax{Match(T i ,P j ):T i ∈S orig ,P j ∈S prop}

[0094] (5.1) If the maximum matching degree m maxi,maxj If the value is greater than or equal to a given threshold (usually 2), then output P. maxj As normalized structural information, T is used simultaneously. maxi For P maxj The necessary structural information is supplemented by data containing structural information to expand the structural knowledge base.

[0095] Optionally, when candidate structure information P maxj The state is the historical state (i.e., status: H), which is the candidate structure information P. maxj When the information is historical structural information, P is obtained through association relationships. maxj The corresponding standard structure information currently in use, and P maxj Together, they serve as normalized structural information obtained from data containing structural information; when candidate structural information P maxj The status is pending confirmation (i.e., status: U), which is the candidate structure information P. maxjWhen structural information is pending confirmation, add P to the structural information knowledge base. maxj Credibility.

[0096] (5.2) If the maximum matching degree m maxi,maxj The set of candidate structural information S is equal to 1. prop There is only one candidate structural information P maxj Then the output is P. maxj As normalized structural information, T is used simultaneously. maxi For P maxj The necessary structural information is supplemented by data containing structural information to expand the structural knowledge base.

[0097] (5.3) If the maximum matching degree m maxi,maxj Equals 0 (i.e., no match for T was found in the structural information prefix tree) maxi If the matching structural information is obtained, then the set S of the structural information tuples to be matched is taken. orig The tuple with the most complete structural information to be matched is marked as pending confirmation (status:U) and added to the structural information knowledge base.

[0098] Exemplary embodiments:

[0099] 1. Raw data:

[0100] BB Army CC Division DD Brigade EE Regiment FF Department

[0101] 2. Obtained through multiple rounds of recursive regular expression matching:

[0102] {BB Army: Army, CC Division: Division, DD Brigade: Brigade, EE Regiment: Regiment, FF Department: Department}

[0103] 3. Obtain the set of tuples containing the structural information to be matched:

[0104] S orig ={(BB Army: Army, CC Division: Division, DD Brigade: Brigade, EE Regiment: Regiment, FF Department: Department)}

[0105] 4. Vector of structural information to be matched:

[0106] (BB Army: Army, CC Division: Division, DD Brigade: Brigade, EE Regiment: Regiment, FF Department: Department)

[0107] 5. The structural information vector to be matched is matched with the structural information prefix tree and tree graph nodes to obtain the maximum matching degree and normalized structural information:

[0108] BB Army CC Division DD Brigade EE Regiment FF Department

[0109] This disclosure utilizes a structured information knowledge base to construct a structured information prefix tree and tree diagram. It splits and extracts data containing structured information using keywords and regular expressions, then matches and sorts this data with nodes in the prefix tree and tree diagram to obtain standardized structured information or update the structured information knowledge base. This achieves the matching and standardization of structured information while recording the optimization and adjustment process, ensuring the standardization and consistency of the structured information.

[0110] It should be noted that the collection, storage, use, processing, transmission, provision and disclosure of data and other information involved in the technical solution disclosed herein all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0111] The technical solutions of this disclosure will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0112] Structural information refers to the systematic arrangement of departments, positions, and their interrelationships within an organization. It defines the organization's hierarchical relationships, division of responsibilities, reporting paths, and collaboration methods, serving as the fundamental framework for organizational management and operation. The following section uses structural information in a security scenario as an example to explain in detail the methods for standardizing structural information.

[0113] This disclosure provides a method for structural information normalization, such as... Figure 3 As shown, the method includes the following steps S301 to S305:

[0114] S301: Obtain the structural information to be normalized;

[0115] S302: Determine the set of tuples of structural information to be matched based on the structural information; one structural information corresponds to one tuple in the set of tuples of structural information to be matched.

[0116] S303: For each tuple in the set of tuples of structural information to be matched, match the tuple with the constructed prefix tree and tree diagram respectively to obtain the set of candidate structural information corresponding to the tuple;

[0117] S304: Calculate the maximum matching degree between the tuple and each candidate structural information in the candidate structural information set;

[0118] S305: Based on the target candidate structure information corresponding to the maximum matching degree, determine the target structure information corresponding to the structure information, wherein the target structure information is used to represent the normalized structure information.

[0119] The prefix tree and tree diagram can be constructed from all collected structural information or normalized structural information, without specific limitations. The structural information to be normalized can be at least one or at least one piece, which can be input from an external system or stored information; furthermore, the structural information to be normalized can be newly collected structural information, structural information to be confirmed, historical structural information, or currently used standard structural information, without specific limitations.

[0120] In this embodiment of the disclosure, structural information to be normalized is obtained, and based on this structural information, a set of structural information tuples to be matched is determined. A prefix tree and a tree diagram are constructed to match the structural information to be matched. By calculating the matching degree and sorting, normalized structural information is obtained, thereby achieving the purpose of normalizing structural information. This achieves efficient and accurate normalization processing, making structural information from different sources have normalization.

[0121] Optionally, structural information normalization methods include:

[0122] A structural information knowledge base is constructed, which includes structural information and corresponding states. The structural information includes at least one of the following: currently used standard structural information, historical structural information, and structural information to be confirmed. The state corresponding to the standard structural information is the standard state, the state corresponding to the historical structural information is the historical state, and the structural information to be confirmed is the state to be confirmed.

[0123] Based on the structural information and the corresponding state, construct the prefix tree and tree diagram corresponding to the structural information.

[0124] Based on the structural information, a set of structural information tuples to be matched is determined; one structural information corresponds to one tuple in the set of structural information tuples to be matched.

[0125] For each tuple in the set of tuples containing the structural information to be matched, the tuple is matched with the prefix tree and the tree diagram respectively to obtain the set of candidate structural information corresponding to the tuple, and the maximum matching degree between the tuple and each candidate structural information in the set of candidate structural information is calculated.

[0126] Based on the target candidate structure information corresponding to the maximum matching degree, the target structure information corresponding to the structure information is determined, and the target structure information is used to represent the normalized structure information.

[0127] Based on the target structural information, the structural information knowledge base is updated to standardize the structural information in the structural information knowledge base, and the association between historical structural information and standard structural information in the structural information knowledge base is recorded.

[0128] The structural information here can be organizational structure information, without specific limitations.

[0129] In this embodiment, a structural information knowledge base is constructed by collecting structural information. Based on the structural information to be standardized and its corresponding state in the structural information knowledge base, a prefix tree and tree diagram corresponding to the structural information are constructed to match the structural information to be matched. By calculating the matching degree and sorting, standardized structural information is obtained to update the structural information knowledge base, thereby outputting standardized structural information. The state corresponding to the structural information is also adjusted, and the relationship between historical structural information and standard structural information in the structural information knowledge base is recorded. This provides a basis for the adjustment process from historical structural information to standard structural information, achieving the goal of uniformly standardizing all structural information in the structural information knowledge base while recording the optimization and adjustment process of structural information. This achieves efficient standardization while tracking and recording the adjustment process of structural information, ensuring that the structural information from various systems has standardization and consistency.

[0130] Specifically, based on the structural information data collected from various business information systems, a structural information knowledge base is constructed by extracting structural information. Each piece of data containing structural information (or each or every piece of structural information in the constructed structural information knowledge base, or other structural data in the constructed structural information knowledge base besides standard structural data) can be treated as structural information to be standardized and subjected to standardization processing. The structural information in this knowledge base can include three types of data: currently used standardized structural information (i.e., currently used standard structural information), historical structural information, and structural information to be confirmed.

[0131] One or more pieces of structural information to be normalized correspond to a set of structural information to be matched or a tuple in a set of tuples containing structural information to be matched. For each tuple in the set of tuples containing structural information to be matched, matching and sorting operations are performed, and the normalized structural information corresponding to the target candidate structural information for each tuple or each principle is determined. Specifically, the following operations are performed on each tuple:

[0132] Calculate the matching degree between the current tuple and each candidate structure information in its corresponding candidate structure information set, and sort the matching degrees.

[0133] The result corresponding to the maximum matching degree is determined. The result corresponding to the maximum matching degree includes the current tuple or the structural information to be normalized corresponding to the current tuple, the maximum matching degree value, and the target candidate structural information in the set of candidate structural information corresponding to the current tuple. Here, the target candidate structural information refers to the candidate structural information for which the maximum matching degree is calculated.

[0134] Optionally, the construction of the structural information knowledge base includes:

[0135] Obtain structural information of each unit or part and corresponding structural optimization and adjustment log information; wherein, the structural information includes at least one of the following: full name, abbreviation, alias or code, level, unit code, parent unit code, postal code, area code, longitude, and latitude; the structural optimization and adjustment log information includes changes in old and new names and changes in affiliation; the structural optimization and adjustment log information is used to query historical structural information and determine the status of the structural information;

[0136] A structural information knowledge base is generated based on the structural information of each unit or part and the corresponding structural optimization and adjustment log information; wherein, the historical structural information and standard structural information in the structural information knowledge base are linked through foreign keys.

[0137] In this embodiment of the disclosure, combined with Figure 4 As shown, Figure 4 This diagram illustrates the Entity-Relationship (ER) structure of the structured information knowledge base. The knowledge base contains hierarchical information at levels such as army, division, brigade, regiment, battalion, company, platoon, and squad. Within the knowledge base (referring to the structured information knowledge base, which will not be elaborated further below), each unit or department can contain at least one of the following structural information: full name, short name, alias or code, level, unit code, parent unit code, zip code, city code, longitude, and latitude. The full name includes the complete name of the unit, such as the BB Army, CC Division, DD Brigade, EE Regiment, FF Department; the short name is the name of the unit or department agreed upon within the unit, such as the Political Work Department or the Meteorological Station. The unit and department information will be gradually improved during system use.

[0138] The knowledge base contains three types of structural information: the standard structural information currently in use (S), the historical structural information (H) that has been abandoned due to reorganization and diversion, and the unconfirmed structural information (U) whose nature cannot be determined at the moment.

[0139] To enable querying historical structural information, the knowledge base includes structural optimization and adjustment logs, such as changes in names and ownership relationships. To track and record the structural adjustment process, historical and standard structural information are linked via foreign keys.

[0140] Optionally, constructing the prefix tree and tree diagram corresponding to the structural information based on the structural information and the corresponding state includes:

[0141] Based on the structural information and the corresponding state, key-value pairs are determined; wherein, the key in the key-value pair is an abbreviation of a unit or department, and the value in the key-value pair is a detailed list or set of information of the unit or department with the same abbreviation;

[0142] Based on the key-value pairs, the prefix tree is constructed, and the corresponding state is recorded in the prefix tree;

[0143] Generate a tree diagram based on the structural information;

[0144] The fusion information in the detailed information is a word segmentation array, which corresponds to the nodes in the tree diagram.

[0145] In this embodiment of the disclosure, a prefix tree and a tree diagram of structural information are constructed using at least one of the standard structural information (S), historical structural information (H), and structural information to be confirmed (U) in the information knowledge base. In the prefix tree nodes and tree diagram nodes (or nodes in the tree diagram), a status is used to distinguish different types of structural data (or structural information, which will not be elaborated further below). Initially, when constructing the knowledge base, one unit or department corresponds to at least one node, which is a one-to-many relationship. The goal is for one unit or department to correspond to one node, achieving consistency in structural information. However, one node may correspond to multiple units.

[0146] Specifically, the prefix tree node consists of key-value pairs. The "key" is the abbreviation of the unit or department, and the "value" is a list (or set) of details for units or departments with the same abbreviation. For ease of data comparison and verification, the integrated information (integrate_info) within the details (here referring to the detailed information) is a word segmentation array, corresponding to the nodes in the tree diagram. See [link to relevant documentation]. Figure 5 As shown, Figure 5 The diagram illustrates the prefix tree data structure and the tree graph data structure, where Figure 5 The left side shows a prefix tree data structure (containing a root node and other nodes consisting of key-value pairs; the other nodes include: Operations / key:FF Department / key:Weather Station; among which, the Operations node contains key:A Operations Research Institute / key:B Operations Support Team); Figure 5 The right side shows a tree-graph data structure (Brigade BB <- Division CC <- Brigade DD <- Regiment EE <- Department FF). For example, a prefix tree (or prefix tree nodes).

[0147]

[0148] Corresponding to the nodes in the tree diagram:

[0149] BB Army <- CC Division <- DD Brigade <- EE Regiment <- FF Department

[0150] Optionally, determining the set of tuples of structural information to be matched based on the structural information includes:

[0151] Based on the keywords, the data type of the structural information, and the data characteristics, a multi-round recursive regular expression matching method is used to extract the information at each level and the attribute information from the structural information, and to mark the information at each level and the attribute information with corresponding labels. The data type includes: string type, numeric type, and encoding type. The data characteristics include: string length, numeric precision, and encoding standard. The attribute information includes at least one of the following: unit code, postal code, area code, longitude, and latitude.

[0152] The extracted information from each level is combined according to the level, and non-compliant combinations are eliminated to obtain a set of tuples of structural information to be matched corresponding to the structural information.

[0153] In this embodiment, regular expressions are constructed based on keywords such as army, division, brigade, regiment, battalion, company, team, platoon, squad, station, institute, center, department, section, office, and other data types and characteristics, including unit code, postal code, area code, longitude, and latitude. The keywords, data types, data characteristics, and regular expressions are stored in a configuration file, which can be expanded and adjusted as needed. This configuration file is stored in a Redis cache and persisted on the application system server.

[0154] To extract structural information to the maximum extent and with the highest accuracy, a multi-round recursive regular expression matching method is used to split the data containing structural information into multiple dimensions, extracting abbreviations of information at each level, as well as information such as unit code, postal code, area code, longitude, and latitude (which can refer to attribute information), and assigning corresponding tags (e.g., army, division, brigade, regiment, department, etc.). For example, "the BB army CC division DD brigade EE regiment FF department" is obtained through multi-round recursive regular expression matching:

[0155] {BB Army: Army, CC Division: Division, DD Brigade: Brigade, EE Regiment: Regiment, FF Department: Department}

[0156] The extracted information is combined according to the hierarchy of "army, division, brigade, regiment, battalion, company, platoon, squad", etc. After removing unreasonable combinations, the set S of tuples of structural information to be matched is obtained. orig For example, the set of tuples (referring to the set of tuples containing the structural information to be matched) obtained from the combination of “{BJ:Army, CC:Division, DD:Brigade, EE:Regiment, FF:Department}” is as follows:

[0157] {(BB Army: Army, CC Division: Division, DD Brigade: Brigade, EE Regiment: Regiment, FF Department: Department)}

[0158] Example of eliminating unreasonable combinations:

[0159] Class YY Company, XX Division, System Application Department

[0160] For data containing structural information that cannot be extracted using regular expression matching, the structural information is extracted manually and assigned corresponding labels.

[0161] Optionally, the step of matching the tuple with the prefix tree and the tree graph respectively to obtain the candidate structure information set corresponding to the tuple includes:

[0162] The tuple is searched in the prefix tree to obtain the prefix tree matching result, which includes all the prefix paths to be matched and the matched nodes;

[0163] Based on the prefix tree matching result, the node corresponding to the tree diagram is located, and the matching status of the tuple with the node and its child nodes in the tree diagram is checked to obtain the candidate structure information set corresponding to the tuple.

[0164] In this context, a structural information to be normalized (e.g., data containing structural information to be normalized) corresponds to a structural information tuple to be matched or a set of structural information tuples to be matched (which may include a single tuple). The structural information to be normalized can be each structural information in the constructed structural information knowledge base, or it can be at least one of the following: standard structural information, historical structural information, and structural information to be confirmed (e.g., other structural information besides standard structural information).

[0165] The following example uses each structural information in the constructed structural information knowledge base (not repeated below). Based on each data containing structural information or each structural information, we can determine each corresponding structural information tuple to be matched, thereby forming a set of structural information tuples to be matched. Then, for each tuple to be matched (i.e., structural information tuples or tuples to be matched, not repeated below), we can generate a set of candidate matching items. For example, a tuple corresponds to at least one candidate structural information.

[0166] In this embodiment of the disclosure, taking a tuple as an example, the information at each level in the tuple of structural information to be matched is matched with the nodes of the structural information prefix tree and the tree diagram (or the tree diagram, which will not be described in detail below), and the details of the matching results are stored in the candidate structural information set.

[0167] Specifically, the matching process includes:

[0168] Step a1. Tuple preprocessing: Standardize each tuple of structural information to be matched. This may include word segmentation, noise reduction, normalization, etc.

[0169] Step a2. Prefix tree matching: Search the prefix tree for each tuple to find all possible matching prefix paths; record the matched nodes and the degree of matching.

[0170] Step a3. Tree Graph Node Matching: Based on the prefix tree matching results, locate the corresponding node in the tree graph. Check the matching between tuples and nodes and their child nodes, considering relationships such as sibling nodes and parent-child nodes.

[0171] Step a4. Candidate Set Generation: Generate a set of candidate matches for each tuple to be matched. Each candidate contains a matching node and a matching score, for example: retain the top-K most matching candidates.

[0172] The matching algorithm can be implemented using one or a combination of the following methods:

[0173] Path matching degree: The degree to which the tuple path matches the tree path;

[0174] Node attribute matching: similarity of attributes such as name, type, and level;

[0175] Structural similarity: similarity in positional relationships within a tree structure;

[0176] Fuzzy matching: handles cases where names are not exactly the same but semantically similar.

[0177] The final output is a "candidate structure information set", in which each tuple to be matched corresponds to a set of possible matching results, which can be used for subsequent precise matching or manual verification.

[0178] Optionally, calculating the maximum matching degree between the tuple and each candidate structural information in the candidate structural information set includes:

[0179] The tuple and each candidate structural information in the candidate structural information set are respectively converted into structural information vectors;

[0180] The matching degree between the tuple and each candidate structural information in the candidate structural information set is obtained by calculating the matching degree of each component in the structural information vector corresponding to each candidate structural information in the candidate structural information set.

[0181] The matching degree between the tuple and each candidate structure information in the candidate structure information set is sorted to obtain the maximum matching degree.

[0182] In this embodiment of the disclosure, the structural information T to be matched is calculated through the following steps. i ∈S orig (Or refers to the i-th tuple in the set of structure information tuples to be matched, which will not be elaborated further below) and candidate structure information P j ∈S prop Match degree between them:

[0183] Step b1: Obtain the structural information T to be matched. i ∈S orig and candidate structure information P j ∈S prop They are respectively converted into the structural information vector VT to be matched. i and candidate structure information vector VP j An example of each component in the structural information vector is as follows:

[0184] (Army, Division, Brigade, Regiment, Battalion, Company, Platoon, Squad, Unit Code, Postal Code, Area Code, Longitude, Latitude)

[0185] Step b2: Calculate the structural information vector VT to be matched. i and candidate structure information vector VP j The matching degree m between them ij := Match(VT i ,VP j (Combined with the above formula (1)), where the matching degree is the sum of the matching degrees of each component in the structural information vector. For string type components such as army, division, brigade, regiment, battalion, company, platoon, squad, unit code, postal code, area code, etc., the matching degree is 1 when two components are the same, otherwise the matching degree is 0; for numerical type components such as longitude and latitude, the matching degree is 1 when the difference between two components is less than a given threshold, otherwise the matching degree is 0.

[0186] Step b3: Sort the matching degree between the structure information to be matched and the candidate structure information, and output (T) i ,P j ,m ij ,k ij ), where T i ∈S orig For the i-th structural information to be matched, P j ∈S prop For the j-th candidate structure information, m ij For the structural information T to be matched i and candidate structure information P j The degree of matching between them, k ij Sort the results by matching degree.

[0187] Optionally, determining the target structure information corresponding to the structure information based on the target candidate structure information corresponding to the maximum matching degree includes:

[0188] If the maximum matching degree is greater than or equal to a preset threshold, then based on the state corresponding to the target candidate structure information, the target structure information corresponding to the structure information is determined, and based on the structure information to be matched corresponding to the tuple (here referring to the structure information to be normalized), the target candidate structure information (or the target structure information) is filled with necessary information; wherein, the state includes standard state, historical state and pending confirmation state;

[0189] If the maximum matching degree is equal to 1 and the candidate structure information set contains a candidate structure information, then the target candidate structure information is used as the target structure information, and the target candidate structure information (here referring to the target structure information) is filled with necessary information based on the structure information to be matched corresponding to the tuple.

[0190] If the maximum matching degree is equal to 0, then the most complete structural information corresponding to the tuple is obtained, and the most complete structural information is marked as pending confirmation.

[0191] Optionally, determining the target structure information corresponding to the structure information based on the target candidate structure information corresponding to the maximum matching degree includes:

[0192] If the maximum matching degree is greater than or equal to a preset threshold, then based on the state recorded in the structure information knowledge base by the target candidate structure information, the target structure information corresponding to the structure information is determined, and based on the structure information to be matched corresponding to the tuple, the target candidate structure information is filled with necessary information to expand the structure information knowledge base; wherein, the state includes standard state, historical state and pending confirmation state;

[0193] If the maximum matching degree is equal to 1 and the candidate structure information set contains a candidate structure information, then the target candidate structure information is used as the target structure information, and based on the structure information to be matched corresponding to the tuple, the target candidate structure information is filled with necessary information to expand the structure information knowledge base;

[0194] If the maximum matching degree is equal to 0, then the most complete structural information corresponding to the tuple is obtained, and the most complete structural information is marked as pending confirmation, in order to update the structural information knowledge base.

[0195] Optionally, determining the target structure information corresponding to the structure information based on the state corresponding to the target candidate structure information includes:

[0196] If the state corresponding to the target candidate structure information is a historical state (i.e., the target candidate structure information is historical structure information), the currently used standard structure information corresponding to the target candidate structure information is obtained through the stored association relationship, and the currently used standard structure information corresponding to the target candidate structure information and the target candidate structure information are used together as the target structure information. At the same time, the credibility and state corresponding to the target candidate structure information (or the unmatched structure information corresponding to the tuple or the current unnormalized structure information corresponding to the tuple, which will not be elaborated below) are adjusted.

[0197] If the state corresponding to the target candidate structure information is a standard state, the target candidate structure information shall be used as the target structure information;

[0198] If the target candidate structure information is in a pending confirmation state, the credibility of the target candidate structure information is increased. When the credibility is greater than or equal to the credibility threshold, the status of the target candidate structure information is adjusted to a historical state or a standard state.

[0199] Optionally, determining the target structure information corresponding to the structure information based on the state recorded in the structure information knowledge base according to the target candidate structure information includes:

[0200] When the target candidate structure information is recorded as a historical state in the structure information knowledge base (i.e., the target candidate structure information is historical structure information), the standard structure information currently used corresponding to the target candidate structure information is obtained through the association relationship. The standard structure information currently used corresponding to the target candidate structure information and the target candidate structure information are used together as the target structure information to adjust the structure information to be matched corresponding to the maximum matching degree to the standard structure information, and at the same time adjust the credibility or state corresponding to the structure information to be matched and / or the target candidate structure information.

[0201] When the target candidate structure information is recorded as a standard state in the structure information knowledge base, the target candidate structure information is used as the target structure information;

[0202] When the status of candidate structure information is pending confirmation, the credibility of the candidate structure information in the structure information knowledge base is increased.

[0203] The structural information knowledge base is updated using the target structural information.

[0204] In this embodiment of the disclosure, the result with the highest matching degree (T) is obtained. maxi ,P maxj ,m maxi,maxjThe result corresponding to the maximum matching degree includes the structure information to be matched, the target candidate structure information, and the maximum matching degree.

[0205] Specifically, if the maximum matching degree m maxi,maxj Greater than or equal to a given threshold (usually 2, representing T) maxi With P maxj If at least two data items are identical, then output P. maxj As normalized structural information obtained from data containing structural information, and simultaneously, using the structural information T to be matched. maxi For candidate structural information P maxj This involves filling in the necessary information to expand the structural knowledge base. Specifically, when candidate structural information P... maxj When the status is historical structural information (i.e., status: H), then P is obtained through the association relationship. maxj The corresponding standard structure information currently in use, and P maxj Together, they serve as normalized structural information obtained from data containing structural information; when candidate structural information P maxj When the status is pending confirmation (i.e., status: U), then add P to the structure information knowledge base. maxj Credibility.

[0206] If the maximum matching degree is m maxi,maxj Equal to 1 (i.e., T) maxi With P maxj (Only one data item is the same), and the candidate structure information set S prop There is only one candidate structural information P maxj Then the output is P. maxj As normalized structural information obtained from data containing structural information, T is used simultaneously. maxi For P maxj The structural information in the knowledge base is supplemented as necessary, that is, the knowledge base is supplemented with data containing structural information.

[0207] If the maximum matching degree is m maxi,maxj Equals 0 (i.e., no match for T was found in the structural information prefix tree) maxi If the matching structural information is obtained, then the set S of the structural information tuples to be matched is taken. orig The tuple with the most complete structure information to be matched is marked as pending confirmation (status:U) and added to the structure information knowledge base.

[0208] As can be seen from the above description, this disclosure achieves the following technical effects: it constructs prefix trees and tree graph data structures using structural information, uses prefix trees and tree graph data structures to achieve matching and standardization of structural information, and records the optimization and adjustment process of structural information to ensure the standardization and consistency of structural information.

[0209] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0210] This disclosure also provides a structured information standardization system for implementing the above-described method embodiments. It includes three main modules: a data splitting and extraction module, an information matching and sorting module, and a knowledge base updating module.

[0211] The data splitting and extraction module is used to determine the set of tuples of structural information to be matched based on the structural information to be normalized; wherein one or one piece of structural information to be normalized corresponds to one tuple in the set of tuples of structural information to be matched.

[0212] The information matching and sorting module is used to match each tuple in the set of structural information to be matched with the prefix tree and the tree diagram respectively, to obtain the set of candidate structural information corresponding to the tuple, and to calculate the matching degree between the tuple and each candidate structural information in the set of candidate structural information. By sorting the matching degrees, the maximum matching degree between the tuple and each candidate structural information in the set of candidate structural information is determined. Based on the target candidate structural information corresponding to the maximum matching degree, the target structural information corresponding to the tuple is determined; the target structural information is used to represent normalized structural information.

[0213] The knowledge base update module is used to update the structure information knowledge base according to the target structure information, so as to standardize the structure information in the structure information knowledge base and record the association between historical structure information and standard structure information in the structure information knowledge base.

[0214] Specifically, the data splitting and extraction module is mainly used to split and extract organizational information from structured data (text), including information at various levels such as army, division, brigade, regiment, battalion, company, platoon, and squad, as well as unit codes, postal codes, area codes, longitude, latitude, etc. It then combines the structured information hierarchically to obtain the structured information to be matched (corresponding to a tuple). This module maintains the data types and characteristics of keywords and structured information, as well as a list of regular expressions, which can be expanded and adjusted as needed.

[0215] Information matching and sorting module: mainly used to match the structural information to be matched with the structural information in the address prefix tree and tree diagram, calculate the matching degree and sort it to obtain the normalized structural information.

[0216] The knowledge base update module is mainly used to maintain standard structure information, historical structure information, and structure information to be confirmed, as well as to build and update the address prefix tree and tree diagram based on the structure information knowledge base information.

[0217] This disclosure utilizes structural information to construct prefix trees and tree graph data structures, and uses these data structures to achieve matching and standardization of structural information. Simultaneously, it records the optimization and adjustment process of structural information to ensure the standardization and consistency of structural information.

[0218] This disclosure also provides a structural information normalization apparatus for implementing the above method embodiments, such as... Figure 6 As shown, the structural information normalization device 60 includes:

[0219] Acquisition unit 601 is used to acquire the structural information to be normalized;

[0220] The first processing unit 602 is used to determine a set of tuples of structural information to be matched based on the structural information; one structural information corresponds to one tuple in the set of tuples of structural information to be matched.

[0221] The matching unit 603 is used to match each tuple in the set of tuples of structural information to be matched with the constructed prefix tree and tree diagram respectively, so as to obtain the set of candidate structural information corresponding to the tuple;

[0222] The second processing unit 604 is used to calculate the maximum matching degree between the tuple and each candidate structure information in the candidate structure information set;

[0223] The third processing unit 605 is used to determine the target structure information corresponding to the structure information based on the target candidate structure information corresponding to the maximum matching degree, wherein the target structure information is used to represent the normalized structure information.

[0224] Optionally, when the first processing unit 602 determines the set of tuples of structural information to be matched based on the structural information, it specifically includes:

[0225] Based on the keywords, the data type of the structural information, and the data characteristics, a multi-round recursive regular expression matching method is used to extract the information at each level and the attribute information from the structural information, and to mark the information at each level and the attribute information with corresponding labels. The data type includes: string type, numeric type, and encoding type. The data characteristics include: string length, numeric precision, and encoding standard. The attribute information includes at least one of the following: unit code, postal code, area code, longitude, and latitude.

[0226] The extracted information from each level is combined according to the level, and non-compliant combinations are eliminated to obtain a set of tuples of structural information to be matched corresponding to the structural information.

[0227] Optionally, the matching unit 603, when performing the matching of the tuple with the constructed prefix tree and tree graph respectively to obtain the candidate structure information set corresponding to the tuple, specifically includes:

[0228] The tuple is searched in the prefix tree to obtain the prefix tree matching result, which includes all the prefix paths to be matched and the matched nodes;

[0229] Based on the prefix tree matching result, the node corresponding to the tree diagram is located, and the matching status of the tuple with the node and its child nodes in the tree diagram is checked to obtain the candidate structure information set corresponding to the tuple.

[0230] Optionally, the second processing unit 604, when performing the calculation of the maximum matching degree between the tuple and each candidate structure information in the candidate structure information set, specifically includes:

[0231] The tuple and each candidate structural information in the candidate structural information set are respectively converted into structural information vectors;

[0232] The matching degree between the tuple and each candidate structural information in the candidate structural information set is obtained by calculating the matching degree of each component in the structural information vector corresponding to each candidate structural information in the candidate structural information set.

[0233] The matching degree between the tuple and each candidate structure information in the candidate structure information set is sorted to obtain the maximum matching degree.

[0234] Optionally, when the third processing unit 605 determines the target structure information corresponding to the structure information based on the target candidate structure information corresponding to the maximum matching degree, it specifically includes:

[0235] If the maximum matching degree is greater than or equal to a preset threshold, then the target structure information corresponding to the structure information is determined according to the state corresponding to the target candidate structure information, and the target candidate structure information is filled with necessary information based on the structure information to be matched corresponding to the tuple; wherein, the state includes standard state, historical state and pending confirmation state;

[0236] If the maximum matching degree is equal to 1 and the candidate structure information set contains a candidate structure information, then the target candidate structure information is used as the target structure information, and the target candidate structure information is filled with necessary information based on the structure information to be matched corresponding to the tuple;

[0237] If the maximum matching degree is equal to 0, then the most complete structural information corresponding to the tuple is obtained, and the most complete structural information is marked as pending confirmation.

[0238] Optionally, when the third processing unit 605 determines the target structure information corresponding to the structure information based on the state corresponding to the target candidate structure information, it specifically includes:

[0239] If the state corresponding to the target candidate structure information is a historical state, the currently used standard structure information corresponding to the target candidate structure information is obtained through the stored association relationship, and the currently used standard structure information corresponding to the target candidate structure information and the target candidate structure information are used together as the target structure information, while adjusting the credibility and state corresponding to the target candidate structure information.

[0240] If the state corresponding to the target candidate structure information is a standard state, the target candidate structure information shall be used as the target structure information;

[0241] If the target candidate structure information is in a pending confirmation state, the credibility of the target candidate structure information is increased. When the credibility is greater than or equal to the credibility threshold, the status of the target candidate structure information is adjusted to a historical state or a standard state.

[0242] Optionally, this disclosure also provides a structure information normalization apparatus for implementing the above method embodiments. The structure information normalization apparatus includes:

[0243] The first processing unit is used to construct a structural information knowledge base, which includes structural information and corresponding states. The structural information includes at least one of the following: currently used standard structural information, historical structural information, and structural information to be confirmed. The state corresponding to the standard structural information is a standard state, the state corresponding to the historical structural information is a historical state, and the structural information to be confirmed is a state to be confirmed.

[0244] The second processing unit is used to construct a prefix tree and a tree diagram corresponding to the structural information based on the structural information and the corresponding state.

[0245] The third processing unit is used to determine a set of tuples of structural information to be matched based on the structural information; one structural information corresponds to one tuple in the set of tuples of structural information to be matched.

[0246] The fourth processing unit is used to match each tuple in the set of tuples of structural information to be matched with the prefix tree and the tree diagram respectively, to obtain the set of candidate structural information corresponding to the tuple, and to calculate the maximum matching degree between the tuple and each candidate structural information in the set of candidate structural information.

[0247] The fifth processing unit is used to determine the target structure information corresponding to the structure information based on the target candidate structure information corresponding to the maximum matching degree, wherein the target structure information is used to represent the normalized structure information;

[0248] The sixth processing unit is used to update the structure information knowledge base according to the target structure information, so as to standardize the structure information in the structure information knowledge base and record the association between historical structure information and standard structure information in the structure information knowledge base.

[0249] Optionally, the third processing unit, when performing the step of determining the set of tuples of structural information to be matched based on the structural information, specifically includes:

[0250] Based on the keywords, the data type of the structural information, and the data characteristics, a multi-round recursive regular expression matching method is used to extract the information at each level and the attribute information from the structural information, and to mark the information at each level and the attribute information with corresponding labels. The data type includes: string type, numeric type, and encoding type. The data characteristics include: string length, numeric precision, and encoding standard. The attribute information includes at least one of the following: unit code, postal code, area code, longitude, and latitude.

[0251] The extracted information from each level is combined according to the level, and non-compliant combinations are eliminated to obtain a set of tuples of structural information to be matched corresponding to the structural information.

[0252] Optionally, the fourth processing unit, when performing the matching of the tuple with the prefix tree and the tree diagram respectively to obtain the candidate structure information set corresponding to the tuple, specifically includes:

[0253] The tuple is searched in the prefix tree to obtain the prefix tree matching result, which includes all the prefix paths to be matched and the matched nodes;

[0254] Based on the prefix tree matching result, the node corresponding to the tree diagram is located, and the matching status of the tuple with the node and its child nodes in the tree diagram is checked to obtain the candidate structure information set corresponding to the tuple.

[0255] Optionally, the fourth processing unit, when calculating the maximum matching degree between the tuple and each candidate structural information in the candidate structural information set, specifically includes:

[0256] The tuple and each candidate structural information in the candidate structural information set are respectively converted into structural information vectors;

[0257] The matching degree between the tuple and each candidate structural information in the candidate structural information set is obtained by calculating the matching degree of each component in the structural information vector corresponding to each candidate structural information in the candidate structural information set.

[0258] The matching degree between the tuple and each candidate structure information in the candidate structure information set is sorted to obtain the maximum matching degree.

[0259] Optionally, when the fifth processing unit performs the operation of determining the target structure information corresponding to the structure information based on the target candidate structure information corresponding to the maximum matching degree, it specifically includes:

[0260] If the maximum matching degree is greater than or equal to a preset threshold, then based on the state recorded in the structure information knowledge base by the target candidate structure information, the target structure information corresponding to the structure information is determined, and based on the structure information to be matched corresponding to the tuple, the target candidate structure information is filled with necessary information to expand the structure information knowledge base; wherein, the state includes standard state, historical state and pending confirmation state;

[0261] If the maximum matching degree is equal to 1 and the candidate structure information set contains a candidate structure information, then the target candidate structure information is used as the target structure information, and based on the structure information to be matched corresponding to the tuple, the target candidate structure information is filled with necessary information to expand the structure information knowledge base;

[0262] If the maximum matching degree is equal to 0, then the most complete structural information corresponding to the tuple is obtained, and the most complete structural information is marked as pending confirmation, in order to update the structural information knowledge base.

[0263] Optionally, the second processing unit, when constructing the prefix tree and tree diagram corresponding to the structure information based on the structure information and the corresponding state, specifically includes:

[0264] Based on the structural information and the corresponding state, key-value pairs are determined; wherein, the key in the key-value pair is an abbreviation of a unit or department, and the value in the key-value pair is a detailed list or set of information of the unit or department with the same abbreviation;

[0265] Based on the key-value pairs, the prefix tree is constructed, and the corresponding state is recorded in the prefix tree;

[0266] Generate a tree diagram based on the structural information;

[0267] The fusion information in the detailed information is a word segmentation array, which corresponds to the nodes in the tree diagram.

[0268] Optionally, the first processing unit, when performing the construction of the structural information knowledge base, specifically includes:

[0269] Obtain structural information of each unit or part and corresponding structural optimization and adjustment log information; wherein, the structural information includes at least one of the following: full name, abbreviation, alias or code, level, unit code, parent unit code, postal code, area code, longitude, and latitude; the structural optimization and adjustment log information includes changes in old and new names and changes in affiliation; the structural optimization and adjustment log information is used to query historical structural information and determine the status of the structural information;

[0270] A structural information knowledge base is generated based on the structural information of each unit or part and the corresponding structural optimization and adjustment log information; wherein, the historical structural information and standard structural information in the structural information knowledge base are linked through foreign keys.

[0271] The specific methods of execution of each unit in the above device embodiments have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0272] This disclosure also provides an electronic device, such as... Figure 7 As shown, the electronic device includes one or more processors 71 and a memory 72. Figure 7 Take a processor 71 as an example.

[0273] The controller may also include an input device 73 and an output device 74.

[0274] The processor 71, memory 72, input device 73, and output device 74 can be connected via a bus or other means. Figure 7 Taking the example of a connection between China and Israel via a bus.

[0275] Processor 71 can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above types of chips. The general-purpose processor can be a microprocessor or any conventional processor.

[0276] The memory 72, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the control method in this embodiment. The processor 71 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions, and modules stored in the memory 72, thereby implementing the structure information normalization method of the above method embodiment.

[0277] The memory 72 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the use of the processing device operated by the server. Furthermore, the memory 72 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 72 may optionally include memory remotely located relative to the processor 71, and these remote memories can be connected to a network connection device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0278] Input device 73 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the server's processing device. Output device 74 may include display devices such as a display screen.

[0279] One or more modules are stored in memory 72 and, when executed by one or more processors 71, perform the methods described above.

[0280] This disclosure also provides a computer-readable storage medium storing computer instructions for causing a computer to execute the structure information normalization method described above.

[0281] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the structure information normalization method described above.

[0282] Those skilled in the art will understand that all or part of the processes in the above method embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes as described in the above method embodiments. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory (FM), hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium can also include combinations of the above types of memory.

[0283] Although embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for structural information normalization, characterized in that, include: Using keywords, data types, and data features of structural information, structural information is extracted from data containing structural information to obtain structural information to be standardized. This includes: constructing regular expressions using keywords, data types, and data features; using a multi-round recursive matching method to perform multi-dimensional splitting of the data containing structural information to obtain structural information fragments; and assigning corresponding labels to the structural information fragments to obtain the structural information. Based on the structural information, a set of structural information tuples to be matched is determined; one structural information corresponds to one tuple in the set of structural information tuples to be matched. For each tuple in the set of tuples containing the structural information to be matched, the tuples are matched with the constructed prefix tree and tree graph respectively to obtain the candidate structural information set corresponding to the tuples. This includes: searching the tuples in the prefix tree to obtain the prefix tree matching result, which includes all prefix paths to be matched and the matched nodes; locating the corresponding node in the tree graph based on the prefix tree matching result, and checking the matching status of the tuples with the corresponding nodes and their child nodes in the tree graph to obtain the candidate structural information set corresponding to the tuples. In the prefix tree data structure, the root node is an empty node, and the remaining nodes are composed of key-value pairs. In the tree graph data structure, the root node is an empty node, and the remaining nodes are composed of a hierarchical structure. The values ​​of the prefix tree nodes correspond to the nodes in the tree graph. Calculate the maximum matching degree between the tuple and each candidate structural information in the candidate structural information set, wherein the maximum matching degree is calculated using structural information vectors; Based on the target candidate structure information corresponding to the maximum matching degree, the target structure information corresponding to the structure information is determined, and the target structure information is used to represent the normalized structure information.

2. The method according to claim 1, characterized in that, The step of determining the set of tuples of structural information to be matched based on the structural information includes: Based on the keywords, the data type of the structural information, and the data characteristics, a multi-round recursive regular expression matching method is used to extract the information at each level and the attribute information from the structural information, and to mark the information at each level and the attribute information with corresponding labels. The data type includes: string type, numeric type, and encoding type. The data characteristics include: string length, numeric precision, and encoding standard. The attribute information includes at least one of the following: unit code, postal code, area code, longitude, and latitude. The extracted information from each level is combined according to the level, and non-compliant combinations are eliminated to obtain a set of tuples of structural information to be matched corresponding to the structural information.

3. The method according to claim 1, characterized in that, The calculation of the maximum matching degree between the tuple and each candidate structural information in the candidate structural information set includes: The tuple and each candidate structural information in the candidate structural information set are respectively converted into structural information vectors; The matching degree between the tuple and each candidate structural information in the candidate structural information set is obtained by calculating the matching degree of each component in the structural information vector corresponding to each candidate structural information in the candidate structural information set. The matching degree between the tuple and each candidate structure information in the candidate structure information set is sorted to obtain the maximum matching degree.

4. The method according to any one of claims 1-3, characterized in that, The step of determining the target structure information corresponding to the structure information based on the target candidate structure information corresponding to the maximum matching degree includes: If the maximum matching degree is greater than or equal to a preset threshold, then the target structure information corresponding to the structure information is determined according to the state corresponding to the target candidate structure information, and the target candidate structure information is filled with necessary information based on the structure information to be matched corresponding to the tuple; wherein, the state includes standard state, historical state and pending confirmation state; If the maximum matching degree is equal to 1 and the candidate structure information set contains a candidate structure information, then the target candidate structure information is used as the target structure information, and the target candidate structure information is filled with necessary information based on the structure information to be matched corresponding to the tuple; If the maximum matching degree is equal to 0, then the most complete structural information corresponding to the tuple is obtained, and the most complete structural information is marked as pending confirmation.

5. The method according to claim 4, characterized in that, The step of determining the target structure information corresponding to the structure information based on the state corresponding to the target candidate structure information includes: If the state corresponding to the target candidate structure information is a historical state, the currently used standard structure information corresponding to the target candidate structure information is obtained through the stored association relationship, and the currently used standard structure information corresponding to the target candidate structure information and the target candidate structure information are used together as the target structure information, while adjusting the credibility and state corresponding to the target candidate structure information. If the state corresponding to the target candidate structure information is a standard state, the target candidate structure information shall be used as the target structure information; If the target candidate structure information is in a pending confirmation state, the credibility of the target candidate structure information is increased. When the credibility is greater than or equal to the credibility threshold, the status of the target candidate structure information is adjusted to a historical state or a standard state.

6. A structural information standardization device, characterized in that, include: The acquisition unit is used to acquire the structural information to be normalized from the data containing structural information by using keywords, data types and data features of structural information. This includes: constructing a regular expression using keywords, data types and data features; performing multi-dimensional splitting of the data containing structural information by using a multi-round recursive matching method to obtain structural information fragments; and assigning corresponding labels to the structural information fragments to obtain the structural information. The first processing unit is used to determine a set of tuples of structural information to be matched based on the structural information; one structural information corresponds to one tuple in the set of tuples of structural information to be matched. A matching unit is used to match each tuple in the set of tuples containing the structural information to be matched with a constructed prefix tree and a tree graph, respectively, to obtain a set of candidate structural information corresponding to the tuple. This includes: searching the tuple in the prefix tree to obtain a prefix tree matching result, which includes all prefix paths to be matched and the matched nodes; locating the corresponding node in the tree graph based on the prefix tree matching result, and checking the matching status of the tuple with the corresponding node and its child nodes in the tree graph to obtain a set of candidate structural information corresponding to the tuple. In the prefix tree data structure, the root node is an empty node, and the remaining nodes consist of key-value pairs. In the tree graph data structure, the root node is an empty node, and the remaining nodes consist of a hierarchical structure. The values ​​of the prefix tree nodes correspond to the nodes in the tree graph. The second processing unit is used to calculate the maximum matching degree between the tuple and each candidate structural information in the candidate structural information set, wherein the maximum matching degree is calculated through structural information vectors; The third processing unit is used to determine the target structure information corresponding to the structure information based on the target candidate structure information corresponding to the maximum matching degree, wherein the target structure information is used to represent the normalized structure information.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to execute the structure information normalization method according to any one of claims 1 to 5.

8. An electronic device, characterized in that, The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to cause the at least one processor to perform the structural information normalization method according to any one of claims 1 to 5.

9. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the structural information normalization as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Intelligent identification method and device for hierarchical information

    CN106502995A

  • Data structured processing method and device, computer equipment, readable storage medium and program product

    CN119513094A