Power distribution system power standard text processing method, device, equipment and medium

By constructing multiple indexes and natural language processing, the problem of low efficiency in power standard text processing is solved, the accurate evaluation and optimization of standard text revision process is achieved, and the safety and efficiency of the distribution system is improved.

CN119046400APending Publication Date: 2024-11-29STATE GRID LIAONING ELECTRIC POWER CO LTD +2

Patent Information

Application Number
CN202411235259.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Traditional technology cannot efficiently process large amounts of power standard texts, accurately evaluate the similarity and correlation between texts, resulting in low efficiency in standard text revision, integration and classification processes, easy to miss important information or generate redundancy, affecting the safety of power distribution systems and efficiency.

Method used

By constructing vertical multiple indexes and horizontal multiple indexes, the characteristic information of power standard text is extracted, and the text similarity is calculated using natural language processing and multiple similarity calculation algorithms to form a comprehensive similarity set, setting a similarity threshold to filter and process text. Optimize the revision and integration process of standard text.

Benefits of technology

Improve the efficiency of power standard text processing, accurately evaluate similarity and relevance, identify standard texts that need to be modified or outdated, reduce manual intervention, reduce omissions and redundancy, and enhance the safety and efficiency of power distribution systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046400A_ABST
    Figure CN119046400A_ABST
Patent Text Reader

Abstract

The invention discloses a power distribution system power standard text processing method and device, equipment and a medium. The method comprises the following steps: extracting feature information of an initial power standard text; on the basis of the extracted feature information, longitudinal multiple indexes and transverse multiple indexes are constructed, and the longitudinal multiple indexes and the transverse multiple indexes are verified mutually; calculating the similarity between the initial power standard text and the reference power standard text by using the constructed index, establishing a comprehensive similarity set, and performing weighted integration to form a final similarity evaluation result; and based on a similarity evaluation result, setting a similarity threshold, screening and identifying texts of which the similarity is not in a threshold range, and processing the power distribution system power standard text. Through the measures of constructing multiple indexes, accurately evaluating similarity and relevance, timely finding and processing problem texts and the like, intellectual property and copyright risks are reduced, the revision, integration and classification process of standard texts is optimized, and the safety and efficiency of a power distribution system are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power distribution systems, and more specifically, relates to a method, device, equipment and medium for processing power standard texts of power distribution systems. Background Art

[0002] Electric power standard texts are documents on technical regulations and technical management bases that must be followed in power construction and electric energy production, conversion, transmission, sales, and use. These texts are highly communicative, easy to edit and disseminate, and easy to store and manage, and are of great significance for improving the efficiency of power standard formulation and implementation.

[0003] As an important part of the power system, the standardization and standardized management of the distribution system is crucial. The power standard text provides unified specifications and guidance for the design, construction, operation and maintenance of the distribution system. However, with the integration of new energy technologies and the promotion of smart grids, the complexity and diversity of the distribution system are increasing, which requires the power standard text to quickly adapt to these changes and provide accurate and timely guidance. The similarity analysis of power standard texts has a wide range of application value in the power industry. When a certain power standard text is too similar to the current power standard text, it may involve intellectual property and copyright issues. When a certain power standard text is too similar to the current power standard text, there may be duplicate, conflicting or inconsistent content between the standards. Similarity analysis can help identify which parts are outdated or need to be revised. Traditional technology cannot efficiently process a large number of power standard texts and accurately evaluate the similarity and relevance between texts, resulting in a large workload and low efficiency in the revision, integration and classification of standard texts. It is easy to miss important information or generate redundancy, and it is difficult to adapt to the changing technology and standard requirements in the distribution system. This directly affects the effectiveness and practicality of electricity standard texts, which in turn has a negative impact on the safety and efficiency of distribution systems.

[0004] Therefore, how to optimize a method for processing power standard texts of a distribution system is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0005] In order to solve the deficiencies in the prior art, the present invention provides a method, device, electronic device and medium for processing power standard text of a distribution system, so as to solve the problem of how to optimize a distribution system standard system in the prior art.

[0006] A first aspect of the present invention provides a method for processing power standard text of a power distribution system, which is used to guide and standardize the design, construction, operation, maintenance and management of a power distribution system, and comprises the following steps:

[0007] Extracting characteristic information of the initial electric power standard text;

[0008] Based on the extracted feature information, vertical multiple indexes and horizontal multiple indexes are constructed, and the vertical multiple indexes and horizontal multiple indexes are mutually verified;

[0009] Using the constructed index, calculate the similarity between the initial power standard text and the reference power standard text, establish a comprehensive similarity set, perform weighted synthesis, and form the final similarity evaluation result;

[0010] Based on the similarity evaluation results, a similarity threshold is set to filter and identify texts whose similarity is not within the threshold range, and process the power standard texts of the distribution system.

[0011] Preferably, extracting characteristic information of the initial power standard text includes preprocessing the initial power standard text and extracting characteristic information from the preprocessed initial power standard text using a natural language processing method; wherein,

[0012] Preprocessing includes: converting the initial power standard text into plain text format, performing word segmentation, and dividing the text into words and phrases; according to the stop word list, deleting stop words from the word segmentation results;

[0013] The feature information includes a set of keywords and text semantic vectors, including identifiers, the sequence number and content of paragraphs, and the sequence number and content of sentences;

[0014] The natural language processing method is used to extract feature information including:

[0015] The word frequency statistics of the preprocessed initial power standard text are performed to record the number of times each word and phrase appears. Through the weighting of word frequency-inverse text frequency TF-IDF, a threshold N is set, and the top N words and phrases with the highest frequency of occurrence are selected as the keyword set;

[0016] A word embedding model is used to convert each word and phrase in the initial power standard text into a vector form, and all word vectors are aggregated to capture the text semantic vector.

[0017] Preferably, the constructing of the longitudinal multi-index comprises:

