Power index item display style determination method and device, equipment, storage medium and program product
By using synonym segmentation and style inheritance, the problem of low efficiency in configuring display styles for power indicators was solved, achieving efficient and flexible style management.
Patent Information
- Application Number
- CN202511691635.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2026-01-30
AI Technical Summary
In power data statistical processing, developers need to configure a set of available display styles for each power indicator item, which leads to inefficiency.
By acquiring the definition and description information of power indicator items, synonyms are divided to determine the main power indicator items of the high-level data source system. Based on the configuration operation of the configuration personnel, an available display style set is generated to realize the style inheritance of power indicator items within the synonym group.
It improves the efficiency of configuring the display style of power indicators, avoids redundant configuration, adapts to name adjustments of lower-level data source systems, and facilitates subsequent maintenance.
Smart Images

Figure CN121433799A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power data processing technology, and in particular to a method, apparatus, computer equipment, storage medium, and computer program product for determining the display style of power indicators. Background Technology
[0002] In power data statistical processing scenarios, developers can pre-configure a set of available display styles for each power indicator. Configuring display styles can include setting attributes for bar charts or line charts, such as axis scale ranges, line colors, and thicknesses. Subsequently, if power personnel need to analyze a specific power indicator, they can select at least one display style from the available style set corresponding to that indicator, reducing the redundancy of display style configuration.
[0003] However, when developers configure the available display style set for each power indicator item, they need to collect all power indicator items and configure the available display style set for each power indicator item, which is inefficient. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, storage medium, and computer program product for determining the display style of power indicators to address the above-mentioned technical problems.
[0005] This application provides a method for determining the display style of electricity indicator items, the method comprising:
[0006] Obtain the indicator definition and description information for each power indicator item;
[0007] Based on the definition and description of the indicators, the electricity indicator items are divided into synonym groups to obtain multiple synonym groups.
[0008] Based on the data source system corresponding to the power index item, determine the power index item corresponding to the higher-level data source system in each synonym group, and obtain the main power index item in each synonym group.
[0009] Based on the configuration operation of the configuration personnel for the display style of each main power indicator item, the available display style set for each power indicator item is obtained.
[0010] In one embodiment, based on the indicator definition description information, each of the power indicator items is segmented into synonyms to obtain multiple synonym groups, including:
[0011] Determine the target similarity between the indicator definition description information of any two of the power indicator items;
[0012] Based on the target similarity, determine whether any two of the power index items are substantially the same;
[0013] If any two of the power indicators are substantially the same, then the two power indicators shall be grouped into the same synonym group.
[0014] In one embodiment, determining the target similarity between the indicator definition description information of any two of the power indicator items includes:
[0015] The indicator definition description information of any two of the power indicator items is vectorized to obtain a first vector and a second vector;
[0016] The first type of similarity is obtained based on the cosine values of the first vector and the second vector;
[0017] Keyword extraction is performed on the definition and description information of any two of the power indicators to obtain a first keyword set and a second keyword set;
[0018] The second type of similarity is obtained based on the intersection between the first keyword set and the second keyword set;
[0019] The target similarity is obtained based on the first type of similarity and the second type of similarity.
[0020] In one embodiment, obtaining the target similarity based on the first type of similarity and the second type of similarity includes:
[0021] Determine target weight pairs; the target weight pairs make the similarity weighted sum of at least a first preset proportion of substantially identical training sample pairs in the set of substantially identical training sample pairs of power index items greater than a set threshold.
[0022] The target similarity is obtained by weighting and summing the first type of similarity and the second type of similarity according to the target weight pair.
[0023] In one embodiment, determining the target weight pair includes:
[0024] The weight pairs are adjusted at least once to obtain the target weight pairs;
[0025] For each adjustment resulting in a weight pair, the first and second types of similarity of substantially identical training sample pairs for power index items are weighted and summed according to the weight pair to obtain a weighted similarity sum. If the weighted similarity sum of at least a first preset proportion of substantially identical training sample pairs is greater than a set threshold, it is determined whether the weight pair makes the weighted similarity sum of at most a second preset proportion of substantially identical verification sample pairs in the substantially identical verification sample pair set less than the set threshold, and whether the weight pair makes the weighted similarity sum of at most a second preset proportion of substantially different verification sample pairs in the substantially different verification sample pair set greater than the set threshold. If so, the weight pair is determined as the target weight pair; the first preset proportion is greater than the second preset proportion.
[0026] In one embodiment, based on the configuration operation of the configurator for the display style of each of the main power indicators, an available display style set for each power indicator is obtained, including:
[0027] Based on the configuration operation of the configuration personnel for the display style of each of the main power indicators, the available display style set for each of the main power indicators is obtained;
[0028] Associate the available display style set for each of the main power indicators with other power indicators in the synonym group to which the main power indicator belongs.
[0029] This application provides a device for determining the display style of electricity index items, the device comprising:
[0030] The definition information acquisition module is used to acquire the indicator definition description information of each power indicator item;
[0031] The synonym segmentation module is used to segment each of the power indicator items into synonyms based on the indicator definition description information, thereby obtaining multiple synonym groups.
[0032] The main power index item determination module is used to determine the power index item corresponding to the higher-level data source system in each synonym group based on the data source system corresponding to the power index item, and to obtain the main power index item in each synonym group.
[0033] The style configuration module is used to obtain the available display style set for each power indicator item based on the configuration operation of the configuration personnel for each of the main power indicator items.
[0034] This application provides a computer device, including a memory and a processor, wherein the memory stores a computer program and the processor executes the above-described method.
[0035] This application provides a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor using the methods described above.
[0036] This application provides a computer program product having a computer program stored thereon, the computer program being executed by a processor using the above-described method.
[0037] The method, apparatus, computer equipment, storage medium, and computer program product for determining the display style of the aforementioned power indicator items obtain the indicator definition description information of each power indicator item; based on the indicator definition description information, the power indicator items are divided into synonym groups to obtain multiple synonym groups; based on the data source system corresponding to the power indicator item, the power indicator item corresponding to the higher-level data source system in each synonym group is determined to obtain the main power indicator item in each synonym group; based on the configuration operation of the configuration personnel for the display style of each main power indicator item, the available display style set of each power indicator item is obtained. In the solution provided in this application, power indicator items are divided into synonyms based on the indicator definition description information. Power indicator items within the same synonym group are essentially the same. Therefore, developers and other configuration personnel only need to configure an available display style set based on one of the power indicator items in the synonym group. This available display style set can be inherited by other power indicator items in the synonym group, eliminating the need for developers to configure based on each power indicator item, thus improving efficiency. Moreover, considering that the indicator names of power indicator items from lower-level data source systems generally need to be aligned with those from higher-level data source systems, and that the indicator names of power indicator items from lower-level data source systems may be modified or adjusted, while the indicator names of power indicator items from higher-level data source systems are less frequently modified or adjusted, this solution, for ease of subsequent maintenance, determines the power indicator item corresponding to the higher-level data source system in each synonym group based on the data source system corresponding to the power indicator item, allowing developers and other configuration personnel to configure based on the main power indicator item in the synonym group. Attached Figure Description
[0038] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 This is a flowchart illustrating a method for determining the display style of power indicator items in one embodiment;
[0040] Figure 2 This is a flowchart illustrating the synonym segmentation process in one embodiment;
[0041] Figure 3 This is a flowchart illustrating the process of determining target similarity in one embodiment;
[0042] Figure 4 This is a structural block diagram of a device for determining the display style of power index items in one embodiment;
[0043] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0045] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0046] The method for determining the display style of power indicator items provided in this application is executed by computer equipment, and the method may include... Figure 1 Steps S101 to S104 are shown.
[0047] Step S101: Obtain the indicator definition and description information for each power indicator item.
[0048] The indicators related to a power company can be called power indicator items, such as the total number of photovoltaic (PV) distribution transformer substations, the number of PV distribution transformer substations under heavy load, the number of PV distribution transformer substations under overload, and the percentage of PV automatic meter reading points. The definition and description information of power indicator items can be used to clarify their meaning. Computer equipment can obtain the definition and description information of each power indicator item. It can obtain power indicator items provided by multiple data source systems.
[0049] Step S102: Based on the indicator definition description information, perform synonym division on each power indicator item to obtain multiple synonym groups.
[0050] The definition and description information of power indicators can be used to clarify the meaning of power indicators. Therefore, based on the definition and description information, it can be determined whether any two power indicators are synonyms, thereby realizing the synonym division of power indicators and obtaining multiple synonym groups.
[0051] Step S103: Based on the data source system corresponding to the power index item, determine the power index item corresponding to the higher-level data source system in each synonym group, and obtain the main power index item in each synonym group.
[0052] Higher-level data source systems have higher authority, and the names of power indicator items from lower-level data source systems generally need to be aligned with those from higher-level systems. For example, if a higher-level data source system names a power indicator item as "10kV line daily loss rate," and a lower-level data source system names the same power indicator item as "10kV line daily loss rate," the lower-level system may subsequently need to align the name of this power indicator item to "10kV line daily loss rate."
[0053] Considering that the names of power indicator items from lower-level data source systems may be modified or adjusted, while the names of power indicator items from higher-level data source systems are less frequently modified or adjusted, this embodiment, after obtaining the synonym group, can determine the power indicator item in the synonym group that corresponds to the higher-level data source system (such as the highest-level data source system) based on the data source system corresponding to the power indicator item. This power indicator item can be identified as the primary power indicator item in the synonym group; correspondingly, other power indicator items in the synonym group besides the primary power indicator item can be called secondary power indicator items.
[0054] Step S104: Based on the configuration operation of the configuration personnel for the display style of each main power indicator item, obtain the available display style set for each power indicator item.
[0055] After determining the primary power indicator for each synonym group, the primary power indicator can be fed back to the configuration engineer (such as a developer). The configuration engineer configures the display style for each primary power indicator, and the computer device can obtain the available display style set for each primary power indicator based on the configuration engineer's settings.
[0056] The available display style set for each primary power indicator item can be inherited by secondary power indicator items in the synonym group. If the user provides the indicator name of the secondary power indicator item, the computer device can determine the synonym group to which the secondary power indicator item belongs, determine the available display style set of the primary power indicator item in the synonym group, and feed back the available display style set to the user. The user can select at least one display style in the available display style set to display the secondary power indicator item.
[0057] Specifically, after determining the primary power indicator for each synonym group, a globally unique code can be assigned to the primary power indicator. The globally unique code serves as the key, the primary power indicator serves as the primary value, and the secondary power indicator within the synonym group serves as the secondary value. Developers can configure display styles for the primary value associated with the globally unique code, forming a set of available display styles. This set of available display styles can be shared with the secondary power indicator as secondary values.
[0058] In the above method for determining the display style of power indicator items, the indicator definition description information of each power indicator item is obtained; based on the indicator definition description information, each power indicator item is divided into synonyms to obtain multiple synonym groups; based on the data source system corresponding to the power indicator item, the power indicator item corresponding to the higher-level data source system in each synonym group is determined to obtain the main power indicator item in each synonym group; based on the configuration operation of the configuration personnel for the display style of each main power indicator item, the available display style set of each power indicator item is obtained. The solution provided in this application categorizes power indicator items into synonyms based on the indicator definition description information. Power indicator items within the same synonym group are essentially identical. Therefore, developers and configuration personnel only need to configure an available display style set based on one power indicator item within the synonym group. This available display style set can be inherited by other power indicator items within the synonym group. Developers do not need to configure for each power indicator item, improving efficiency and avoiding repetitive configuration development of display styles. Furthermore, considering that the indicator names of power indicator items from lower-level data source systems generally need to be aligned with those from higher-level data source systems, and that the indicator names of power indicator items from lower-level data source systems may be modified or adjusted, while the names of power indicator items from higher-level data source systems are less frequently modified or adjusted, this solution, for ease of subsequent maintenance, determines the power indicator item corresponding to the higher-level data source system within each synonym group based on the data source system corresponding to the power indicator item. This allows developers and configuration personnel to configure using the primary power indicator item within the synonym group.
[0059] In one embodiment, based on the indicator definition and description information, each power indicator item is segmented into synonyms to obtain multiple synonym groups, including... Figure 2 The steps shown are as follows:
[0060] Step S201: Determine the target similarity between the indicator definition description information of any two power indicator items; Step S202: Determine whether any two power indicator items are substantially the same based on the target similarity; Step S203: If any two power indicator items are substantially the same, then classify any two power indicator items into the same synonym group.
[0061] For any two power indicators, a computer device can calculate the target similarity between the indicator definition descriptions of these two power indicators. If the target similarity is greater than a set threshold (e.g., 0.9), it can be determined that the two power indicators are likely substantially the same and belong to synonyms. Therefore, the two power indicators can be classified into the same synonym group. If the target similarity is less than the set threshold, it can be determined that the two power indicators are likely substantially different and do not belong to synonyms. Therefore, the two power indicators can be classified into different synonym groups.
[0062] In this embodiment, the similarity of targets is calculated based on the definition and description information of the power indicator items. This can more accurately determine whether two power indicator items are substantially the same and avoid misjudgment due to name differences.
[0063] In one embodiment, the target similarity between the indicator definition description information of any two electricity indicator items is determined, including... Figure 3 The steps shown are as follows:
[0064] Step S301: Perform vector transformation on the indicator definition description information of any two power indicator items to obtain a first vector and a second vector; Step S302: Obtain the first type of similarity based on the cosine value of the first vector and the second vector; Step S303: Extract keywords from the indicator definition description information of any two power indicator items to obtain a first keyword set and a second keyword set; Step S304: Obtain the second type of similarity based on the intersection between the first keyword set and the second keyword set; Step S305: Obtain the target similarity based on the first type of similarity and the second type of similarity.
[0065] When determining whether two power indicators are substantially the same, this embodiment can combine word vector cosine similarity and keyword matching methods for calculation.
[0066] Word vector cosine similarity: A word embedding model (such as the Word2Vec model) is trained based on corpus in the power field. This word embedding model can convert information in the power field into vectors. The word embedding model can convert the indicator definition description information of two power indicators into vectors, resulting in a first vector and a second vector. The computer device can calculate the cosine value of the first vector and the second vector. Based on the cosine value, the similarity between the two power indicators is obtained. This similarity can be called the first type of similarity.
[0067] Keyword matching method: The computer device extracts keywords from two power indicators to obtain a first keyword set and a second keyword set. Then, the number of common keywords in the first keyword set and the second keyword set, as well as the total number of keywords in the first keyword set and the second keyword set, can be determined. Based on the ratio of the number of common keywords to the total number of keywords, the similarity between the two power indicators can be obtained. This similarity can be called the second type of similarity.
[0068] After obtaining the first type of similarity and the second type of similarity through two methods respectively, the first type of similarity and the second type of similarity can be weighted and summed to obtain the target similarity.
[0069] In this embodiment, by calculating the first type of similarity through vector transformation and cosine value, the overall semantic association of the indicator definition description information of power indicators can be captured more accurately, avoiding omissions due to differences in expression order and sentence structure. By extracting keywords and calculating the intersection, the second type of similarity can be anchored in the core features of the indicator definition description information (such as "10kV", "line loss rate", "statistical period"), preventing key information from being ignored. Combining the two types of similarity to obtain the target similarity can take into account both the overall semantic matching and the accurate correspondence of core elements, providing a more reliable basis for subsequent synonym group division and effectively reducing misjudgments and omissions.
[0070] In one embodiment, obtaining the target similarity based on a first type of similarity and a second type of similarity includes:
[0071] Determine the target weight pair; the target weight pair ensures that the weighted sum of the similarities of at least a first preset proportion of substantially identical training sample pairs in the set of substantially identical training sample pairs for power index items is greater than a set threshold; according to the target weight pair, the first type of similarity and the second type of similarity are weighted and summed to obtain the target similarity.
[0072] For example, substantially identical pairs of power indicators can be obtained from sources such as power-related industry standards and internal company manuals, thereby obtaining a set of substantially identical training sample pairs.
[0073] Obtain N essentially identical training sample pairs, and calculate the first-class similarity and second-class similarity for each pair as described above. Determine a target weight pair, which ensures that the weighted sum of the similarities of at least a first preset proportion (e.g., 99%) of the N essentially identical training sample pairs is greater than a set threshold (e.g., 0.9). If the two weights in the target weight pair are referred to as the first target weight and the second target weight, assign the first target weight to the first-class similarity of a given essentially identical training sample pair, and assign the second target weight to the second-class similarity of that pair. This yields a weighted sum of similarities. If this weighted sum is greater than the set threshold, it can be considered that the target weight pair makes the weighted sum of the similarities of the essentially identical training sample pairs greater than the set threshold. This method can determine a relatively accurate target weight pair.
[0074] After determining the target weight pair, the computer equipment can perform a weighted sum of the first type of similarity and the second type of similarity of the two power index items according to the first target weight, so as to obtain a more accurate target similarity.
[0075] In one embodiment, determining the target weight pair includes:
[0076] The weight pairs are adjusted at least once to obtain target weight pairs. For each weight pair obtained from the adjustment, the first and second similarities of substantially identical training sample pairs for the power index items are weighted and summed according to the weight pairs to obtain a weighted similarity sum. If the weighted similarity sum of at least a first preset proportion of substantially identical training sample pairs is greater than a set threshold, it is determined whether the weight pair makes the weighted similarity sum of at most a second preset proportion of substantially identical verification sample pairs in the substantially identical verification sample pair set less than the set threshold, and whether the weight pair makes the weighted similarity sum of at most a second preset proportion of substantially different verification sample pairs in the substantially different verification sample pair set greater than the set threshold. If so, the weight pair is determined as the target weight pair; the first preset proportion is greater than the second preset proportion.
[0077] For example, substantially identical pairs of power indicators can be obtained from power-related industry standards and internal company manuals, thus obtaining a set of substantially identical training sample pairs and a set of substantially identical verification training sample pairs. Selecting one power indicator from each of the two substantially identical pairs creates substantially different pairs of power indicators, thus obtaining a set of substantially different verification sample pairs. The set of substantially different verification sample pairs can include M substantially different verification sample pairs.
[0078] This embodiment can adjust the weight pair at least once to obtain the target weight pair.
[0079] For each adjustment to obtain a weight pair, the first type of similarity and the second type of similarity of substantially identical training sample pairs can be weighted and summed according to the weight pair to obtain a weighted similarity sum. If the weighted similarity sum of at least a first preset proportion (e.g., 99%) of substantially identical training sample pairs is greater than a set threshold (e.g., 0.9), then the weight pair can be verified.
[0080] During verification, it can be determined whether the weighted sum of similarity of at most a second preset proportion (e.g., 1%) of substantially identical verification sample pairs in the set of substantially identical verification sample pairs is less than a set threshold (e.g., 0.9), and whether the weighted sum of similarity of at most a second preset proportion (e.g., 1%) of substantially different verification sample pairs in the set of substantially different verification sample pairs is greater than a set threshold (e.g., 0.9).
[0081] If the weighted pair causes the weighted sum of similarity of at most a second preset proportion (e.g., 1%) of substantially identical verification sample pairs in the set of substantially identical verification sample pairs to be less than a set threshold (e.g., 0.9), then the false negative rate of the weighted pair meets the requirements. If the weighted pair causes the weighted sum of similarity of at most a second preset proportion (e.g., 1%) of substantially different verification sample pairs in the set of substantially different verification sample pairs to be greater than a set threshold (e.g., 0.9), then the false positive rate of the weighted pair meets the requirements. When the false negative rate and false positive rate of the weighted pair meet the requirements, it can be determined that the weighted pair can accurately distinguish between substantially identical and substantially different power indicator items, and the weighted pair is determined as the target weighted pair; otherwise, adjustment continues.
[0082] In addition, during further adjustments, the word vector cosine similarity and keyword matching methods can be optimized. The optimization of word vector cosine similarity mainly involves optimizing the parameters used to convert the information of the index definition into vectors. The optimization of keyword matching mainly involves optimizing the parameters used to extract core words and optimizing the weights assigned to different keywords in the formula used by the method, so as to adjust the importance of the keywords.
[0083] This application also provides an embodiment whereby, for power indicator items lacking definition and description information, it can be determined whether they are substantially the same in the following ways. For example, if there are two power indicator items lacking definition and description information, namely "bus voltage qualification rate" and "bus voltage qualification time percentage," it can be determined that both power indicator items contain "bus voltage" and "qualified" based on their indicator names, indicating a high degree of word similarity. It can also be determined whether the calculation logic of the two power indicator items is consistent; for example, if the calculation logic of both power indicator items is "voltage qualification time / total time," then the calculation logic is consistent. Furthermore, it can be determined whether the business scenarios of the two power indicator items are consistent; for example, if the business scenarios of both "bus voltage qualification rate" and "bus voltage qualification time percentage" are used to evaluate power supply quality, then the business scenarios are consistent. Therefore, it can be determined that the two power indicator items are substantially the same. Power indicator items determined to be substantially the same in this way can be sent to relevant personnel for verification to avoid misjudgment.
[0084] In one embodiment, based on the configuration operation of the configurator for the display style of each main power indicator item, the available display style set for each power indicator item is obtained, including:
[0085] Based on the configuration operations of the configuration personnel for the display style of each main power indicator item, the available display style set for each main power indicator item is obtained; the available display style set for each main power indicator item is then associated with other power indicator items in the synonym group to which the main power indicator item belongs.
[0086] The administrator configures the display style for each primary power indicator item. Based on the administrator's configuration, the computer equipment obtains the available display style set for each primary power indicator item. The computer equipment can associate the available display style set for each primary power indicator item with other power indicator items in the synonym group to which the primary power indicator item belongs, so that the available display style set for the primary power indicator item can be inherited by the secondary power indicator items in the synonym group.
[0087] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0088] Based on the same inventive concept, this application also provides an apparatus for determining the display style of power index items to implement the above-mentioned method for determining the display style of power index items. The solution provided by this apparatus is similar to the solution described in the above-described method. Therefore, the specific limitations of one or more embodiments of the apparatus for determining the display style of power index items provided below can be found in the limitations of the method for determining the display style of power index items described above, and will not be repeated here.
[0089] In one embodiment, such as Figure 4 As shown, a device for determining the display style of an electricity indicator item is provided, comprising:
[0090] The definition information acquisition module 401 is used to acquire the indicator definition description information of each power indicator item;
[0091] The synonym segmentation module 402 is used to perform synonym segmentation on each of the power index items according to the index definition description information to obtain multiple synonym groups;
[0092] The main power index item determination module 403 is used to determine the power index item corresponding to the higher-level data source system in each synonym group based on the data source system corresponding to the power index item, and obtain the main power index item in each synonym group.
[0093] The style configuration module 404 is used to obtain the available display style set for each power indicator item based on the display style configuration operation of the configuration operator for each of the main power indicator items.
[0094] In one embodiment, the synonym segmentation module 402 is used for:
[0095] Determine the target similarity between the indicator definition description information of any two of the power indicator items; based on the target similarity, determine whether any two of the power indicator items are substantially the same; if any two of the power indicator items are substantially the same, then classify any two of the power indicator items into the same synonym group.
[0096] In one embodiment, the synonym segmentation module 402 is used for:
[0097] Vector transformation is performed on the indicator definition description information of any two of the power indicator items to obtain a first vector and a second vector; a first type of similarity is obtained based on the cosine value of the first vector and the second vector; keywords are extracted from the indicator definition description information of any two of the power indicator items to obtain a first keyword set and a second keyword set; a second type of similarity is obtained based on the intersection between the first keyword set and the second keyword set; and a target similarity is obtained based on the first type of similarity and the second type of similarity.
[0098] In one embodiment, the synonym segmentation module 402 is used for:
[0099] Determine a target weight pair; the target weight pair ensures that the weighted sum of the similarities of at least a first preset proportion of substantially identical training sample pairs in the set of substantially identical training sample pairs for power index items is greater than a set threshold; according to the target weight pair, the first type of similarity and the second type of similarity are weighted and summed to obtain the target similarity.
[0100] In one embodiment, the synonym segmentation module 402 is used for:
[0101] The weight pairs are adjusted at least once to obtain target weight pairs. For each weight pair obtained from the adjustment, the first type of similarity and the second type of similarity of substantially identical training sample pairs of power index items are weighted and summed according to the weight pairs to obtain a weighted similarity sum. If the weighted similarity sum of at least a first preset proportion of substantially identical training sample pairs is greater than a set threshold, it is determined whether the weight pair makes the weighted similarity sum of at most a second preset proportion of substantially identical verification sample pairs in the substantially identical verification sample pair set less than the set threshold, and whether the weight pair makes the weighted similarity sum of at most a second preset proportion of substantially different verification sample pairs in the substantially different verification sample pair set greater than the set threshold. If so, the weight pair is determined as the target weight pair; the first preset proportion is greater than the second preset proportion.
[0102] In one embodiment, the style configuration module 404 is used for:
[0103] Based on the configuration operation of the configuration personnel for the display style of each main power indicator item, the available display style set of each main power indicator item is obtained; the available display style set of each main power indicator item is associated with other power indicator items in the synonym group to which the main power indicator item belongs.
[0104] The display style determination device for the aforementioned power indicators can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0105] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 5 As shown, the computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores the data involved in the aforementioned methods. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for determining the display style of power indicator items.
[0106] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0107] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps in the various method embodiments described above.
[0108] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the various method embodiments described above.
[0109] In one embodiment, a computer program product is provided having a computer program stored thereon, the computer program being executed by a processor of the steps described in the various method embodiments above.
[0110] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0111] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0112] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0113] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for determining a display style of an electric power index item, characterized by, The method comprises: obtaining index definition description information of each power index item; performing synonym division on each power index item according to the index definition description information to obtain a plurality of synonym groups; determining power index items corresponding to a high-level data source system in each synonym group according to a data source system corresponding to the power index item to obtain a main power index item in each synonym group; obtaining a set of available display styles of each power index item according to a display style configuration operation of a configuration member for each main power index item.
2. The method of claim 1, wherein, According to the index definition description information, the synonym division is performed on each power index item to obtain a plurality of synonym groups, comprising: determining a target similarity between the index definition description information of any two power index items; determining whether any two power index items are substantially the same according to the target similarity; if any two power index items are substantially the same, then dividing any two power index items into the same synonym group.
3. The method of claim 2, wherein, Determining the target similarity between the index definition description information of any two power index items comprises: performing vector conversion on the index definition description information of any two power index items to obtain a first vector and a second vector; obtaining a first type of similarity according to a cosine value of the first vector and the second vector; performing keyword extraction on the index definition description information of any two power index items to obtain a first keyword set and a second keyword set; obtaining a second type of similarity according to an intersection between the first keyword set and the second keyword set; obtaining the target similarity according to the first type of similarity and the second type of similarity.
4. The method of claim 3, wherein, Obtaining the target similarity according to the first type of similarity and the second type of similarity comprises: determining a target weight pair; the target weight pair makes a similarity weighted sum of at least a first preset proportion of substantially same training sample pairs in a set of substantially same training sample pairs of power index items greater than a set threshold value; performing weighted summation on the first type of similarity and the second type of similarity according to the target weight pair to obtain the target similarity.
5. The method of claim 4, wherein, Determining the target weight pair comprises: adjusting the weight pair at least once to obtain the target weight pair; each time an weight pair is adjusted, performing weighted summation on the first type of similarity and the second type of similarity of the substantially same training sample pairs of power index items according to the weight pair to obtain a similarity weighted sum, if the similarity weighted sum of at least a first preset proportion of substantially same training sample pairs is greater than a set threshold value, then determining whether the weight pair makes a similarity weighted sum of at most a second preset proportion of substantially same verification sample pairs in a set of substantially same verification sample pairs less than a set threshold value, and determining whether the weight pair makes a similarity weighted sum of at most a second preset proportion of substantially different verification sample pairs in a set of substantially different verification sample pairs greater than a set threshold value, if yes, then determining the weight pair as the target weight pair; the first preset proportion is greater than the second preset proportion.
6. The method according to any one of claims 1 to 5, characterized in that, Obtaining a set of available display styles of each power index item according to a display style configuration operation of a configuration member for each main power index item comprises: According to a display style configuration operation of a configuration staff for each main power index item, a set of available display styles of each main power index item is obtained; The set of available display styles of each main power index item is associated with other power index items in a synonym group to which the main power index item belongs.
7. A device for determining the display style of an electricity indicator item, characterized in that, The apparatus comprises: A definition information acquisition module configured to acquire index definition description information of each power index item; A synonym division module configured to divide each power index item into a synonym group according to the index definition description information, and obtain a plurality of synonym groups; A main power index item determination module configured to determine, according to a data source system corresponding to each power index item, a power index item corresponding to a high-level data source system in each synonym group, and obtain a main power index item in each synonym group; A style configuration module configured to obtain a set of available display styles of each power index item according to a display style configuration operation of a configuration staff for each main power index item.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to implement the method in any one of claims 1 to 6.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the method in any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the method in any one of claims 1 to 6.