Data processing method and device of index metadata, electronic equipment and storage medium
By performing semantic parsing and conflict resolution on natural language indicator descriptions, generating structured standardized objects and comparing them with a pre-defined indicator library, the problems of automatic convergence and duplicate/conflict identification of indicator descriptions are solved, thereby improving the integrity of indicator metadata and the quality of data governance.
Patent Information
- Application Number
- CN202611166446.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-03
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies struggle to automatically converge natural language metrics descriptions into a unified and complete standard structured expression, and cannot effectively identify synonymous duplicate metrics or intercept metrics with conflicting calculation methods, thus affecting the accuracy and consistency of data development and report generation.
By performing semantic parsing on natural language descriptive text, extracting candidate indicator definition object sets, conducting conflict adjudication to determine standard semantic elements, generating structured normative objects, and performing in-depth comparison with a pre-set indicator library to identify synonymous duplication and conflicting indicators.
It enables the automatic convergence of diverse natural language expressions into a unified structured expression, improving the completeness and accuracy of indicator metadata, and enhancing the accuracy of duplicate detection and data governance quality in indicator registration.
Smart Images

Figure CN123180147A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a data processing method for indicator metadata, a data processing device for indicator metadata, an electronic device, and a readable storage medium. Background Technology
[0002] In the field of enterprise data management and data analysis, business metrics are the core quantitative tools for measuring a company's operating performance. With the deepening of enterprise digital transformation, the number of business metrics has exploded, making the definition, registration, and management of metrics crucial aspects of enterprise data asset governance. Business personnel describe the meaning of metrics in natural language (e.g., "sales volume of first-time orders from new customers in East China in the past 7 days"), which data engineers then convert into structured metric metadata and input into the metric management platform for subsequent data development, report generation, and caliber alignment. In related technologies, metric management platforms typically provide metric registration functionality, receiving user-input metric names and descriptions, and using text similarity algorithms to match newly registered metrics with existing metrics in the metric library to check for duplicates. However, in practical applications, it has been found that the above-mentioned technologies have at least the following shortcomings: On the one hand, when converting natural language metrics into structured metadata, the same business meaning can be expressed in various natural language ways (for example, "sales volume" and "sales volume" refer to the same meaning but are expressed differently). It is difficult to automatically converge the divergent expressions into a unified and complete standard structured expression, which can easily lead to the loss of key calculation elements or semantic ambiguity, thereby affecting the accuracy of downstream data development and report generation.
[0003] On the other hand, during the indicator registration and storage process, the core calculation caliber fields of the indicators were not subjected to in-depth structured comparison. This resulted in the system being unable to identify synonymous duplicate indicators with different names but the same calculation caliber, and also unable to effectively intercept indicators with similar names but conflicting calculation calibers. This led to problems such as duplicate indicator construction and inconsistent data calibers. Summary of the Invention
[0004] This invention provides a data processing method, apparatus, electronic device, and readable storage medium for indicator metadata, in order to solve or partially solve the problems that natural language indicator descriptions are difficult to automatically converge into a unified and complete standard structured expression, and that synonymous duplicate indicators and conflicting indicators cannot be effectively identified and intercepted during the indicator registration process.
[0005] This invention discloses a data processing method for indicator metadata, including: Obtain natural language descriptions of target business metrics; Semantic parsing is performed on the natural language description text to extract a set of candidate indicator definition objects; Conflict resolution is performed on the candidate indicator definition object set to determine the standard semantic elements of the target business indicator, and a structured specification object of the target business indicator is generated based on the standard semantic elements. Extract the core structural fields of the structured specification object, and compare the core structural fields of the structured specification object with the core structural fields of existing indicators in the preset indicator library to obtain the field comparison results; Based on the field comparison results, the registration detection results of the target business indicator are determined.
[0006] In some feasible implementations, the step of semantically parsing the natural language description text and extracting a set of candidate indicator definition objects includes: The natural language description text is segmented to obtain the corresponding terms; The terms are subjected to synonym merging to obtain the corresponding target standard terms, and the terms are subjected to time expression standardization to obtain the corresponding standard time segment representation. Based on the target standard words and the standard time segment representation, a standardized text corresponding to the natural language description text is constructed; The standardized text is subjected to slot identification, and multiple candidate semantic elements are extracted for each preset semantic slot. A set of candidate index definition objects is determined based on the multiple candidate semantic elements. The preset semantic slots include at least one of the following: indicator subject, statistical action, analysis dimension, time window, comparison benchmark, calculation mode, and unit.
[0007] In some feasible implementations, the process of merging synonyms for the terms to obtain the corresponding target standard terms includes: The natural language description text is segmented to obtain the corresponding terms; Call the semantic mapping resource library, which includes mapping relationships between standard words and at least one non-standard word; Replace the first term in the term that matches the first non-standard word in the semantic mapping resource library with the first standard word to which the first non-standard word belongs; The term that does not match the semantic mapping resource library is taken as the second term, and the similarity between the second term and each non-standard term in the semantic mapping resource library is calculated. Replace the second term with a second standard term belonging to a second non-standard term whose similarity is greater than or equal to a preset threshold.
[0008] In some feasible implementations, the step of performing time representation standardization processing on the terms to obtain the corresponding standard time segment representation includes: If the natural language description text contains time expressions, then a preset time pattern library is used to perform regular expression matching on the time expressions to extract at least one of time window, time granularity and offset direction information, and output the standard time segment representation corresponding to the time expressions; If there is no time expression in the natural language description text, then the index type of the natural language description text is obtained, the time window corresponding to the index type is inferred, and the standard time segment representation corresponding to the time expression is output.
[0009] In some feasible implementations, constructing the standardized text corresponding to the natural language description text based on the target standard words and the standard time segment representation includes: Based on the first standard term and / or the second standard term, and the standard time segment representation, the standardized text corresponding to the natural language description text is obtained.
[0010] In some feasible implementations, determining the candidate index definition object set based on multiple candidate semantic elements includes: Obtain the slot type corresponding to the semantic slot to which each of the candidate semantic elements belongs; Candidate semantic elements of different slot types are cross-combined to obtain a candidate combination set; Each candidate combination in the candidate combination set is verified, the first candidate combination that does not meet the preset mandatory constraint conditions is eliminated, and the second candidate combination that meets all the mandatory constraint conditions is retained. The second candidate combination is used as the set of candidate indicator definition objects.
[0011] In some feasible implementations, the mandatory constraint conditions include one or more of the following: Comparative indicators must include constraints on the benchmark being compared to; Ratio-type indices must contain constraints that depend on the numerator and denominator; Constraints that ensure compatibility between time windows and time granularity; The constraint that the baseline length is consistent with the current period's time window length; Constraints on matching units with indicator types; Constraints on the compatibility of the indicator subject and the analysis dimension; Constraints on matching statistical actions with the type of indicator subject.
[0012] In some feasible implementations, the candidate indicator definition object set includes candidate indicator definition objects, and the conflict resolution of the candidate indicator definition object set to determine the standard semantic elements of the target business indicator includes: Obtain the target scores of each candidate indicator definition object on the multi-dimensional evaluation factors; The target scores on each of the evaluation factors are weighted and fused to obtain the comprehensive score of the candidate indicator definition object, and the candidate semantic element corresponding to the candidate indicator definition object with the highest comprehensive score is selected as the standard semantic element of the target business indicator.
[0013] In some feasible implementations, the target scores on the multi-dimensional scoring factors include at least one of the following: semantic confidence score, constraint matching score, historical consistency score, unit adaptation score, time benchmark rationality score, information missing penalty value, caliber conflict penalty value, dimension compatibility score, and statistical action adaptation score.
[0014] In some feasible implementations, the weighted fusion of the target scores on each of the evaluation factors to obtain the comprehensive score of the candidate index definition object includes: The candidate indicator definition object is weighted and summed on each positive evaluation factor with the corresponding weight coefficient to obtain the first score. The positive evaluation factor includes at least one of the semantic confidence score, the constraint matching score, the historical consistency score, the unit adaptation score, the time benchmark rationality score, and the dimension compatibility score. The first penalty value is obtained by multiplying the information loss penalty value by the corresponding preset weight coefficient; The second penalty value is obtained by multiplying the caliber conflict penalty value by the corresponding preset weight coefficient; Subtracting the first penalty value and the second penalty value from the first score yields the comprehensive score of the candidate indicator definition object.
[0015] In some feasible implementations, the step of resolving conflicts in the candidate metric definition object set and determining the standard semantic elements of the target business metric further includes: If the difference between the comprehensive scores of multiple candidate indicator definition objects is less than a preset threshold, the multiple candidate indicator definition objects are marked as candidates to be confirmed, and the difference slot information for the candidates to be confirmed is output.
[0016] In some feasible implementations, the core structure fields include at least one of the following: indicator subject, analysis dimension, time window, comparison benchmark, and calculation mode. The step of extracting the core structure fields of the structured standard object and comparing them with the core structure fields of existing indicators in a preset indicator library to obtain field comparison results includes: If the core structure fields of the structured specification object are consistent with the core structure fields of existing indicators in the preset indicator library, then output the field consistency result for the structured specification object; If the core structural fields of the structured standard object are consistent with the core structural fields of existing indicators in the preset indicator library in terms of the indicator subject and the analysis dimension, but inconsistent in terms of the time window, the comparison benchmark, or the calculation mode, then output the caliber conflict result for the structured standard object. If the core structure field of the structured specification object is inconsistent with the core structure field of an existing indicator in the preset indicator library, then a field-independent result for the structured specification object will be output.
[0017] In some feasible implementations, determining the registration detection result of the target business indicator based on the field comparison result includes: If the field comparison result is consistent with the field, then the target business indicator is determined to be a synonymous duplicate indicator; If the field comparison result is the result of the caliber conflict, then the target business indicator is determined to be a caliber conflict indicator, and a description of the differences for the caliber conflict indicator is output. If the field comparison result is irrelevant to the field, then the target business indicator is determined to be a new indicator.
[0018] This invention also discloses a data processing device for indicator metadata, comprising: The description text acquisition module is used to acquire natural language description text of the target business metrics; The semantic parsing module is used to perform semantic parsing on the natural language description text and extract a set of candidate indicator definition objects; The conflict resolution module is used to resolve conflicts in the set of candidate indicator definition objects, determine the standard semantic elements of the target business indicator, and generate a structured specification object of the target business indicator based on the standard semantic elements. The structured comparison module is used to extract the core structure fields of the structured specification object and compare the core structure fields of the structured specification object with the core structure fields of existing indicators in the preset indicator library to obtain the field comparison results. The registration detection module is used to determine the registration detection result of the target business indicator based on the field comparison results.
[0019] In some feasible implementations, the semantic parsing module is specifically used for: The natural language description text is segmented to obtain the corresponding terms; The terms are subjected to synonym merging to obtain the corresponding target standard terms, and the terms are subjected to time expression standardization to obtain the corresponding standard time segment representation. Based on the target standard words and the standard time segment representation, a standardized text corresponding to the natural language description text is constructed; The standardized text is subjected to slot identification, and multiple candidate semantic elements are extracted for each preset semantic slot. A set of candidate index definition objects is determined based on the multiple candidate semantic elements. The preset semantic slots include at least one of the following: indicator subject, statistical action, analysis dimension, time window, comparison benchmark, calculation mode, and unit.
[0020] In some feasible implementations, the semantic parsing module is specifically used for: The natural language description text is segmented to obtain the corresponding terms; Call the semantic mapping resource library, which includes mapping relationships between standard words and at least one non-standard word; Replace the first term in the term that matches the first non-standard word in the semantic mapping resource library with the first standard word to which the first non-standard word belongs; The term that does not match the semantic mapping resource library is taken as the second term, and the similarity between the second term and each non-standard term in the semantic mapping resource library is calculated. Replace the second term with a second standard term belonging to a second non-standard term whose similarity is greater than or equal to a preset threshold.
[0021] In some feasible implementations, the semantic parsing module is specifically used for: If the natural language description text contains time expressions, then a preset time pattern library is used to perform regular expression matching on the time expressions to extract at least one of time window, time granularity and offset direction information, and output the standard time segment representation corresponding to the time expressions; If there is no time expression in the natural language description text, then the index type of the natural language description text is obtained, the time window corresponding to the index type is inferred, and the standard time segment representation corresponding to the time expression is output.
[0022] In some feasible implementations, the semantic parsing module is specifically used for: Based on the first standard term and / or the second standard term, and the standard time segment representation, the standardized text corresponding to the natural language description text is obtained.
[0023] In some feasible implementations, the semantic parsing module is specifically used for: Obtain the slot type corresponding to the semantic slot to which each of the candidate semantic elements belongs; Candidate semantic elements of different slot types are cross-combined to obtain a candidate combination set; Each candidate combination in the candidate combination set is verified, the first candidate combination that does not meet the preset mandatory constraint conditions is eliminated, and the second candidate combination that meets all the mandatory constraint conditions is retained. The second candidate combination is used as the set of candidate indicator definition objects.
[0024] In some feasible implementations, the mandatory constraint conditions include one or more of the following: Comparative indicators must include constraints on the benchmark being compared to; Ratio-type indices must contain constraints that depend on the numerator and denominator; Constraints that ensure compatibility between time windows and time granularity; The constraint that the baseline length is consistent with the current period's time window length; Constraints on matching units with indicator types; Constraints on the compatibility of the indicator subject and the analysis dimension; Constraints on matching statistical actions with the type of indicator subject.
[0025] In some feasible implementations, the candidate indicator definition object set includes candidate indicator definition objects, and the conflict resolution module is specifically used for: Obtain the target scores of each candidate indicator definition object on the multi-dimensional evaluation factors; The target scores on each of the evaluation factors are weighted and fused to obtain the comprehensive score of the candidate indicator definition object, and the candidate semantic element corresponding to the candidate indicator definition object with the highest comprehensive score is selected as the standard semantic element of the target business indicator.
[0026] In some feasible implementations, the target scores on the multi-dimensional scoring factors include at least one of the following: semantic confidence score, constraint matching score, historical consistency score, unit adaptation score, time benchmark rationality score, information missing penalty value, caliber conflict penalty value, dimension compatibility score, and statistical action adaptation score.
[0027] In some feasible implementations, the conflict resolution module is specifically used for: The candidate indicator definition object is weighted and summed on each positive evaluation factor with the corresponding weight coefficient to obtain the first score. The positive evaluation factor includes at least one of the semantic confidence score, the constraint matching score, the historical consistency score, the unit adaptation score, the time benchmark rationality score, and the dimension compatibility score. The first penalty value is obtained by multiplying the information loss penalty value by the corresponding preset weight coefficient; The second penalty value is obtained by multiplying the caliber conflict penalty value by the corresponding preset weight coefficient; Subtracting the first penalty value and the second penalty value from the first score yields the comprehensive score of the candidate indicator definition object.
[0028] In some feasible implementations, the conflict resolution module is further used for: If the difference between the comprehensive scores of multiple candidate indicator definition objects is less than a preset threshold, the multiple candidate indicator definition objects are marked as candidates to be confirmed, and the difference slot information for the candidates to be confirmed is output.
[0029] In some feasible implementations, the core structure fields include at least one of the following: indicator subject, analysis dimension, time window, comparison benchmark, and calculation mode. The structured comparison module is specifically used for: If the core structure fields of the structured specification object are consistent with the core structure fields of existing indicators in the preset indicator library, then output the field consistency result for the structured specification object; If the core structural fields of the structured standard object are consistent with the core structural fields of existing indicators in the preset indicator library in terms of the indicator subject and the analysis dimension, but inconsistent in terms of the time window, the comparison benchmark, or the calculation mode, then output the caliber conflict result for the structured standard object. If the core structure field of the structured specification object is inconsistent with the core structure field of an existing indicator in the preset indicator library, then a field-independent result for the structured specification object will be output.
[0030] In some feasible implementations, the registration detection module is specifically used for: If the field comparison result is consistent with the field, then the target business indicator is determined to be a synonymous duplicate indicator; If the field comparison result is the result of the caliber conflict, then the target business indicator is determined to be a caliber conflict indicator, and a description of the differences for the caliber conflict indicator is output. If the field comparison result is irrelevant to the field, then the target business indicator is determined to be a new indicator.
[0031] This invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method described in the embodiments of the present invention.
[0032] This invention also discloses a readable storage medium storing instructions that, when executed by one or more processors, cause the processors to perform the method described in this invention.
[0033] The embodiments of the present invention have the following advantages: In this embodiment of the invention, the natural language description text of the target business indicator is obtained, and then semantic parsing is performed on the natural language description text to extract a set of candidate indicator definition objects. Conflict adjudication is then performed on these candidate indicator definition object sets to determine standard semantic elements and generate structured specification objects. Through multi-dimensional semantic parsing and conflict adjudication mechanisms, the diverse and divergent natural language expressions are automatically converged into a unified and complete standard structured expression. This improves the completeness and accuracy of key computational elements in the indicator metadata, enhances the consistency of the caliber basis upon which downstream data development and report generation rely, and improves the efficiency of automated conversion of indicator metadata from natural language input to structured output. Simultaneously, by extracting the core structural fields of the structured specification objects and performing a deep comparison with the core structural fields of existing indicators in a preset indicator library to obtain field comparison results, the registration detection results are determined based on these comparison results. Thus, through a structured comparison mechanism at the core structural field level, the accuracy of deduplication and conflict identification in the indicator registration process is enhanced, improving the overall data governance quality of the enterprise indicator library and the credibility of indicator assets. Attached Figure Description
[0034] Figure 1 This is a flowchart of the steps of a data processing method for indicator metadata provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the indicator data processing provided in the embodiments of the present invention; Figure 3 This is a structural block diagram of a data processing device for indicator metadata provided in an embodiment of the present invention. Detailed Implementation
[0035] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0036] As examples, in the field of enterprise data management and data analysis, business metrics are core quantitative tools for measuring a company's operating performance. With the deepening of enterprise digital transformation, the number of business metrics has exploded, making the definition, registration, and management of metrics crucial aspects of enterprise data asset governance. Specifically, business personnel describe the meaning of metrics in natural language (e.g., "sales volume of first-time orders from new customers in East China in the past 7 days"), which data engineers then convert into structured metric metadata and input into the metric management platform for subsequent data development, report generation, and caliber alignment.
[0037] In related technologies, indicator management platforms typically provide indicator registration functionality, receiving user-input indicator names and descriptions, and using text similarity algorithms to match newly registered indicators with those in the existing indicator library to determine if duplicate indicators exist. However, in practical applications, these technologies have at least the following shortcomings: Firstly, when converting natural language indicator descriptions into structured metadata, the diverse natural language expressions for the same business meaning (e.g., "sales volume" and "sales amount" refer to the same meaning but are expressed differently) make it difficult to automatically converge these divergent expressions into a unified and complete standard structured expression. This can easily lead to missing key calculation elements or semantic ambiguity, thus affecting the accuracy of downstream data development and report generation. Secondly, during the indicator registration and database entry stages, the lack of in-depth structured comparison of the core calculation caliber fields of the indicators results in the system being unable to identify synonymous duplicate indicators with different names but consistent calculation calibers, or effectively intercept indicators with similar names but conflicting calculation calibers, leading to problems of redundant indicator construction and inconsistent data calibers.
[0038] In this invention, based on a mechanism for retaining and resolving conflicts among multiple candidate semantic elements, when the data processing system obtains the natural language description text of the target business indicator, the system can perform semantic parsing on the natural language description text to extract multiple candidate semantic elements. Then, conflict resolution is performed on these candidate semantic elements to determine the standard semantic elements and generate the corresponding structured specification object. The core structure fields of the structured specification object are then extracted and compared with the core structure fields of existing indicators in the preset indicator library to obtain the field comparison results. Based on the comparison results, the registration detection result of the target business indicator is determined, thereby automatically converging the divergent and diverse natural language expressions into a unified and complete standard structured expression, while identifying synonymous duplicate indicators and conflicting indicators.
[0039] Reference Figure 1The diagram illustrates a flowchart of a data processing method for indicator metadata provided in an embodiment of the present invention, which may specifically include the following steps: Step 101: Obtain the natural language description text of the target business metrics; In this embodiment of the invention, an indicator management platform or data governance platform (referred to as a system in the following embodiments) can be applied to various types of enterprises. This system may include a front-end interactive interface, a back-end indicator processing engine, and an indicator library storage unit. The front-end interactive interface receives indicator definition requests submitted by business personnel (such as sales, production, finance, and operations management personnel). The back-end indicator processing engine executes the processing steps provided in this embodiment, including semantic parsing, conflict resolution, and structured comparison. The indicator library storage unit stores registered historical indicator specification objects for subsequent comparison and deduplication. In practical applications, business personnel can input a description of the business meaning of the indicator to be registered through a web application, mobile application, or the indicator registration module of the data management system.
[0040] Furthermore, natural language description text can refer to the definition of indicators described by business personnel in unstructured natural language according to their own business understanding, such as "the month-on-month growth rate of air conditioner sales in various regions in the past 30 days", "the year-on-year growth rate of quarterly revenue", and "the monthly after-sales failure rate". Optionally, the natural language description text can be obtained not only by users manually entering it through the interface, but also by extracting it from unstructured data sources such as business requirement documents, data requirement specifications, emails, or instant messaging records.
[0041] Step 102: Perform semantic parsing on the natural language description text to extract a set of candidate indicator definition objects; The system can perform semantic analysis on the natural language description text obtained in the aforementioned embodiments to determine the candidate indicator definition object set. The candidate indicator definition object set is the set of all semantically valid candidate indicator definition combinations obtained during the semantic analysis phase, after the system extracts multiple candidate semantic elements from one or more preset semantic slots for the input natural language description text and performs preliminary assembly of these candidate semantic elements.
[0042] In some feasible implementations, during semantic parsing, the natural language description text can first be segmented to obtain corresponding terms. Then, synonym merging is performed on these terms to obtain corresponding target standard terms. Next, the terms undergo time expression standardization to obtain corresponding standard time segment representations. Based on the target standard terms and standard time segment representations, a standardized text corresponding to the natural language description text is constructed. Then, slot identification is performed on the standardized text, and multiple candidate semantic elements are extracted for each preset semantic slot. Based on these multiple candidate semantic elements, a set of candidate indicator definition objects is determined. The preset semantic slots include at least one of the following: indicator subject, statistical action, analysis dimension, time window, comparison benchmark, calculation mode, and unit.
[0043] Among them, candidate semantic elements can be the core semantic units required to constitute a complete business indicator definition, and each semantic unit corresponds to a specific dimension of the indicator definition.
[0044] It should be noted that, in this embodiment of the invention, multiple possible candidate results are extracted for each semantic dimension. Due to the inherent diversity and ambiguity of natural language, the same text may be interpreted as multiple reasonable indicator definitions. For example, in "month-on-month growth rate of air conditioner sales in various regions over the past 30 days," "sales volume" could be "sales volume" itself, or it could be "air conditioner sales volume" (limiting the product range); the comparison benchmark for "month-on-month" could be "the previous 30 days," or it could be "the previous long-term period"; the time granularity could be "daily" or "monthly." If the system only outputs a single result, it may miss other reasonable interpretations, leading to incomplete or inaccurate subsequent structured results. Therefore, by retaining multiple candidate semantic elements, the system provides a sufficient foundation of candidate information for subsequent conflict resolution steps. Optionally, the system can utilize a language model fine-tuned with domain corpus to perform semantic understanding of the input text. The language model can be based on sequence labeling or reading comprehension architectures of pre-trained language models such as BERT, RoBERTa, and ERNIE. After fine-tuning with business corpus from the enterprise indicator domain, it can identify the implicit indicator components in the text and their corresponding text fragments.
[0045] In practical implementation, the natural language description text can be preprocessed to obtain the corresponding standardized text. However, since the natural language description text input by business personnel often contains synonyms (such as "sales volume", "shipment volume" and "sales volume" referring to the same business concept) and diverse colloquial time expressions (such as "last 30 days", "last month", "last year's same period", etc.), directly performing semantic parsing on these raw texts would increase the complexity and uncertainty of semantic recognition.
[0046] In this embodiment of the invention, the natural language description text can first be segmented to obtain the corresponding terms. Then, a semantic mapping resource library is called to perform synonym merging on each term. The semantic mapping resource library includes the mapping relationship between standard words and at least one non-standard word. The first term that matches the first non-standard word in the semantic mapping resource library can be replaced with the first standard word to which the first non-standard word belongs. The terms that do not match the semantic mapping resource library are taken as second terms. The similarity between the second term and each non-standard word in the semantic mapping resource library is calculated. Finally, the second term is replaced with the second standard word to which the second non-standard word belongs with a similarity greater than or equal to a preset threshold.
[0047] During the word segmentation process, the system can first perform word segmentation on the natural language descriptive text, dividing the continuous Chinese text into independent word sequence. For example, for the input text "the month-on-month growth rate of air conditioner sales in various regions in the past 30 days", the system uses Chinese word segmentation tools (such as Jieba segmentation, HanLP, or word segmentation models based on conditional random fields) to segment it into a word sequence ["the past 30 days", "various", "regions", "air conditioners", "sales", "month-on-month growth rate"]. Among them, "month-on-month growth rate" can be further split into ["month-on-month", "growth rate"] or retained as a whole as a business term. The specific splitting strategy depends on the configuration of the business dictionary.
[0048] Furthermore, after obtaining the corresponding terms, the system can call the semantic mapping resource library to perform synonym merging processing on the terms. The semantic mapping resource library can be pre-built and persistently stored in the form of key-value pairs of "standard word → synonym set", for example: "sales volume" → {sales volume, shipment volume, total sales}, "year-on-year growth rate" → {year-on-year increase, growth compared to the same period last year, year-on-year}, "month-on-month growth rate" → {month-on-month increase, growth compared to the previous period, month-on-month}, etc. This invention does not limit this.
[0049] In its implementation, the semantic mapping resource library can be stored in various formats, such as configuration files, database tables, or graph databases, and supports business users in dynamically adding or adjusting synonym mapping relationships according to actual business scenarios. During the term matching process, the system can match the segmented terms with non-standard terms in the semantic mapping resource library: for terms that match the resource library (such as "sales volume" matching the standard term "sales volume"), the system directly replaces them with the corresponding standard term; for terms that do not match the resource library, the system calculates the similarity between the term and each non-standard term in the resource library (using edit distance algorithms or vector similarity calculation methods based on pre-trained models such as Word2Vec and BERT). When the similarity exceeds a preset threshold (such as similarity ≥ 0.85), the term is merged into the corresponding standard term.
[0050] For example, if a user inputs "shipment quantity", this term does not match exactly in the resource library, but the similarity with "shipment volume" is calculated to be 0.92 through vector similarity. Since "shipment volume" belongs to the synonym set of "sales volume", the system will classify "shipment quantity" into the standard term "sales volume", etc. This invention does not impose any restrictions on this.
[0051] Through the aforementioned word segmentation and synonym merging processes, the system can converge divergent expressions into unified standard terms, providing a consistent input basis for subsequent semantic parsing. Simultaneously, the system also standardizes time expressions in the text.
[0052] Furthermore, during preprocessing, the natural language description text can be subjected to corresponding time expression standardization processing. Optionally, if time expressions exist in the natural language description text, a preset time pattern library is used to perform regular expression matching on the time expressions, extracting at least one of the time window, time granularity, and offset direction information, and outputting the standard time segment representation corresponding to the time expression. If no time expressions exist in the natural language description text, the index type of the natural language description text is obtained, the time window corresponding to the index type is inferred, and the standard time segment representation corresponding to the time expression is output. Further, based on the results of the aforementioned synonym merging processing and time expression standardization processing, the system can obtain the standardized text corresponding to the natural language description text based on the first standard word and / or the second standard word, as well as the standard time segment representation.
[0053] In practical implementation, business users often use colloquial expressions such as "the last 30 days," "last month," "the same period last year," and "this quarter" to describe the time range of metrics. These expressions are diverse and imply different time offset logics, requiring conversion into a unified standard time segment representation. To address this, the system can utilize a time pattern library (such as a time recognition rule set built based on regular expressions, or integrate open-source time parsing tools such as SUTime and HeidelTime) to recognize and parse the time expressions in natural language description text to obtain the corresponding standard time segment representation.
[0054] The time pattern library includes pre-defined regular expression templates for various time expressions. For example, for the "last X days" pattern, the template is "last\d+days". After matching, the value X and the unit "days" are extracted, and the start and end dates are calculated based on the current system time. For the "last month" pattern, the template directly matches and calculates the first and last days of the previous month. For the "last year" pattern, after matching, the current date is extracted and one year is subtracted. For the "this quarter" pattern, after matching, the start and end months of the current quarter are calculated.
[0055] Furthermore, after a successful match, the system can output a standard time segment representation, including at least the time window (start date and end date), time granularity (day, week, month, quarter, year), and offset direction (current period, previous period, year-on-year, month-on-month, etc.). For example, "the last 30 days" is converted to {window start: 2026-06-28, window end: 2026-07-28, granularity: "day", offset: "current period"}; "the same period last year" is converted to {window start: 2025-04-01, window end: 2025-06-30, granularity: "quarter", offset: "-1 year"}, etc. This invention does not impose any limitations on this.
[0056] Furthermore, if no explicit time expression is matched in the natural language description text (i.e., all regular expression templates in the time pattern library fail to match), the system can infer a reasonable time window based on the indicator type. For example, "sales this month" implies a time window of "this month" with a granularity of "month"; "annual revenue" implies a time window of "this year" with a granularity of "year," and so on. Then, the system can make inferences based on a pre-configured "indicator type - default time window" mapping table, which can be pre-configured by the system administrator according to the enterprise's business rules; this invention does not impose any restrictions on this.
[0057] Finally, the system combines the standardized terms obtained from merging synonyms with the normalized time segments to generate standardized text, which is then used as input for subsequent semantic parsing steps. Through these preprocessing operations, the system can effectively reduce the impact of natural language input diversity and noise on subsequent semantic parsing, improving the accuracy and stability of the parsing.
[0058] After obtaining the standardized text, the system can extract corresponding candidate semantic elements from the standardized text through slot recognition. Semantic slots can include at least the indicator subject, statistical action, analysis dimension, time window, comparison benchmark, calculation mode, and unit. The indicator subject refers to the core business object being measured, such as "sales volume," "revenue," "number of faults," and "number of users." Statistical action refers to the aggregation or calculation method performed on the business object, such as "summation," "count," "average," "maximum value," and "minimum value." Analysis dimension refers to the angle from which the indicator is observed and analyzed, such as "region," "product line," "time," "channel," and "customer group." The time window refers to the time range covered by the indicator statistics, such as "last 30 days," "this month," and "this quarter." The comparison benchmark refers to the reference period used for comparative analysis, such as "previous 30 days," "same month last year," and "previous quarter," which usually appears in year-on-year and month-on-month indicators. The calculation mode refers to the logical operation type of the indicator, such as "month-on-month growth rate," "year-on-year growth rate," "conversion rate," "cumulative value," and "percentage." The unit refers to the measurement unit of the indicator value, such as "%," "yuan," "piece," and "person-times."
[0059] During the extraction of candidate semantic elements, the system can perform slot recognition on standardized text, extracting multiple candidate semantic elements for each preset semantic slot. Specifically, the system can input standardized text into a language model, which outputs the text fragment corresponding to each preset semantic slot and its conditional probability, with multiple candidate results for each slot instead of a single result.
[0060] For example, given the input text "month-on-month growth rate of air conditioner sales in various regions over the past 30 days", the model outputs "sales volume" (probability 0.72) and "air conditioner sales volume" (probability 0.28) for the "subject indicator" slot; "region" (probability 0.85) and "regional dimension" (probability 0.10) for the "analysis dimension" slot; "last 30 days" (probability 0.92) for the "time window" slot; "previous 30 days" (probability 0.65) and "previous equal-length period" (probability 0.25) for the "benchmark" slot; "month-on-month growth rate" (probability 0.80) and "month-on-month" (probability 0.15) for the "calculation mode" slot; and "%" (probability 0.90) for the "unit" slot, etc.
[0061] It should be noted that the probability values mentioned above are for illustrative purposes only, and the actual probability values depend on the specific content of the model training data and the input text. During slot recognition, the model can use a CRF (Conditional Random Field) layer to globally optimize the label sequence, ensuring that the output label sequence conforms to preset label transition constraints. For example, the "benchmark" slot usually appears after the "time window" slot; this constraint can be achieved through prohibited transition terms in the label transition matrix. After outputting the recognition results for each slot, the model also outputs the start and end positions (i.e., source position information) of the text fragment corresponding to each candidate result in the original input, facilitating subsequent steps for tracing the source and outputting differences.
[0062] Furthermore, in some feasible implementations, after extracting multiple candidate semantic elements, the system can also generate a corresponding semantic confidence score for each candidate semantic element. The semantic confidence score quantifies the credibility of each candidate semantic element and is one of the important bases for comprehensive scoring in subsequent conflict adjudication steps.
[0063] Optionally, the system can obtain the conditional probability output by the language model for each candidate semantic element as the first confidence level. This conditional probability reflects the model's acceptance of the current candidate result from a semantic perspective. Simultaneously, the system can also obtain the matching score generated by each candidate semantic element in the aforementioned preprocessing stage (synonym merging or temporal expression normalization) as the second confidence level. For example, in synonym merging, if a candidate term matches the semantic mapping resource library through exact matching, its matching score is 1.0; if merged through similarity calculation, its matching score is the calculated similarity value (e.g., 0.88). Matching scores from different sources reflect the reliability of the candidate term at the terminology normalization level; that is, candidates with exact matching obviously have higher credibility than candidates with fuzzy merging.
[0064] Furthermore, the system can normalize and fuse the first confidence score and the second confidence score to obtain the final semantic confidence score of each candidate semantic element. This normalization and fusion can be performed using a weighted average method, for example, semantic confidence score = α × first confidence score + β × second confidence score, where α and β are preset weight coefficients that can be dynamically adjusted according to the actual business scenario, for example, α = 0.7 and β = 0.3; or it can be performed using a product fusion method, for example, semantic confidence score = first confidence score × second confidence score. In addition, the fused semantic confidence score ranges from 0 to 1, with a higher value indicating a more reliable candidate semantic element.
[0065] For example, the model output probability for a candidate indicator, "sales volume," is 0.92, and its synonym matching score is 1.0. After fusion using a weighted average method (α=0.7, β=0.3), its semantic confidence is 0.92×0.7+1.0×0.3=0.944. Meanwhile, the model output probability for another candidate, "shipments," is 0.45, and its synonym matching score is 0.88, resulting in a semantic confidence of 0.45×0.7+0.88×0.3=0.579. By introducing semantic confidence, the system can assign differentiated weights to different candidate elements during subsequent conflict resolution, avoiding undue influence of low-confidence candidate elements on the resolution results.
[0066] Furthermore, after obtaining candidate semantic elements, the system can also combine and assemble these elements and perform legality filtering based on preset indicator specification constraints to generate a set of candidate indicator definition objects. It should be noted that the purpose of this process is to pre-emptively eliminate obviously invalid candidate combinations through business logic rules, thereby reducing the computational load of candidate conflict resolution and improving the efficiency of conflict resolution.
[0067] In some feasible implementations, the system can first obtain the slot type corresponding to the semantic slot of each candidate semantic element, then cross-combine the candidate semantic elements of different slot types to obtain a candidate combination set, then verify each candidate combination in the candidate combination set, remove the first candidate combination that does not meet the preset mandatory constraint conditions, retain the second candidate combination that meets all mandatory constraint conditions, and use the second candidate combination as a candidate indicator definition object set.
[0068] In its implementation, the system first obtains the slot type corresponding to the semantic slot to which each candidate semantic element belongs (i.e., whether the candidate element belongs to the indicator subject type, time window type, or calculation mode type, etc.). Then, it cross-combines candidate semantic elements of different slot types, that is, it arranges and combines each candidate value of the indicator subject with each candidate value of the time window, each candidate value of the comparison benchmark, and each candidate value of the calculation mode, etc., to obtain a candidate combination set. Next, the system performs a legality check on each candidate combination in the candidate combination set, based on preset mandatory constraints. These mandatory constraints can be a set of predefined business logic judgment rules persistently stored in a rule base. Each rule defines the minimum conditions that a specific type of indicator definition must meet. During the check, the system iterates through each mandatory constraint, checking each candidate combination one by one. If a candidate combination does not meet a mandatory constraint, it is immediately eliminated and no longer participates in subsequent checks. The system eliminates the first candidate combination that does not meet the mandatory constraints, retains the second candidate combination that meets all mandatory constraints, and uses the retained candidate combinations as the candidate indicator definition object set. By combining assembly and legality filtering, the system can quickly eliminate a large number of obviously illegal candidate combinations without relying on complex scoring calculations, effectively narrowing the search space for subsequent conflict resolution.
[0069] Optionally, the mandatory constraints specifically include at least one of the following: For comparative indicators, a benchmark must be included; that is, when the calculation mode of a candidate combination is a comparative indicator such as "month-on-month growth rate" or "year-on-year growth rate," the combination must simultaneously include a valid benchmark candidate. For example, "month-on-month" must be paired with a benchmark such as "the previous 30 days" or "the previous long-term period." If there is no benchmark, it is considered invalid. For ratio indicators, a numerator and denominator dependency constraint must be included; that is, when the main indicator in a candidate combination is "failure rate," "conversion rate," or "achievement rate," the constraint must be included. When using ratio-based indicators such as "failure rate" and "percentage," the combination must include dependency information for both the numerator and denominator. For example, "failure rate" must be able to resolve the dependency relationship between "number of failures" and "total number of devices." If either the numerator or denominator is missing, it is considered invalid. There is also a constraint regarding the compatibility of time windows and time granularity. That is, the time window in the candidate combination must be logically compatible with the time granularity. For example, "last 30 days" should preferentially correspond to daily granularity. If a candidate combination pairs "last 30 days" with "quarterly granularity," it is considered incompatible and will be eliminated. The comparison baseline length must be compared with the current period. The constraints include: consistent time window length, meaning the current period's time window in a comparative indicator should be comparable to the benchmark's time window. For example, "30-day month-on-month change" should match "the previous 30 days" instead of "the previous 7 days." Inconsistent lengths are considered invalid. The constraints also include: matching units with indicator types, meaning the units in candidate combinations should match the indicator type and calculation mode. For example, "growth rate" should preferentially match "%." If the unit for "growth rate" in a candidate combination is "yuan," the combination will be eliminated or downgraded during scoring. Furthermore, the constraints include: compatibility between indicator subjects and analysis dimensions, meaning the indicator subjects and analysis dimensions in candidate combinations should meet business compatibility requirements. For example, "region" as an analysis dimension and "sales" as an indicator subject are compatible in "regional sales," but "region" may not be compatible with "employee turnover rate." Finally, the constraints include: matching statistical actions with indicator subject types, meaning the statistical actions in candidate combinations should match the type of indicator subject. For example, using "average" as a statistical action for "average order value" is reasonable, and using "count" as a statistical action for "number of orders" is reasonable. The above constraints can be flexibly configured and expanded according to the specific business scenarios and data governance rules of the enterprise. Through the verification of each of the above mandatory constraints, the system can ensure that the candidate combinations entering the conflict resolution stage are legal and self-consistent at the basic business logic level.
[0070] Step 103: Decision-making is performed on the set of candidate indicator definition objects to determine the standard semantic elements of the target business indicator, and a structured specification object of the target business indicator is generated based on the standard semantic elements. Given a set of multiple candidate indicator definitions, the system can perform conflict resolution to determine the standard semantic elements of the target business indicator. Since each semantic slot may have multiple candidate values, the combinations of candidates from different slots will generate a large number of candidate combinations. For example, if there are two candidates for the indicator body, two for the analysis dimension, and two for the benchmark, theoretically there can be 2 × 1 × 2 × 1 × 2 × 1 × 1 = 8 candidate combinations. Among these combinations, some may be semantically inconsistent (e.g., "month-on-month growth rate" paired with a configuration lacking a benchmark) or logically invalid (e.g., "failure rate" lacking a dependency relationship between the numerator and denominator). Therefore, the purpose of conflict resolution is to select the most reasonable and complete set of semantic elements from these candidate indicator definitions as the standard semantic elements.
[0071] During the adjudication process, the system comprehensively considers multiple factors, including the semantic confidence of each candidate element, the structural integrity and business legitimacy of each candidate combination, and consistency with existing indicators in the historical indicator database. Ultimately, it selects the candidate combination with the highest score and designates it as the standard semantic element for the target business indicator. Subsequently, the system assembles this standard semantic element according to a pre-defined standardized object structure, generating a business indicator specification object with a unified data structure. This object includes at least the following fields: indicator subject, statistical action, analysis dimension, time window, comparison benchmark, calculation mode, output attributes, and dependencies. It also associates the original statement source information (such as original text content, source location, user identifier, etc.) for subsequent traceability and auditing.
[0072] In some feasible implementations, when the set of candidate indicator definition objects includes multiple candidate indicator definition objects, the system can perform conflict resolution through a comprehensive scoring mechanism. Here, a candidate indicator definition object can be a complete combination of indicator definitions composed of candidate semantic elements of different slot types, which has passed all mandatory constraint condition verifications.
[0073] In its implementation, the system can obtain the target scores of each candidate indicator definition object on multi-dimensional evaluation factors. Then, it performs weighted fusion of the target scores on each evaluation factor to obtain a comprehensive score for the candidate indicator definition object. Finally, it selects the candidate semantic element corresponding to the candidate indicator definition object with the highest comprehensive score as the standard semantic element of the target business indicator. The target scores on the multi-dimensional evaluation factors can include at least one of the following: semantic confidence score, constraint matching score, historical consistency score, unit adaptation score, time benchmark rationality score, information missing penalty value, caliber conflict penalty value, dimension compatibility score, and statistical action adaptation score. This invention does not impose any limitations on this.
[0074] The semantic confidence score can be derived from the semantic confidence scores generated for each candidate semantic element in step 102, specifically the average or weighted average of the semantic confidence scores of each slot candidate element in the candidate indicator definition object. The constraint matching score is calculated by statistically analyzing the proportion of non-mandatory constraint rules passed by the candidate indicator definition object to the total number of non-mandatory rules, with a value ranging from 0 to 1. The historical consistency score is obtained by calculating the structural similarity between the candidate indicator definition object and existing indicator specification objects in the preset indicator library, specifically using Jaccard similarity or vector cosine similarity methods, taking the highest similarity value as the score. The unit adaptation score is determined based on the preset "unit-indicator type matching matrix"; if the candidate unit is in the recommended unit list, it receives 1 point; otherwise, it receives 0 points. The time benchmark reasonableness score is calculated based on the ratio of the time window length to the comparison benchmark length; an ideal ratio of 1:1 receives 1 point, and the larger the deviation, the lower the score. Dimension compatibility score and statistical action adaptation score can be obtained by querying the preset "Dimension-Subject Compatibility Matrix" and "Action-Subject Adaptation Table". Compatibility / adaptation scores are 1 point, otherwise 0 points. The information missing penalty value is determined by the number of missing necessary slots in the statistical candidate indicator definition object (e.g., missing benchmark or missing unit). A fixed score (e.g., 0.1) is deducted for each missing slot. The caliber conflict penalty value is determined based on the caliber difference between the candidate indicator definition object and existing indicators in the preset indicator library. The specific calculation method will be explained in detail in the subsequent implementation section.
[0075] For the aforementioned target score, the system can weight and fuse the scores of each evaluation factor with their corresponding preset weight coefficients to calculate the comprehensive score of each candidate indicator definition object. A higher comprehensive score indicates a higher overall quality and better alignment with business expectations for the candidate indicator definition object. The system can then select the candidate semantic element corresponding to the candidate indicator definition object with the highest comprehensive score as the standard semantic element of the target business indicator.
[0076] Furthermore, during the calculation of the comprehensive score, the system can process positive evaluation factors and negative penalty factors separately to more accurately reflect the contribution direction of different evaluation factors to the comprehensive score. Optionally, the system can perform a weighted summation of the scores of the candidate indicator definition object on each positive evaluation factor and the corresponding weight coefficient to obtain a first score. Positive evaluation factors include at least one of semantic confidence score, constraint matching score, historical consistency score, unit adaptation score, time benchmark rationality score, and dimension compatibility score. Then, the information missing penalty value is multiplied by the corresponding preset weight coefficient to obtain a first penalty value, and the caliber conflict penalty value is multiplied by the corresponding preset weight coefficient to obtain a second penalty value. Finally, the first score is subtracted from the first penalty value and the second penalty value to obtain the comprehensive score of the candidate indicator definition object.
[0077] For example, the comprehensive score can be expressed as the following formula: Comprehensive Score = α × Semantic Confidence Score + β × Constraint Matching Score + γ × Historical Consistency Score + δ × Unit Fit Score + ε × Time Baseline Reasonableness Score λ×caliber conflict penalty value The penalty value for missing information is μ×, where α, β, γ, δ, ε, λ, and μ are preset weight parameters. Their specific values can be dynamically configured according to the enterprise's business scenario. For example, α=0.25, β=0.20, γ=0.15, δ=0.10, ε=0.10, λ=0.10, μ=0.10, and the sum of all weights is 1. By distinguishing between positive and negative evaluation factors, the system can more accurately reflect the actual impact of each dimension on the comprehensive score, avoiding the situation where simple weighted summation causes positive and negative factors to cancel each other out, thus masking the key defects of the candidate.
[0078] Furthermore, after completing the comprehensive scoring through the above process, if the difference between the comprehensive scores of multiple candidate indicator definition objects is less than a preset threshold, it indicates that the multiple candidate indicator definition objects are relatively similar in comprehensive quality, and the system cannot reliably distinguish the best one by means of the automatic scoring mechanism. In this case, the multiple candidate indicator definition objects can be marked as candidates to be confirmed, and the difference slot information for the candidates to be confirmed can be output.
[0079] The discrepancy slot information can include which semantic slots each candidate object has disagreements on, and the specific content of the disagreements. Examples include: "Comparison benchmark conflict: Candidate A's comparison benchmark is 'the previous 30 days,' while candidate B's comparison benchmark is 'the previous equal-length period'," "Unit conflict: Candidate A's unit is '%', while candidate B's unit is empty," and "Time window conflict: Candidate A's time window is '30 days, daily granularity', while candidate B's time window is 'January, monthly granularity'." Furthermore, the system can present the candidate list to be confirmed and the discrepancy slot information to users (such as data administrators or business approvers) through an interactive interface, allowing users to manually confirm or supplement additional business conditions based on the actual business situation. After receiving the user's confirmation selection or supplementary conditions, the system completes the final decision according to the user's instructions. By introducing a manual confirmation mechanism, the system can leverage the judgment of human business experts when automatic decision-making cannot reliably distinguish candidate objects, further improving the accuracy and business rationality of the decision results.
[0080] Step 104: Extract the core structural fields of the structured standard object, and compare the core structural fields of the structured standard object with the core structural fields of existing indicators in the preset indicator library to obtain the field comparison results; For the structured specification object generated by the aforementioned process, the system can extract the corresponding core structure fields from the structured specification object and compare them item by item with the core structure fields of existing indicators in the preset indicator library. Among them, the core structured fields can be a combination of key fields that can uniquely represent the calculation scope of the indicator, which is different from auxiliary descriptive means such as indicator names.
[0081] It's important to note that the core structure fields are used for comparison because metric names themselves are diverse. The same metric may be named differently across different business lines (e.g., "sales revenue" and "sales income" refer to the same concept), and different metrics may have similar or identical names (e.g., "year-on-year revenue" and "month-on-month revenue" differ by only one character but have completely different definitions). Therefore, structured comparison based on core structure fields can more accurately identify substantial duplication and conflict among metrics than simple text similarity comparison based on names.
[0082] In this embodiment of the invention, the system first reads the core field values of each data point in the structured specification object of the target business indicator (e.g., indicator subject = "sales volume", analysis dimension = "region", time window = "30 days", comparison benchmark = "previous 30 days", calculation mode = "month-on-month growth rate"). Then, it iterates through the existing indicator specification objects in the preset indicator library, extracts the corresponding core field values of each existing indicator one by one, and compares the target object with the corresponding fields of each existing object one by one to determine whether each field is consistent. The granularity of the comparison is precise matching at the field value level, rather than fuzzy similarity matching at the text level, ensuring that the comparison results have clear business meaning and interpretability.
[0083] In some feasible implementations, the core structure fields can include at least one of the following: indicator subject, analysis dimension, time window, comparison benchmark, and calculation mode. These fields together constitute the core calculation caliber of the indicator definition. After comparison, the system can output the corresponding field comparison results. Specifically, if the core structure fields of the structured specification object are all consistent with the core structure fields of an existing indicator in the preset indicator library (i.e., the indicator subject, analysis dimension, time window, comparison benchmark, and calculation mode are the same), the system outputs a field consistency result. This field consistency result indicates that the current target indicator and the existing indicator are completely equivalent in core calculation caliber, and they are essentially the same indicator.
[0084] If there is a situation where the core structural field of a structured standard object is consistent with the core structural field of an existing indicator in the preset indicator library, but there is inconsistency in the time window, comparison benchmark, or calculation mode, the system can output a caliber conflict result. This caliber conflict result indicates that although the current target indicator and the existing indicator measure the same business object (same subject) and are observed from the same perspective (same dimension), there are substantial differences in the calculation method (different time range, different comparison benchmark, or different calculation logic). The two cannot be regarded as the same indicator, and their coexistence in the indicator library will lead to caliber confusion.
[0085] If the core structure field of a structured specification object is inconsistent with the core structure field of an existing indicator in the preset indicator library, the system outputs a field-independent result. This field-independent result indicates that the current target indicator and the existing indicator measure different business objects, and there is no duplication or conflict between them.
[0086] Step 105: Determine the registration detection result of the target business indicator based on the field comparison result.
[0087] Based on the field comparison results obtained in the above embodiments, the system can determine the registration detection result of the target business indicator. The registration detection result can be a conclusive suggestion from the system on how the target business indicator should be processed, which directly determines whether the target business indicator can enter the candidate registration process.
[0088] In some feasible implementations, if the field comparison result is consistent, meaning that the core structure fields of the target business indicator are all identical to those of an existing indicator in the database, the system determines that the target business indicator is a synonymous duplicate indicator. In this case, the target business indicator and the existing indicator are completely equivalent in calculation, and there is no need for duplicate registration. The system returns the identification information of the existing indicator (such as indicator ID, indicator name, registration time, etc.) for users to reference or reuse.
[0089] If the field comparison result is a definition conflict, meaning that the target business indicator and an existing indicator in the library have the same indicator subject and analysis dimension but differ in time window, comparison benchmark, or calculation mode, the system determines that the target business indicator is a definition conflict indicator. In this case, there is a substantial definition difference between the target business indicator and the existing indicator, which cannot be simply merged or ignored. The system outputs a description of the differences for the definition conflict indicator, specifically describing the inconsistent fields and their specific value differences (e.g., "Comparison benchmark is inconsistent: the current indicator is 'last year', the existing indicator is 'previous quarter'"), and prompts the user to confirm whether it is necessary to create a new indicator, modify the definition of the current indicator to align with the existing indicator, or merge them into different versions of the same indicator.
[0090] If the field comparison result is irrelevant, meaning that the target business indicator is inconsistent with the indicator subject of all existing indicators, the system determines that the target business indicator is a new indicator and allows it to enter the subsequent registration process. At the same time, the system can store the structured standard object of the indicator as a new historical indicator in the preset indicator library for use in subsequent indicator comparisons.
[0091] Furthermore, the system can encapsulate and output structured specification objects and registration detection results into a structured data exchange format. This structured data exchange format can be JSON (JavaScript Object Notation). The encapsulated JSON object includes at least the following: suggested values for the indicator name (automatically generated based on the field values in the structured specification object, e.g., "Air Conditioner_Sales_Region_30-Day Month-on-Month Growth Rate"), standardized structure fields (completely outputting the values of each core field), candidate source information (recording the original natural language description text and the positions of text fragments identifying each candidate element), structured scoring results (recording the specific scores of each evaluation factor in the comprehensive score), and detection result descriptions (recording the type of registration detection results and detailed explanations of differences). This encapsulated data object can be directly accessed and used by enterprise indicator platforms, data governance platforms, or indicator approval systems for subsequent indicator registration approval processes, manual confirmation stages, or other governance processes, thereby achieving fully automated specification and detection from natural language input to standardized indicator definition.
[0092] Furthermore, the technical solutions of the embodiments of the present invention will be described by way of example in conjunction with the corresponding application scenarios.
[0093] Scenario 1: Identification of duplicate indicators with different names but identical definitions.
[0094] Suppose that a sales representative in the sales department inputs the natural language description text "month-on-month growth rate of air conditioner sales in various regions over the past 30 days" into the indicator management platform. The system preprocesses the text according to step 101 of the aforementioned embodiment, performing word segmentation and synonym merging. "Sales volume" is retained as the standard term, and "past 30 days" is standardized into a standard time segment {window: 30 days, granularity: day, offset: current period}, generating standardized text. In step 102, the system extracts multiple candidate semantic elements through slot identification. The candidate indicators include "sales volume" (confidence 0.94) and "air conditioner sales volume" (confidence 0.72); the time window is "30 days" (confidence 0.92); the benchmark candidates include "previous 30 days" (confidence 0.78) and "previous equal-length period" (confidence 0.55); the calculation mode is "month-on-month growth rate" (confidence 0.85); and the unit candidate is "%" (confidence 0.90). In step 103, the system cross-combines all candidate elements through assembly and performs legality filtering based on mandatory constraints ("month-on-month growth rate" must include a benchmark, so all combinations lacking a benchmark are eliminated). Then, through comprehensive scoring, the system selects the candidate combination with the highest score as the standard semantic element, generating a structured standardized object {Indicator Subject: "Sales Volume", Analysis Dimension: "Region", Time Window: "30 Days", Benchmark: "Previous 30 Days", Calculation Mode: "Month-on-Month Growth Rate", Unit: "%"}. In step 104, the system extracts the core structural fields of this structured standardized object and compares them item by item with the preset indicator library. It finds that an indicator already exists in the library, named "Month-on-Month Growth Rate of Air Conditioner Sales in Various Regions," with the structured object being {Indicator Subject: "Sales Volume", Analysis Dimension: "Region", Time Window: "30 Days", Benchmark: "Previous 30 Days", Calculation Mode: "Month-on-Month Growth Rate"}. Although the two indicators have completely different wording ("sales volume" and "sales amount" are synonyms, "last 30 days" and "last month" are synonyms, and "month-on-month growth rate" and "month-on-month increase" are synonyms), their core structural fields, namely the indicator subject ("sales volume" = "sales volume"), analysis dimension ("region" = "region"), time window ("30 days" = "30 days"), comparison benchmark ("previous 30 days" = "previous 30 days"), and calculation mode ("month-on-month growth rate" = "month-on-month growth rate"), are all identical. In step 105, the system outputs the registration detection result of "synonymous duplicate indicators" and returns the ID and name of the existing indicator, prompting the user that the indicator already exists and does not need to be registered again, effectively avoiding duplicate construction.
[0095] Scenario 2: Identification of conflicting indicators with highly similar names but different calculation methods.
[0096] Suppose a finance department employee inputs the natural language description text "quarterly revenue year-on-year" into the indicator management platform. After processing, the system generates a structured object as follows: {Indicator Subject: "Revenue", Analysis Dimension: Empty, Time Window: "Q1", Comparison Benchmark: "Last Year's Same Quarter", Calculation Mode: "Year-on-Year Growth Rate", Unit: "%"}. In step 104, the system compares this structured object with a preset indicator library and finds that the indicator "quarterly revenue quarter-on-quarter" already exists in the library, with its structured object as follows: {Indicator Subject: "Revenue", Analysis Dimension: Empty, Time Window: "Q1", Comparison Benchmark: "Previous Quarter", Calculation Mode: "Quarter-on-Quarter Growth Rate", Unit: "%"}. The two indicators have highly similar names (difference only between "Year-on-Year" and "Quarter-on-Quarter"), but their core structural fields are identical: the indicator subject is the same ("Revenue" = "Revenue"), the analysis dimension is the same (both are empty), and the time window is the same ("Q1" = "Q1"), but the comparison benchmark is different ("Last Year's Same Quarter" ≠ "Previous Quarter"), and the calculation mode is different ("Year-on-Year Growth Rate" ≠ "Quarter-on-Quarter Growth Rate"). In step 105, the system outputs the registration detection results for the "Indicator with Conflicting Definitions" and provides an explanation of the differences: "Inconsistent comparison benchmark: The current indicator is 'Last Year's Same Quarter,' while the existing indicator is 'Previous Quarter'; Inconsistent calculation mode: The current indicator is 'Year-on-Year Growth Rate,' while the existing indicator is 'Quarter-on-Quarter Growth Rate.'" The system prompts the user to confirm whether to create a new indicator, modify the current indicator definition to align with the existing indicator, or merge them into different versions of the same indicator. Through the above detection, the system effectively prevents indicator confusion and data inconsistency caused by similar names but different definitions.
[0097] It should be noted that the embodiments of the present invention include, but are not limited to, the examples described above. It is understood that those skilled in the art can make further settings according to actual needs under the guidance of the ideas in the embodiments of the present invention, and the present invention does not limit such settings.
[0098] In this embodiment of the invention, the natural language description text of the target business indicator is obtained, and then semantic parsing is performed on the natural language description text to extract a set of candidate indicator definition objects. Conflict adjudication is then performed on these candidate indicator definition object sets to determine standard semantic elements and generate structured specification objects. Through multi-dimensional semantic parsing and conflict adjudication mechanisms, the diverse and divergent natural language expressions are automatically converged into a unified and complete standard structured expression. This improves the completeness and accuracy of key computational elements in the indicator metadata, enhances the consistency of the caliber basis upon which downstream data development and report generation rely, and improves the efficiency of automated conversion of indicator metadata from natural language input to structured output. Simultaneously, by extracting the core structural fields of the structured specification objects and performing a deep comparison with the core structural fields of existing indicators in a preset indicator library to obtain field comparison results, the registration detection results are determined based on these comparison results. Thus, through a structured comparison mechanism at the core structural field level, the accuracy of deduplication and conflict identification in the indicator registration process is enhanced, improving the overall data governance quality of the enterprise indicator library and the credibility of indicator assets.
[0099] To enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the following examples are provided for illustrative purposes: As some examples, see Figure 2 The diagram illustrates the indicator data processing provided in this embodiment of the invention, which may include: Step S100: Business semantic input and standardized preprocessing The system receives natural language business metric descriptions input by users through an interactive interface, such as "month-on-month growth rate of air conditioner sales in various regions over the past 30 days," "year-on-year revenue growth rate in quarterly revenue," and "monthly after-sales failure rate." The preprocessing module first performs word segmentation on the input text to obtain a basic term sequence; secondly, it calls a general business thesaurus to map terms such as "sales volume," "sales volume," and "shipment volume," which may have different expressions, to a set of candidate standard terms; thirdly, it standardizes the time expressions, converting colloquial descriptions such as "past 30 days," "last month," "last year's period," and "this quarter" into standard time segment representations, including time windows, time granularity, and possible comparison benchmark prompts. This step outputs standardized text and its candidate semantic segments, providing a unified input for the subsequent generation of candidate semantic elements.
[0100] Step S200: Business Semantic Element Extraction. The candidate semantic element generation module uses a semantic recognition model fine-tuned from the business corpus to identify slots in the text based on standardized text. Unlike existing technologies that directly output a single extraction result, this invention outputs multiple candidate options and their confidence scores for each semantic slot. The semantic slot includes at least: indicator subject, statistical action, analysis dimension, time window, comparison benchmark, calculation mode, and unit. For example, for "month-on-month growth rate of air conditioner sales in various regions in the past 30 days", the system can output: indicator subject candidates are "sales volume" and "air conditioner sales volume"; dimension candidates are "region" and "regional dimension"; time window candidates are "past 30 days"; comparison benchmark candidates are "previous 30 days" and "previous longer period"; calculation mode candidates are "month-on-month" and "month-on-month growth rate"; and unit candidates are "%" or null. Each candidate option includes the source location, standardization identifier, and confidence score.
[0101] Step S300: Constraint Assembly of Candidate Semantic Elements The system pre-sets business indicator specification constraint rules to assemble multiple candidate semantic elements into candidate indicator definition objects. These constraint rules include at least calculation mode constraints, time constraints, dimension constraints, unit constraints, subject compatibility constraints, and comparison benchmark constraints.
[0102] Specifically, the system first generates candidate combinations based on the slot type of the candidate semantic elements, and then judges the legality of the candidate combinations according to the constraint rules, retaining only the candidate combinations that satisfy all mandatory constraints or meet the preset minimum legality conditions. Examples of the constraint rules are shown in Table 1 below:
[0103] Table 1 For example, when a candidate combination is identified as having "month-on-month" but no benchmark candidate exists, the system filters the combination directly according to rule R1; when the unit candidate corresponding to "growth rate" in a candidate combination is not a percentage unit, the system lowers the score of the combination according to rule R5, or automatically recommends "%" when the completion condition is met.
[0104] Step S400: Conflict resolution and generation of unique business indicator specification objects. For the set of legitimate candidate indicator definitions obtained in step S300, the system performs conflict resolution. During the resolution, the system comprehensively considers the following scoring factors: candidate confidence output by the semantic recognition model, completeness of constraint rule matching, consistency score with existing indicator definitions in the historical indicator library, unit adaptation score, time base reasonableness score, penalty value for conflicting definitions, and penalty value for missing information. The system comprehensively scores each candidate indicator definition and selects the object with the highest score as the final business indicator specification object.
[0105] In a preferred embodiment, the overall score of the candidates can be calculated using a weighted summation method, as illustrated below: Overall score = α × semantic recognition confidence score + β × constraint rule matching completeness score + γ × historical indicator consistency score + δ × unit adaptation score + ε × time base reasonableness score λ×caliber conflict penalty value μ× Information Missing Penalty Value Wherein, α, β, γ, δ, ε, λ, and μ are preset weight parameters that can be dynamically configured according to the enterprise's business scenario. Optionally, an example of the adjudication scoring factors can be shown in Table 2 below:
[0106] Table 2 In a preferred embodiment, the adjudication process may also employ the priority mechanism shown in Table 3 below:
[0107] Table 3 If the score difference between multiple candidates is lower than a preset threshold after comprehensive scoring, the system marks these multiple candidates as near-competitive candidates and returns conflict slot information, such as benchmark conflict, unit conflict, or dimension conflict, for manual confirmation or supplementation of business conditions.
[0108] The final generated business metric specification object should include at least: metric subject, statistical action, analysis dimension, time window, comparison benchmark, calculation mode, output attributes, dependencies, and original statement source information. This step allows different natural language expressions to be converged into a unified structural expression.
[0109] Step S500: Detection of duplicate and conflicting business indicator specification objects The system performs a structured comparison between the business indicator specification object generated in step S400 and the historical business indicator specification objects already stored in the enterprise indicator library. During the comparison, it not only compares name similarity but also focuses on whether the core structural fields are consistent, including the indicator subject, analysis dimension, time window, comparison benchmark, and calculation mode. If the core fields are the same but the names are different, it is determined to be a synonymous duplicate indicator; if the names are similar but the time window, comparison benchmark, or calculation mode differs, it is determined to be a conflicting indicator, and a description of the difference is output. Through this mechanism, the system can detect duplicate construction or conflicting definitions before indicator registration.
[0110] Step S600: Output and System Registration The output module encapsulates the final generated business indicator specification object and duplicate / conflict detection results into a standard data exchange format, such as a JSON object. The object content includes at least the suggested value for the indicator name, standardized structure fields, candidate source information, structured scoring results, and a description of the detection results. This object can be directly accessed by enterprise indicator platforms, data governance platforms, or indicator approval systems for subsequent indicator registration, manual confirmation, indicator approval, or other governance processes. Through these steps, an automated specification process is achieved, from natural language descriptions of business indicators to the generation of unique business indicator specification objects.
[0111] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0112] Reference Figure 3 The diagram illustrates a structural block diagram of a data processing device for indicator metadata provided in an embodiment of the present invention, which may specifically include the following modules: The description text acquisition module 301 is used to acquire natural language description text of the target business metrics; Semantic parsing module 302 is used to perform semantic parsing on the natural language description text and extract a set of candidate indicator definition objects; The conflict resolution module 303 is used to resolve conflicts in the candidate indicator definition object set, determine the standard semantic elements of the target business indicator, and generate a structured specification object of the target business indicator based on the standard semantic elements. The structured comparison module 304 is used to extract the core structure fields of the structured specification object and compare the core structure fields of the structured specification object with the core structure fields of existing indicators in the preset indicator library to obtain the field comparison results. The registration detection module 305 is used to determine the registration detection result of the target business indicator based on the field comparison result.
[0113] In some feasible implementations, the semantic parsing module 302 is specifically used for: The natural language description text is segmented to obtain the corresponding terms; The terms are subjected to synonym merging to obtain the corresponding target standard terms, and the terms are subjected to time expression standardization to obtain the corresponding standard time segment representation. Based on the target standard words and the standard time segment representation, a standardized text corresponding to the natural language description text is constructed; The standardized text is subjected to slot identification, and multiple candidate semantic elements are extracted for each preset semantic slot. A set of candidate index definition objects is determined based on the multiple candidate semantic elements. The preset semantic slots include at least one of the following: indicator subject, statistical action, analysis dimension, time window, comparison benchmark, calculation mode, and unit.
[0114] In some feasible implementations, the semantic parsing module 302 is specifically used for: The natural language description text is segmented to obtain the corresponding terms; Call the semantic mapping resource library, which includes mapping relationships between standard words and at least one non-standard word; Replace the first term in the term that matches the first non-standard word in the semantic mapping resource library with the first standard word to which the first non-standard word belongs; The term that does not match the semantic mapping resource library is taken as the second term, and the similarity between the second term and each non-standard term in the semantic mapping resource library is calculated. Replace the second term with a second standard term belonging to a second non-standard term whose similarity is greater than or equal to a preset threshold.
[0115] In some feasible implementations, the semantic parsing module 302 is specifically used for: If the natural language description text contains time expressions, then a preset time pattern library is used to perform regular expression matching on the time expressions to extract at least one of time window, time granularity and offset direction information, and output the standard time segment representation corresponding to the time expressions; If there is no time expression in the natural language description text, then the index type of the natural language description text is obtained, the time window corresponding to the index type is inferred, and the standard time segment representation corresponding to the time expression is output.
[0116] In some feasible implementations, the semantic parsing module 302 is specifically used for: Based on the first standard term and / or the second standard term, and the standard time segment representation, the standardized text corresponding to the natural language description text is obtained.
[0117] In some feasible implementations, the semantic parsing module 302 is specifically used for: Obtain the slot type corresponding to the semantic slot to which each of the candidate semantic elements belongs; Candidate semantic elements of different slot types are cross-combined to obtain a candidate combination set; Each candidate combination in the candidate combination set is verified, the first candidate combination that does not meet the preset mandatory constraint conditions is eliminated, and the second candidate combination that meets all the mandatory constraint conditions is retained. The second candidate combination is used as the set of candidate indicator definition objects.
[0118] In some feasible implementations, the mandatory constraint conditions include one or more of the following: Comparative indicators must include constraints on the benchmark being compared to; Ratio-type indices must contain constraints that depend on the numerator and denominator; Constraints that ensure compatibility between time windows and time granularity; The constraint that the baseline length is consistent with the current period's time window length; Constraints on matching units with indicator types; Constraints on the compatibility of the indicator subject and the analysis dimension; Constraints on matching statistical actions with the type of indicator subject.
[0119] In some feasible implementations, the candidate indicator definition object set includes candidate indicator definition objects, and the conflict resolution module 303 is specifically used for: Obtain the target scores of each candidate indicator definition object on the multi-dimensional evaluation factors; The target scores on each of the evaluation factors are weighted and fused to obtain the comprehensive score of the candidate indicator definition object, and the candidate semantic element corresponding to the candidate indicator definition object with the highest comprehensive score is selected as the standard semantic element of the target business indicator.
[0120] In some feasible implementations, the target scores on the multi-dimensional scoring factors include at least one of the following: semantic confidence score, constraint matching score, historical consistency score, unit adaptation score, time benchmark rationality score, information missing penalty value, caliber conflict penalty value, dimension compatibility score, and statistical action adaptation score.
[0121] In some feasible implementations, the conflict resolution module 303 is specifically used for: The candidate indicator definition object is weighted and summed on each positive evaluation factor with the corresponding weight coefficient to obtain the first score. The positive evaluation factor includes at least one of the semantic confidence score, the constraint matching score, the historical consistency score, the unit adaptation score, the time benchmark rationality score, and the dimension compatibility score. The first penalty value is obtained by multiplying the information loss penalty value by the corresponding preset weight coefficient; The second penalty value is obtained by multiplying the caliber conflict penalty value by the corresponding preset weight coefficient; Subtracting the first penalty value and the second penalty value from the first score yields the comprehensive score of the candidate indicator definition object.
[0122] In some feasible implementations, the conflict resolution module 303 is further used for: If the difference between the comprehensive scores of multiple candidate indicator definition objects is less than a preset threshold, the multiple candidate indicator definition objects are marked as candidates to be confirmed, and the difference slot information for the candidates to be confirmed is output.
[0123] In some feasible implementations, the core structure fields include at least one of the following: indicator subject, analysis dimension, time window, comparison benchmark, and calculation mode. The structured comparison module 304 is specifically used for: If the core structure fields of the structured specification object are consistent with the core structure fields of existing indicators in the preset indicator library, then output the field consistency result for the structured specification object; If the core structural fields of the structured standard object are consistent with the core structural fields of existing indicators in the preset indicator library in terms of the indicator subject and the analysis dimension, but inconsistent in terms of the time window, the comparison benchmark, or the calculation mode, then output the caliber conflict result for the structured standard object. If the core structure field of the structured specification object is inconsistent with the core structure field of an existing indicator in the preset indicator library, then a field-independent result for the structured specification object will be output.
[0124] In some feasible implementations, the registration detection module 305 is specifically used for: If the field comparison result is consistent with the field, then the target business indicator is determined to be a synonymous duplicate indicator; If the field comparison result is the result of the caliber conflict, then the target business indicator is determined to be a caliber conflict indicator, and a description of the differences for the caliber conflict indicator is output. If the field comparison result is irrelevant to the field, then the target business indicator is determined to be a new indicator.
[0125] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0126] In addition, this invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the various processes of the data processing method embodiment of the above-mentioned index metadata and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0127] This invention also provides a readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes of the data processing method embodiment for the aforementioned indicator metadata, achieving the same technical effect. To avoid repetition, it will not be described again here. The readable storage medium may be, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0128] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0129] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, EEPROM, Flash, and eMMC, etc.) containing computer-usable program code.
[0130] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0131] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0133] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0134] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0135] The above provides a detailed description of a data processing method and a data processing device for indicator metadata provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A data processing method for indicator metadata, characterized in that, include: Obtain natural language descriptions of target business metrics; Semantic parsing is performed on the natural language description text to extract a set of candidate indicator definition objects; Conflict resolution is performed on the candidate indicator definition object set to determine the standard semantic elements of the target business indicator, and a structured specification object of the target business indicator is generated based on the standard semantic elements; Extract the core structural fields of the structured specification object, and compare the core structural fields of the structured specification object with the core structural fields of existing indicators in the preset indicator library to obtain the field comparison results; Based on the field comparison results, the registration detection results of the target business indicator are determined.
2. The method according to claim 1, characterized in that, The step of semantically parsing the natural language description text and extracting a set of candidate indicator definition objects includes: The natural language description text is segmented to obtain the corresponding terms; The terms are subjected to synonym merging to obtain the corresponding target standard terms, and the terms are subjected to time expression standardization to obtain the corresponding standard time segment representation. Based on the target standard words and the standard time segment representation, a standardized text corresponding to the natural language description text is constructed; The standardized text is subjected to slot identification, and multiple candidate semantic elements are extracted for each preset semantic slot. A set of candidate index definition objects is determined based on the multiple candidate semantic elements. The preset semantic slots include at least one of the following: indicator subject, statistical action, analysis dimension, time window, comparison benchmark, calculation mode, and unit.
3. The method according to claim 1, characterized in that, The process of merging synonyms for the terms to obtain the corresponding target standard terms includes: The natural language description text is segmented to obtain the corresponding terms; Call the semantic mapping resource library, which includes mapping relationships between standard words and at least one non-standard word; Replace the first term in the term that matches the first non-standard word in the semantic mapping resource library with the first standard word to which the first non-standard word belongs; The term that does not match the semantic mapping resource library is taken as the second term, and the similarity between the second term and each non-standard term in the semantic mapping resource library is calculated. Replace the second term with a second standard term belonging to a second non-standard term whose similarity is greater than or equal to a preset threshold.
4. The method according to claim 2, characterized in that, The step of performing time expression standardization processing on the term to obtain the corresponding standard time segment representation includes: If the natural language description text contains time expressions, then a preset time pattern library is used to perform regular expression matching on the time expressions to extract at least one of time window, time granularity and offset direction information, and output the standard time segment representation corresponding to the time expressions; If there is no time expression in the natural language description text, then the index type of the natural language description text is obtained, the time window corresponding to the index type is inferred, and the standard time segment representation corresponding to the time expression is output.
5. The method according to claim 3, characterized in that, The process of constructing standardized text corresponding to the natural language description text based on the target standard words and the standard time segment representation includes: Based on the first standard term and / or the second standard term, and the standard time segment representation, the standardized text corresponding to the natural language description text is obtained.
6. The method according to claim 2, characterized in that, The step of determining the candidate index definition object set based on multiple candidate semantic elements includes: Obtain the slot type corresponding to the semantic slot to which each of the candidate semantic elements belongs; Candidate semantic elements of different slot types are cross-combined to obtain a candidate combination set; Each candidate combination in the candidate combination set is verified, the first candidate combination that does not meet the preset mandatory constraint conditions is eliminated, and the second candidate combination that meets all the mandatory constraint conditions is retained. The second candidate combination is used as the set of candidate indicator definition objects.
7. The method according to claim 6, characterized in that, The mandatory constraint conditions include one or more of the following: Comparative indicators must include constraints on the benchmark being compared to; Ratio-type indices must contain constraints that depend on the numerator and denominator; Constraints that ensure compatibility between time windows and time granularity; The constraint that the baseline length is consistent with the current period's time window length; Constraints on matching units with indicator types; Constraints on the compatibility of the indicator subject and the analysis dimension; Constraints on matching statistical actions with the type of indicator subject.
8. The method according to claim 6, characterized in that, The candidate indicator definition object set includes candidate indicator definition objects. The conflict resolution process for the candidate indicator definition object set to determine the standard semantic elements of the target business indicator includes: Obtain the target scores of each candidate indicator definition object on the multi-dimensional evaluation factors; The target scores on each of the evaluation factors are weighted and fused to obtain the comprehensive score of the candidate indicator definition object, and the candidate semantic element corresponding to the candidate indicator definition object with the highest comprehensive score is selected as the standard semantic element of the target business indicator.
9. The method according to claim 8, characterized in that, The target scores on the multi-dimensional scoring factors include at least one of the following: semantic confidence score, constraint matching score, historical consistency score, unit adaptation score, time base reasonableness score, information missing penalty value, caliber conflict penalty value, dimension compatibility score, and statistical action adaptation score.
10. The method according to claim 9, characterized in that, The step of weighting and fusing the target scores on each of the evaluation factors to obtain the comprehensive score of the candidate index definition object includes: The candidate indicator definition object is weighted and summed on each positive evaluation factor with the corresponding weight coefficient to obtain the first score. The positive evaluation factor includes at least one of the semantic confidence score, the constraint matching score, the historical consistency score, the unit adaptation score, the time benchmark rationality score, and the dimension compatibility score. The first penalty value is obtained by multiplying the information loss penalty value by the corresponding preset weight coefficient; The second penalty value is obtained by multiplying the caliber conflict penalty value by the corresponding preset weight coefficient; Subtracting the first penalty value and the second penalty value from the first score yields the comprehensive score of the candidate indicator definition object.
11. The method according to claim 8, characterized in that, The step of resolving conflicts in the candidate indicator definition object set and determining the standard semantic elements of the target business indicator further includes: If the difference between the comprehensive scores of multiple candidate indicator definition objects is less than a preset threshold, the multiple candidate indicator definition objects are marked as candidates to be confirmed, and the difference slot information for the candidates to be confirmed is output.
12. The method according to claim 1, characterized in that, The core structure fields include at least one of the following: indicator subject, analysis dimension, time window, comparison benchmark, and calculation mode. The process of extracting the core structure fields of the structured standard object and comparing them with the core structure fields of existing indicators in a preset indicator library to obtain field comparison results includes: If the core structure fields of the structured specification object are consistent with the core structure fields of existing indicators in the preset indicator library, then output the field consistency result for the structured specification object; If the core structural fields of the structured standard object are consistent with the core structural fields of existing indicators in the preset indicator library in terms of the indicator subject and the analysis dimension, but inconsistent in terms of the time window, the comparison benchmark, or the calculation mode, then output the caliber conflict result for the structured standard object. If the core structure field of the structured specification object is inconsistent with the core structure field of an existing indicator in the preset indicator library, then a field-independent result for the structured specification object will be output.
13. The method according to claim 12, characterized in that, The step of determining the registration detection result of the target business indicator based on the field comparison result includes: If the field comparison result is consistent with the field, then the target business indicator is determined to be a synonymous duplicate indicator; If the field comparison result is the result of the caliber conflict, then the target business indicator is determined to be a caliber conflict indicator, and a description of the differences for the caliber conflict indicator is output. If the field comparison result is irrelevant to the field, then the target business indicator is determined to be a new indicator.
14. A data processing device for indicator metadata, characterized in that, include: The description text acquisition module is used to acquire natural language description text of the target business metrics; The semantic parsing module is used to perform semantic parsing on the natural language description text and extract a set of candidate indicator definition objects; The conflict resolution module is used to resolve conflicts in the set of candidate indicator definition objects, determine the standard semantic elements of the target business indicator, and generate a structured specification object of the target business indicator based on the standard semantic elements. The structured comparison module is used to extract the core structure fields of the structured specification object and compare the core structure fields of the structured specification object with the core structure fields of existing indicators in the preset indicator library to obtain the field comparison results. The registration detection module is used to determine the registration detection result of the target business indicator based on the field comparison results.
15. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-13.
16. A readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-13.