[0018] Compare the relationship between the paragraph-level identifier and the full-text-level content. If the full-text-level content contains the paragraph-level content, add the corresponding full-text-level identifier; in the full-text-level content containing the paragraph-level content, compare the relationship between the sentence-level content. If the paragraph-level content contains the sentence-level content, add the corresponding paragraph-level identifier; in the paragraph-level content containing the sentence-level content, compare the sentence-level content. If the sentence-level content contains, add the corresponding sentence-level identifier; based on the inverted index structure, construct a vertical multi-index with the added full-text-level identifier, paragraph-level identifier and sentence-level identifier;

[0019] The construction of the horizontal multi-index comprises:

[0020] Traverse the keyword set, determine the power standard text containing the keyword, add the keyword and the corresponding power standard text identifier to the inverted index, and build a keyword set index based on the inverted index structure;

[0021] The construction of the keyword set index includes comparing the relationship between the keyword and the full-text level content, and if the full-text level content contains the keyword, adding the corresponding full-text level identifier; in the full-text level content containing the keyword, comparing the relationship between the keyword and the paragraph level content, and if the paragraph level content contains the keyword, adding the corresponding paragraph level identifier; in the paragraph level content containing the keyword, comparing the relationship between the keyword and the sentence level content, and if the sentence level content contains the keyword, adding the corresponding sentence level identifier; based on the inverted index structure, constructing the keyword set index with the added full-text level identifier, paragraph level identifier and sentence level identifier;

[0022] Text semantic vector indexing converts each power standard text into a semantic vector, uses KD tree, ball tree and FAISS library to store and retrieve semantic similarities between texts, and captures deep semantic relationships between texts.

[0023] The vertical index verifies the horizontal index:

[0024] Use the full-text level, paragraph level, and sentence level content in the vertical index to verify the correctness of the keyword set index and text semantic vector index in the horizontal index; compare the keywords in the keyword set index with the different levels of content in the vertical index, check whether the keywords exist in the corresponding level content, and correct errors and omissions; compare the semantic vectors in the text semantic vector index with the different levels of content in the vertical index, check whether the semantic vectors match, and adjust the unmatched parts;

[0025] The horizontal index verifies the vertical index:

[0026] Use the keyword set and text semantic vectors in the horizontal index to verify the integrity of the content at each level in the vertical index. For each keyword, check its existence in different levels of the vertical index, and check that each keyword has the correct identifier association at the full-text, paragraph, and sentence levels. For each text semantic vector, check its matching at different levels of the vertical index, and check the association of each semantic vector at the full-text, paragraph, and sentence levels.

[0027] Preferably, the multiple similarity calculation algorithms include:

[0028] Cosine similarity is used to calculate the cosine value of the angle between two text vectors based on the vector space model;

[0029] Jaccard similarity is used to calculate the ratio of the intersection and union of two text sets;

[0030] The edit distance is used to calculate the minimum number of edit operations required to transform one text into another.

[0031] Preferably, the method of using a plurality of similarity calculation algorithms to calculate the similarity between the initial power standard text and the reference power standard text to establish a comprehensive similarity set includes:

[0032] Applying multiple similarity calculation algorithms to the initial power standard text and the reference power standard text respectively;

[0033] Extract the full text, paragraph structure features and sentence structure features of the initial power standard text and the reference power standard text, use the tree edit distance, statistical method and machine learning algorithm to calculate the structural similarity of the full text, paragraph and sentence respectively, and comprehensively weight them to determine the comprehensive structural similarity;

[0034] Extract the keyword sets of the reference power standard text and the initial power standard text, calculate the intersection and union, and obtain the Jaccard similarity coefficient; obtain the semantic vectors of the reference power standard text and the initial power standard text, calculate the dot product and length of the vectors, and obtain the cosine similarity; combine the Jaccard similarity coefficient and cosine similarity to determine the content similarity;

[0035] The comprehensive similarity is determined based on the structural similarity, the content similarity and the preset similarity weight, and a comprehensive similarity set is established.

[0036] Preferably, the weighted synthesis to form a final similarity evaluation result includes:

[0037] Perform weighted synthesis on the comprehensive similarity set and set the weight ω of each similarity algorithm i ;

[0038] The weighted comprehensive formula is as follows:

[0039]

[0040] Where:

[0041] ω i represents the weight of the ith algorithm, s i represents the similarity score of the ith algorithm, and n represents the total number of similarity calculation algorithms used;

[0042] Through weighted synthesis, the final similarity evaluation result between the initial power standard text and the reference power standard text is obtained, which is used to screen texts with similarity below the threshold and identify standard texts that need to be optimized.

[0043] Preferably, the similarity comparison includes:

[0044] The final similarity evaluation results of each initial power standard text are traversed and compared with a preset similarity threshold; the preset similarity threshold set includes a maximum similarity value and a minimum similarity value;

[0045] If the similarity is higher than the maximum value, it is marked as "text with too high similarity";

[0046] If the similarity is lower than the minimum value, it is marked as "text with too low similarity";

[0047] If the similarity is between the highest and lowest values, it is marked as "Similarity Normal Text".

[0048] The second aspect of the present invention provides a power distribution system power standard text processing device:

[0049] an acquisition unit configured to acquire an initial power standard text and determine text feature information based on the initial power standard text;

[0050] A construction unit, configured to construct a vertical multiple index and a horizontal multiple index based on the text feature information;

[0051] A processing unit configured to obtain a reference power standard text set, and determine a comprehensive similarity set based on the vertical multiple index, the horizontal multiple index, the initial power standard text, and the reference power standard text set;

[0052] The positioning unit is configured to determine a target to-be-processed text of the initial power standard text based on a preset similarity threshold set, the initial power standard text, the similarity set and the reference power standard text set.

[0053] A third aspect of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0054] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, which implements the steps of the above method when executed by a processor.

[0055] Compared with the prior art, the beneficial effects of the present invention include at least:

[0056] By constructing vertical and horizontal multi-indexes, a large amount of power standard texts can be efficiently processed. This index structure can quickly locate key information, greatly reducing the time for text comparison and analysis, thereby improving processing efficiency.

[0057] Using the comprehensive similarity set, the similarity and relevance between power standard texts can be accurately assessed, which helps to identify texts that are highly similar to the initial power standard texts, as well as to discover duplicate, conflicting or inconsistent content between standards.

[0058] By accurately evaluating similarities and relevance, timely identifying and processing outdated or revised parts of standard texts, the effectiveness and practicality of power standard texts are ensured, enabling them to better adapt to the ever-changing technical and standard requirements in the distribution system.

[0059] Through similarity analysis, the revision, integration and classification process of standard texts is optimized, the need for manual intervention is reduced, the workload is reduced, work efficiency is improved, and the possibility of missing important information or generating redundancy is reduced. By ensuring the effectiveness and practicality of power standard texts, the safety and efficiency of the distribution system are indirectly enhanced. Accurate and timely standard text guidance helps reduce operational errors and equipment failures, thereby ensuring the stable operation of the distribution system.

[0060] In summary, this solution improves processing efficiency, accurately evaluates similarities and relevance, enhances the effectiveness and practicality of standard texts, reduces intellectual property and copyright risks, optimizes the revision, integration and classification process of standard texts, and enhances the safety and efficiency of distribution systems by building multiple indexes, accurately evaluating similarities and relevance, and promptly discovering and processing problematic texts. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 This is an application scenario diagram of the method for processing power standard text of a power distribution system provided in accordance with an embodiment of the present invention;

[0062] Figure 2is a flow chart of a method for processing power standard text of a power distribution system provided in accordance with an embodiment of the present invention;

[0063] Figure 3 is a structural diagram of a power distribution system power standard text processing device provided in accordance with an embodiment of the present invention;

[0064] Figure 4 It is a structural diagram of an electronic device of a power distribution system power standard text processing device provided in accordance with an embodiment of the present invention. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in this application are only part of the embodiments of the present invention, not all of them. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the scope of protection of the present invention.

[0066] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0067] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0068] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0069] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0070] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0071] Figure 1 It is a schematic diagram of an application scenario of a method for processing power standard text of a power distribution system according to some embodiments of the present disclosure.

[0072] exist Figure 1In the application scenario, first, the computing device 101 can obtain the initial power standard text 102, and determine the text feature information 103 based on the initial power standard text 102. Secondly, the computing device 101 can construct a vertical multiple index 104 and a horizontal multiple index 105 based on the text feature information 103. After that, the computing device 101 can obtain a reference power standard text set 106, and determine a comprehensive similarity set 107 based on the vertical multiple index 104, the horizontal multiple index 105, the initial power standard text 102 and the reference power standard text set 106. Finally, the computing device 101 can determine the target text to be processed 108 of the initial power standard text based on the preset similarity threshold set 108, the initial power standard text 102, the similarity set 107 and the reference power standard text set 107.

[0073] It should be noted that the computing device 101 can be hardware or software. When the computing device 101 is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or it can be implemented as a single server or a single terminal device. When the computing device 101 is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, for example, or it can be implemented as a single software or software module. No specific limitation is made here.

[0074] It should be understood that Figure 1 The number of computing devices in the embodiment is only illustrative. Any number of computing devices may be provided according to implementation requirements.

[0075] Figure 2 The flowcharts of some embodiments of the method for processing power standard text of a power distribution system according to the present disclosure. Figure 2 The power distribution system power standard text processing method can be obtained by Figure 1 The computing device 101 executes. Figure 2 As shown, the power distribution system power standard text processing method includes:

[0076] Step S201, obtaining an initial power standard text, and determining text feature information based on the initial power standard text.

[0077] In a possible implementation, the text feature information includes a keyword set and a text semantic vector. Determining the text feature information based on the initial power standard text includes: performing word frequency statistics on the initial power standard text to determine the keyword set; and determining the text semantic vector based on the trained word embedding model and the initial power standard text.

[0078] Specifically, the word frequency of the text is counted, and the number of times each word or phrase appears is recorded. According to the word frequency sorting, the top N words or phrases with the highest frequency of appearance are selected as the keyword set, where N is a positive integer.

[0079] Furthermore, word frequency is weighted by methods such as TF-IDF to more accurately reflect the importance of vocabulary. Among them, TF-IDF is a commonly used weighting technique for information retrieval and data mining, and is often used to mine keywords in articles. It consists of two parts: Term Frequency (TF): refers to the number of times a word appears in a document. This number is usually normalized, that is, the term frequency is divided by the total number of words in the article. It is used to measure the importance of a word in a specific document. Inverse Document Frequency (IDF): is a measure of the general importance of a word. It indicates how rare a word is in all document sets. If a word appears in many documents, its IDF value will be lower, otherwise it will be higher. IDF helps adjust the TF value to better reflect the importance of a word in a specific document, rather than its prevalence in all documents.

[0080] Specifically, a word embedding model is used to convert each word or phrase in the text into a vector form. An overall text semantic vector is obtained by averaging, summing or other aggregation methods of all word vectors. Furthermore, more complex sentence or document embedding technologies, such as Doc2Vec, BERT, etc., are used to directly obtain the vector representation of the entire text. Among them, Doc2Vec is a document-to-vector model that can convert the entire document or text sequence into a vector representation of a fixed length. BERT is a bidirectional encoder representation model based on Transformer. It has learned rich language representations through pre-training on a large-scale text corpus and is adapted to various natural language processing tasks through fine-tuning.

[0081] Step S202: constructing a vertical multiple index and a horizontal multiple index based on the text feature information.

[0082] In a possible implementation, the vertical multi-index includes a full-text level index, a paragraph level index, and a sentence level index. Based on the text feature information, building the vertical multi-index includes:

[0083] Firstly, a full-text level identifier is determined based on the initial power standard text, and the initial power standard text and the full-text level identifier are imported into a full-text level inverted index to obtain a full-text level index.

[0084] Specifically, the full-text level identifier is an identifier used to uniquely identify the entire power standard text. It can be a combination of information such as the title, file number, and release date of the text to ensure that each power standard text has a unique full-text level identifier. Create an inverted index structure with the full-text level identifier as the key and the corresponding power standard text content as the value. Import the full-text level identifier and the corresponding power standard text content into the inverted index. In this way, the complete power standard text can be quickly located through the full-text level identifier.

[0085] Secondly, paragraph segmentation is performed based on the initial electricity standard text, at least one paragraph level identifier is determined based on the initial electricity standard text after paragraph segmentation, and the initial electricity standard text and the paragraph level identifier are imported into the paragraph level inverted index to obtain the paragraph level index.

[0086] Specifically, use appropriate text segmentation techniques, such as those based on line breaks, paragraph marks, etc., to segment the electric power standard text into multiple paragraphs. Ensure that each paragraph is an independent and complete unit of thought in the text. Assign a unique paragraph level identifier to each paragraph by combining the full-text level identifier and the position of the paragraph in the text, such as the paragraph sequence number. Create a new inverted index structure with the paragraph level identifier as the key and the corresponding paragraph content as the value. Importing the level identifier and paragraph content of each paragraph into the inverted index can quickly locate a specific paragraph in the electric power standard text.

[0087] Finally, sentence segmentation is performed based on the initial power standard text, at least one sentence level identifier is determined based on the initial power standard text after sentence segmentation, and the initial power standard text and the sentence level identifier are imported into the sentence level inverted index to obtain the sentence level index.

[0088] Specifically, the methods used to extract feature information include but are not limited to natural language processing methods, such as sentence boundary detection algorithms, to further segment each paragraph into independent sentences. Ensure that each sentence is a semantically complete unit. Assign a unique sentence-level identifier to each sentence. This can be generated by combining the paragraph-level identifier and the position of the sentence in the paragraph, such as the sentence sequence number. Create an inverted index structure with the sentence-level identifier as the key and the corresponding sentence content as the value. Import the level identifier and sentence content of each sentence into the inverted index. Through the sentence-level identifier, a specific sentence in the power standard text can be accurately located.

[0089] In a possible implementation, the horizontal multi-index includes a keyword set index and a text semantic vector index. Based on the text feature information, the horizontal multi-index is constructed, including:

[0090] First, the keyword set is imported into the keyword set inverted index to obtain the keyword set index.

[0091] Specifically, design an inverted index data structure, usually a mapping table such as a hash table or a dictionary, to store the association between keywords and documents containing these keywords. In this structure, each keyword will be mapped to a list containing the identifiers or references of all documents containing the keyword. Traverse each keyword in the keyword set. For each keyword, check whether it already exists in the inverted index. If the keyword does not exist in the index, add it as a new entry and initialize an empty list to store the documents containing the keyword. If the keyword already exists, skip this step. For each keyword, determine which documents contain it. In this scenario, since we are processing a single power standard text, the entire text can be regarded as a "document". Add the identifier or reference of the currently processed power standard text to the document associated with the keyword. In this way, each keyword will be associated with a list of documents containing it. Continue the above process until all keywords are processed and added to the inverted index. The resulting inverted index can quickly find the power standard text containing these keywords based on the keywords.

[0092] Secondly, the text semantic vector is imported into the text semantic vector inverted index to obtain the text semantic vector index.

[0093] Specifically, for text semantic vectors, a specially designed index structure is needed to support efficient similarity search, such as tree-based indexes (such as KD trees, ball trees) or approximate nearest neighbor search algorithms (such as Facebook's FAISS library). Unlike keyword indexing, text semantic vector indexing is not based on exact matching, but on the similarity between vectors. Use the selected index structure to store text semantic vectors so that the vector most similar to a given query vector can be quickly retrieved. Add the semantic vector of each power standard text to the index structure. Depending on the index structure used, insert the vector into the tree, build a hash table, or perform other related data structure operations. Optimize the index as needed, such as by building a hierarchical structure of the index to speed up the query process. Be ready to accept the query vector and perform a similarity search to find the most similar power standard text.

[0094] Step S203, obtaining a reference power standard text set, and determining a comprehensive similarity set based on the vertical multiple index, the horizontal multiple index, the initial power standard text and the reference power standard text set.

[0095] In a possible implementation, the reference power standard text set is a set of reference power standard texts belonging to the same standard category as the reference power standard text set, the reference power standard text set is obtained, and based on the vertical multi-index, the horizontal multi-index, the initial power standard text and the reference power standard text set, a comprehensive similarity set is determined, including:

[0096] Firstly, based on obtaining any reference power standard text in the reference power standard text set, the vertical multiple index and the initial power standard text, the structural similarity between the reference power standard text and the initial power standard text is determined.

[0097] Specifically, first, extract the full text structural features. For the reference power standard text and the initial power standard text, extract their full text structural features through the full text hierarchical index. These features may include text chapter division, title setting, appendix, preface and other structural elements. Compare the full text structural features of the two texts, such as the number of chapters, the hierarchy and arrangement of titles, etc. Rule-based methods or more complex algorithms (such as tree edit distance) can be used to measure the similarity of the full text structures of the two texts. Secondly, extract the paragraph structural features. Use the paragraph hierarchical index to extract the paragraph structural features of the reference power standard text and the initial power standard text. These features may include the length of the paragraph, the position of the paragraph in the text, the logical relationship between paragraphs, etc. Compare the paragraph structural features of the two texts, such as the similarity of the number of paragraphs, the distribution of paragraph lengths, the cohesion relationship between paragraphs, etc. Statistical methods or machine learning algorithms are used to evaluate the similarity of paragraph structures. After that, extract the sentence structural features. Through the sentence hierarchical index, extract the sentence structural features of the reference power standard text and the initial power standard text. These features may include the length of the sentence, the grammatical structure of the sentence, the use of keywords in the sentence, etc. Compare the sentence structure features of the two texts, such as the average sentence length, the proportion of complex sentences, the frequency of keywords in sentences, etc. Use natural language processing (NLP) technology to analyze the grammatical structure of the sentences and calculate the similarity of the sentence structures. Finally, according to the actual application needs, different weights are assigned to the full text structure similarity, paragraph structure similarity, and sentence structure similarity. The weight allocation can be determined according to the characteristics and importance of the power standard text. The structural similarity of each level (full text, paragraph, sentence) is weighted averaged according to the weight to obtain the comprehensive structural similarity. This indicator will reflect the degree of similarity between the reference power standard text and the initial power standard text in the overall structure, and obtain a structural similarity evaluation result that comprehensively considers the full text, paragraph, and sentence levels.

[0098] Secondly, based on obtaining any reference power standard text in the reference power standard text set, the horizontal multiple index and the initial power standard text, the content similarity between the reference power standard text and the initial power standard text is determined.

[0099] In practical applications, based on obtaining any reference power standard text in the reference power standard text set, the horizontal multiple index and the initial power standard text, determining the content similarity between the reference power standard text and the initial power standard text includes:

[0100] Based on obtaining any reference power standard text in the reference power standard text set, the keyword set index and the initial power standard text, the Jaccard similarity coefficient between the reference power standard text and the initial power standard text is determined.

[0101] Specifically, for the reference power standard text and the initial power standard text, their keyword sets are extracted respectively. These keywords can be quickly obtained through the previously constructed keyword set index. Calculate the intersection of the two keyword sets, that is, the number of keywords shared by the two texts. Calculate the union of the two keyword sets, that is, the number of all non-repeated keywords in the two texts. Divide the size of the intersection by the size of the union to obtain the Jaccard similarity coefficient. This coefficient measures the similarity between the two texts at the keyword level, and the value range is between 0 and 1.

[0102] Based on obtaining any reference power standard text in the reference power standard text set, the text semantic vector index and the initial power standard text, the cosine similarity between the reference power standard text and the initial power standard text is determined.

[0103] Specifically, the semantic vectors of the reference power standard text and the initial power standard text are obtained through the text semantic vector index. These vectors are points in a high-dimensional space and represent the semantic content of the text. Calculate the dot product of the two text semantic vectors, that is, the sum of the products of the values ​​in the corresponding dimensions. Calculate the lengths of the two text semantic vectors, that is, the modulus of the vectors. This usually involves squaring the values ​​of each dimension, summing them, and then taking the square root. Divide the dot product of the two vectors by the product of the lengths of the two vectors to obtain the cosine similarity. This value measures the angle between the two texts in the semantic space, and the value range is between -1 and 1. The closer the value is to 1, the more similar the semantics are.

[0104] Based on the Jaccard similarity coefficient and cosine similarity, the content similarity is determined.

[0105] Specifically, the calculated Jaccard similarity coefficient and cosine similarity are comprehensively considered by assigning different weights, for example, determining the weight distribution according to the actual application scenario or data characteristics. The Jaccard similarity coefficient and cosine similarity are combined into a comprehensive content similarity index using weighted average or other appropriate methods. This index will more comprehensively reflect the similarity between the two texts in terms of content and semantics.

[0106] Finally, the comprehensive similarity is determined based on the structural similarity, the content similarity and the preset similarity weight to obtain a comprehensive similarity set.

[0107] Specifically, the importance of structural similarity and content similarity in the comprehensive similarity evaluation is determined based on the actual application requirements and the characteristics of the power standard text. For example, if the matching degree of the text content is more important, the weight of the content similarity may be set higher; if the consistency of the structure is also critical, the weight of the structural similarity will be increased accordingly. Set the weight values ​​of the structural similarity and content similarity, and the sum of these two weight values ​​should be 1 (or 100%). For example, the weight of the content similarity can be set to 0.6 and the weight of the structural similarity can be set to 0.4. Multiply the content similarity and structural similarity by their respective weight values. Then add the two weighted similarity values ​​to obtain the comprehensive similarity. Calculation formula example:

[0108] Comprehensive similarity = (content similarity × content weight) + (structural similarity × structural weight)

[0109] If the content similarity is 0.8, the structural similarity is 0.7, the content weight is 0.6, and the structural weight is 0.4, then: Comprehensive similarity = (0.8×0.6)+(0.7×0.4)=0.48+0.28=0.76

[0110] For each text in the reference power standard text set, the above-mentioned comprehensive similarity calculation needs to be performed with the initial power standard text. The comprehensive similarity values ​​between each pair of texts (reference power standard text and initial power standard text) are sorted and stored. These comprehensive similarity values ​​constitute a comprehensive similarity set.

[0111] Perform weighted synthesis on the comprehensive similarity set, taking into account the applicability and importance of each algorithm in different scenarios;

[0112] Set the weight of each algorithm. The weight can be set based on the accuracy, scope of application or experience of the algorithm.

[0113] Perform weighted synthesis on the comprehensive similarity set and set the weight ω of each similarity algorithm i ;

[0114] The weighted comprehensive formula is as follows:

[0115]

[0116] Where:

[0117] ω i represents the weight of the ith algorithm, s i represents the similarity score of the ith algorithm, and n represents the total number of similarity calculation algorithms used;

[0118] Through weighted synthesis, the final similarity evaluation result between the initial power standard text and the reference power standard text is obtained, which is used to screen texts with similarity lower than the threshold and identify standard texts that need to be optimized.

[0119] In a possible implementation manner, before obtaining the initial power standard text and determining the text feature information based on the initial power standard text, the method further includes: performing word segmentation processing and stop word removal processing on the initial power standard text.

[0120] Specifically, according to actual needs and the language characteristics of the text, select a suitable word segmentation tool. For Chinese texts, Chinese word segmentation tools such as jieba, THULAC, HanLP, etc. can be selected. Import and initialize the selected word segmentation tool in the program to prepare for word segmentation of the text. Input the initial power standard text into the word segmentation tool for word segmentation operations. The word segmentation tool will split the continuous text into individual words or phrases. Obtain the word segmentation result output by the word segmentation tool, which is usually a list of words, and the word segmentation result can be further processed, such as removing overly short words and combining some phrases that should be connected together. Stop words refer to words that frequently appear in the text but contribute little to the meaning of the text, including common words such as "de", "shi", "zai", etc. Prepare a list or file containing these stop words as the stop word list. Read and load the stop word list in the program and store it in a suitable data structure, such as a set or list, for quick lookup. Traverse each word in the word segmentation result. For each word, check whether it is in the stop word list. If the word is in the stop word list, delete it from the word segmentation result or mark it as invalid.

[0121] Step S204, based on the preset similarity threshold set, the initial power standard text, the similarity set, and the reference power standard text set, determine the target text to be processed of the initial power standard text.

[0122] Specifically, when a certain power standard text is too similar to the current power standard text, it may involve intellectual property and copyright issues. When a certain power standard text is too similar to the current power standard text, there may be repeated, conflicting or inconsistent content between the standards. Similarity analysis can help identify which parts are outdated or need to be modified. The preset similarity threshold set includes a maximum similarity value and a minimum similarity value. An upper similarity limit is set to identify texts with a high similarity to the initial power standard text to avoid potential intellectual property and copyright issues. A lower similarity limit is set to identify texts with a low similarity to the initial power standard text to find possible repeated, conflicting or inconsistent content. The final similarity that has been calculated is obtained from the previous step. This set contains the similarity scores of each text in the initial power standard text and the reference power standard text set. At the same time, the corresponding reference power standard text set is obtained. The final similarity evaluation results of each initial power standard text are traversed with the reference power standard text set to synchronize the similarity set and the reference power standard text set. Compare the similarity with the threshold and classify and process. If a similarity score is higher than or equal to the preset maximum similarity value, the corresponding reference power standard text is marked as "too high similarity text". These texts may involve intellectual property and copyright issues and require further review. If a similarity score is lower than the preset minimum similarity value, the corresponding reference power standard text is marked as "too low similarity text". These texts may have duplicate, conflicting or inconsistent content with the initial power standard text and require further comparison and revision. For texts with similarity scores between the highest and lowest values, they can be regarded as texts that are neither too similar nor too different from the initial power standard text. These texts may not require special processing and are marked as "normal similarity text". The reference power standard texts marked as "too high similarity text" and "too low similarity text" are sorted into lists respectively. Output these two lists, namely the target texts to be processed. In this way, texts with too high or too low similarity to the initial power standard text can be effectively identified, thereby helping to deal with potential intellectual property issues and duplications, conflicts or inconsistencies in standard content.

[0123] The present disclosure relates to the technical field of power distribution system, and provides a method, device, electronic device and medium for processing power standard text of power distribution system. The method comprises: obtaining an initial power standard text, determining text feature information based on the initial power standard text; constructing a vertical multiple index and a horizontal multiple index based on the text feature information; obtaining a reference power standard text set, determining a comprehensive similarity set based on the vertical multiple index, the horizontal multiple index, the initial power standard text and the reference power standard text set; determining the target text to be processed of the initial power standard text based on a preset similarity threshold set, the initial power standard text, the similarity set and the reference power standard text set. The scheme efficiently processes a large amount of power standard text by constructing a vertical multiple index and a horizontal multiple index. This index structure can quickly locate key information, greatly reduce the time of text comparison and analysis, and thus improve processing efficiency. Using the comprehensive similarity set, the scheme can accurately evaluate the similarity and relevance between power standard texts. This helps to identify texts that are highly similar to the initial power standard text, and to discover repeated, conflicting or inconsistent content between standards. By accurately evaluating similarity and relevance, the scheme can timely discover and process outdated or modified standard text parts. This ensures the effectiveness and practicality of the power standard text, enabling it to better adapt to the changing technical and standard requirements in the distribution system. When it is found that a certain power standard text is too similar to the current power standard text, this solution can promptly remind relevant personnel to pay attention to intellectual property and copyright issues. Through automated and intelligent similarity analysis, this solution optimizes the revision, integration and classification process of standard texts, reduces the need for manual intervention, reduces workload, improves work efficiency, and reduces the possibility of missing important information or generating redundancy. By ensuring the effectiveness and practicality of power standard texts, this solution indirectly enhances the safety and efficiency of the distribution system. Accurate and timely standard text guidance helps reduce operational errors and equipment failures, thereby ensuring the stable operation of the distribution system. In summary, this solution improves processing efficiency, accurately evaluates similarity and relevance, and promptly discovers and handles problem texts, thereby reducing intellectual property and copyright risks, optimizing the revision, integration and classification process of standard texts, and enhancing the safety and efficiency of the distribution system.

[0124] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0125] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.

[0126] Figure 31 is a schematic diagram of the structure of some embodiments of the power distribution system power standard text processing device according to the present disclosure. Figure 3 As shown, the power distribution system power standard text processing device includes: an acquisition unit 301, configured to acquire an initial power standard text, and determine text feature information based on the initial power standard text. A construction unit 302, configured to construct a vertical multiple index and a horizontal multiple index based on the text feature information. A processing unit 303, configured to acquire a reference power standard text set, and determine a comprehensive similarity set based on the vertical multiple index, the horizontal multiple index, the initial power standard text, and the reference power standard text set; a positioning unit 304, configured to determine a target text to be processed of the initial power standard text based on a preset similarity threshold set, the initial power standard text, the similarity set, and the reference power standard text set.

[0127] In a possible implementation, the acquisition unit 301 of the power distribution system power standard text processing device is further configured to: perform word frequency statistics on the initial power standard text to determine a keyword set; and determine a text semantic vector based on a trained word embedding model and the initial power standard text.

[0128] In one possible implementation, the construction unit 302 of the power distribution system power standard text processing device is further configured to: determine a full-text level identifier based on the initial power standard text, import the initial power standard text and the full-text level identifier into the full-text level inverted index to obtain the full-text level index; perform paragraph segmentation processing based on the initial power standard text, determine at least one paragraph level identifier based on the initial power standard text after the paragraph segmentation processing, import the initial power standard text and the paragraph level identifier into the paragraph level inverted index to obtain the paragraph level index; perform sentence segmentation processing based on the initial power standard text, determine at least one sentence level identifier based on the initial power standard text after the sentence segmentation processing, import the initial power standard text and the sentence level identifier into the sentence level inverted index to obtain the sentence level index.

[0129] In a possible implementation, the construction unit 302 of the power distribution system power standard text processing device is further configured to: import the keyword set into the keyword set inverted index to obtain the keyword set index; import the text semantic vector into the text semantic vector inverted index to obtain the text semantic vector index.

[0130] In a possible implementation, the processing unit 303 of the power distribution system power standard text processing device is further configured to: determine the structural similarity between the reference power standard text and the initial power standard text based on obtaining any reference power standard text in the reference power standard text set, the vertical multiple indexes and the initial power standard text; determine the content similarity between the reference power standard text and the initial power standard text based on obtaining any reference power standard text in the reference power standard text set, the horizontal multiple indexes and the initial power standard text; determine the comprehensive similarity based on the structural similarity, the content similarity and the preset similarity weights to obtain a comprehensive similarity set.

[0131] In a possible implementation, the processing unit 303 of the power distribution system power standard text processing device is further configured to: determine the Jaccard similarity coefficient between the reference power standard text and the initial power standard text based on obtaining any reference power standard text in the reference power standard text set, the keyword set index and the initial power standard text; determine the cosine similarity between the reference power standard text and the initial power standard text based on obtaining any reference power standard text in the reference power standard text set, the text semantic vector index and the initial power standard text; determine the content similarity based on the Jaccard similarity coefficient and the cosine similarity.

[0132] In a possible implementation, the power distribution system power standard text processing device is further configured to: perform word segmentation processing and stop word removal processing on the initial power standard text.

[0133] Reference below Figure 4 , which shows an electronic device (eg, Figure 1 Schematic diagram of the structure of the computing device 101)400. Figure 4 The server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0134] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0135] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 4 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0136] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0137] The beneficial effects of the present invention include at least:

[0138] By constructing vertical multiple indexes and horizontal multiple indexes, a large number of power standard texts can be efficiently processed. This index structure can quickly locate key information, greatly reducing the time for text comparison and analysis, thereby improving processing efficiency. Using a comprehensive similarity set, this solution can accurately evaluate the similarity and relevance between power standard texts. This helps to identify texts that are highly similar to the initial power standard text, as well as to discover duplicate, conflicting or inconsistent content between standards. By accurately evaluating similarities and relevance, this solution can promptly discover and process parts of standard texts that are outdated or need to be revised. This ensures the effectiveness and practicality of power standard texts, enabling them to better adapt to the changing technical and standard requirements in new distribution systems. When it is found that a certain power standard text is too similar to the current power standard text, this solution can promptly remind relevant personnel to pay attention to intellectual property and copyright issues. Through automated and intelligent similarity analysis, this solution optimizes the revision, integration and classification process of standard texts, reduces the need for manual intervention, reduces workload, improves work efficiency, and reduces the possibility of missing important information or generating redundancy. By ensuring the effectiveness and practicality of power standard texts, this solution indirectly enhances the safety and efficiency of the distribution system. Accurate and timely guidance on standard texts helps reduce operational errors and equipment failures, thereby ensuring the stable operation of the distribution system. In summary, this solution improves processing efficiency, accurately evaluates similarity and relevance, improves the effectiveness and practicality of standard texts, reduces intellectual property and copyright risks, optimizes the revision and integration classification process of standard texts, and enhances the safety and efficiency of the distribution system by building multiple indexes, accurately evaluating similarity and relevance, and timely discovering and processing problem texts.

[0139] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0140] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an adhoc peer-to-peer network), as well as any currently known or future developed network.

[0141] The computer-readable medium may be included in the device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains the initial power standard text, determines the text feature information based on the initial power standard text; constructs a vertical multiple index and a horizontal multiple index based on the text feature information; obtains a reference power standard text set, determines a comprehensive similarity set based on the vertical multiple index, the horizontal multiple index, the initial power standard text and the reference power standard text set; determines the target text to be processed of the initial power standard text based on the preset similarity threshold set, the initial power standard text, the similarity set and the reference power standard text set.

[0142] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0143] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0144] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor including an acquisition unit, a construction unit, a processing unit, and a positioning unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the acquisition unit may also be described as a "unit for acquiring an initial power standard text and determining text feature information based on the initial power standard text".

[0145] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0146] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A method for processing power standard texts of distribution systems, used to guide and regulate the design, construction, operation, maintenance and management of distribution systems. It is characterized in that The following steps are involved: Extracting characteristic information of the initial power standard text; Based on the extracted feature information, vertical multiple indexes and horizontal multiple indexes are constructed, and the vertical multiple indexes and horizontal multiple indexes are mutually verified; Using the constructed index, calculate the similarity between the initial power standard text and the reference power standard text, establish a comprehensive similarity set, perform weighted synthesis, and form the final similarity evaluation result; Based on the similarity evaluation results, a similarity threshold is set to filter and identify texts whose similarity is not within the threshold range, and process the power standard texts of the distribution system.

2. A method for processing power standard text of a power distribution system according to claim 1, Features: Extracting characteristic information of the preliminary power standard text includes preprocessing the preliminary power standard text and extracting characteristic information from the preprocessed preliminary power standard text using a natural language processing method; wherein, Preprocessing includes: converting the initial power standard text into plain text format, performing word segmentation, and dividing the text into words and phrases; according to the stop word list, deleting stop words from the word segmentation results; The feature information includes a set of keywords and text semantic vectors, including identifiers, the sequence number and content of paragraphs, and the sequence number and content of sentences; The natural language processing method is used to extract feature information including: The word frequency statistics of the preprocessed initial power standard text are performed to record the number of times each word and phrase appears. Through the weighting of word frequency-inverse text frequency TF-IDF, a threshold N is set, and the top N words and phrases with the highest frequency of occurrence are selected as the keyword set; A word embedding model is used to convert each word and phrase in the initial power standard text into a vector form, and all word vectors are aggregated to capture the text semantic vector.

3. A method for processing power standard text of a power distribution system according to claim 2, Features: The construction of the longitudinal multi-index comprises: Compare the relationship between the paragraph-level identifier and the full-text-level content. If the full-text-level content contains the paragraph-level content, add the corresponding full-text-level identifier; in the full-text-level content containing the paragraph-level content, compare the relationship between the sentence-level content. If the paragraph-level content contains the sentence-level content, add the corresponding paragraph-level identifier; in the paragraph-level content containing the sentence-level content, compare the sentence-level content. If the sentence-level content contains, add the corresponding sentence-level identifier; based on the inverted index structure, construct a vertical multi-index with the added full-text-level identifier, paragraph-level identifier and sentence-level identifier; The construction of the horizontal multi-index comprises: Traverse the keyword set, determine the power standard text containing the keyword, add the keyword and the corresponding power standard text identifier to the inverted index, and build a keyword set index based on the inverted index structure; The construction of the keyword set index includes comparing the relationship between the keyword and the full-text level content, and if the full-text level content contains the keyword, adding the corresponding full-text level identifier; in the full-text level content containing the keyword, comparing the relationship between the keyword and the paragraph level content, and if the paragraph level content contains the keyword, adding the corresponding paragraph level identifier; in the paragraph level content containing the keyword, comparing the relationship between the keyword and the sentence level content, and if the sentence level content contains the keyword, adding the corresponding sentence level identifier; based on the inverted index structure, constructing the keyword set index with the added full-text level identifier, paragraph level identifier and sentence level identifier; Text semantic vector indexing converts each power standard text into a semantic vector, uses KD tree, ball tree and FAISS library to store and retrieve semantic similarities between texts, and captures deep semantic relationships between texts. The vertical index verifies the horizontal index: Use the full-text level, paragraph level, and sentence level content in the vertical index to verify the correctness of the keyword set index and text semantic vector index in the horizontal index; compare the keywords in the keyword set index with the different levels of content in the vertical index, check whether the keywords exist in the corresponding level content, and correct errors and omissions; compare the semantic vectors in the text semantic vector index with the different levels of content in the vertical index, check whether the semantic vectors match, and adjust the unmatched parts; The horizontal index verifies the vertical index: Use the keyword set and text semantic vectors in the horizontal index to verify the integrity of the content at each level in the vertical index. For each keyword, check its existence in different levels of the vertical index, and check that each keyword has the correct identifier association at the full-text, paragraph, and sentence levels. For each text semantic vector, check its matching at different levels of the vertical index, and check the association of each semantic vector at the full-text, paragraph, and sentence levels.

4. A method for processing power standard text of a power distribution system according to claim 1, Features: The multiple similarity calculation algorithms include: Cosine similarity is used to calculate the cosine value of the angle between two text vectors based on the vector space model; Jaccard similarity is used to calculate the ratio of the intersection and union of two text sets; The edit distance is used to calculate the minimum number of edit operations required to transform one text into another.

5. A method for processing power standard text of a power distribution system according to claim 1 or 4, Features: The method of using a plurality of similarity calculation algorithms to calculate the similarity between the initial power standard text and the reference power standard text and establishing a comprehensive similarity set includes: Applying multiple similarity calculation algorithms to the initial power standard text and the reference power standard text respectively; Extract the full text, paragraph structure features and sentence structure features of the initial power standard text and the reference power standard text, use the tree edit distance, statistical method and machine learning algorithm to calculate the structural similarity of the full text, paragraph and sentence respectively, and comprehensively weight them to determine the comprehensive structural similarity; Extract the keyword sets of the reference power standard text and the initial power standard text, calculate the intersection and union, and obtain the Jaccard similarity coefficient; obtain the semantic vectors of the reference power standard text and the initial power standard text, calculate the dot product and length of the vectors, and obtain the cosine similarity; combine the Jaccard similarity coefficient and cosine similarity to determine the content similarity; The comprehensive similarity is determined based on the structural similarity, the content similarity and the preset similarity weight, and a comprehensive similarity set is established.

6. A method for processing power standard text of a power distribution system according to claim 1, Features: The weighted synthesis is performed to form the final similarity evaluation result, including: Perform weighted synthesis on the comprehensive similarity set and set the weight ω of each similarity algorithm i ; The weighted comprehensive formula is as follows: Where: ω i represents the weight of the ith algorithm, s i represents the similarity score of the ith algorithm, and n represents the total number of similarity calculation algorithms used; Through weighted synthesis, the final similarity evaluation result between the initial power standard text and the reference power standard text is obtained, which is used to screen texts with similarity below the threshold and identify standard texts that need to be optimized.

7. A method for processing power standard text of a power distribution system according to claim 1, Features: The similarity comparison includes: The final similarity evaluation results of each initial power standard text are traversed and compared with a preset similarity threshold; the preset similarity threshold set includes a maximum similarity value and a minimum similarity value; If the similarity is higher than the maximum value, it is marked as "too high similarity text"; If the similarity is lower than the minimum value, it is marked as "text with too low similarity"; If the similarity is between the highest and lowest values, it is marked as "similarity normal text".

8. A power distribution system power standard text processing device, Features: an acquisition unit configured to acquire an initial power standard text and determine text feature information based on the initial power standard text; A construction unit, configured to construct a vertical multiple index and a horizontal multiple index based on the text feature information; A processing unit configured to obtain a reference power standard text set, and determine a comprehensive similarity set based on the vertical multiple index, the horizontal multiple index, the initial power standard text, and the reference power standard text set; The positioning unit is configured to determine a target to-be-processed text of the initial power standard text based on a preset similarity threshold set, the initial power standard text, the similarity set and the reference power standard text set.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Similar document searching method and device, electronic equipment and storage medium

    CN114756733A

  • Interactive text processing method and device, electronic equipment and storage medium

    CN117473034A

  • Document duplicate checking method based on hierarchical feature vector search

    CN117951256A

  • Method and device for constructing feature comparison library supporting semantic duplicate checking and novelty checking

    CN118245564A

  • Question and answer method and device based on keywords and semantic model and storage medium

    CN118520089A

Cited By

  • Feedback teaching evaluation method and system based on learning condition cloud data

    CN119398622A

  • Text information compression method and compression device for index distributed database

    CN121144271A