A summary generation method for power grid operation and maintenance text

Keyword vectorization and clustering of power grid operation and maintenance text are carried out through Word2Vec and K-Means algorithms, combined with weight calculation, to solve the problem of inaccurate and cumbersome summary generation of power grid operation and maintenance text, and achieve more accurate and concise summary generation. Reduces manual finishing costs.

CN117194657BActive Publication Date: 2024-09-03STATE GRID JIANGSU ELECTRIC POWER CO LTD NANJING POWER SUPPLY COMPANY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311048989.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2023-05-06
Filing Date
2023-08-21
Publication Date
2024-09-03
Estimated Expiration
2043-08-21

AI Technical Summary

Technical Problem

Summary generation of power grid operation and maintenance texts has problems such as inaccuracy and overly cumbersome content. In particular, due to the large number of proper nouns in the text, it is difficult for existing algorithms to generate accurate and concise summaries.

Method used

The Word2Vec algorithm is used for keyword vectorization processing, and the K-Means algorithm is used to cluster the keyword vectors. Combined with weight calculation and sentence similarity evaluation, a summary of the power grid operation and maintenance text is generated. Specific steps include preprocessing, vectorization, clustering, weight calculation and summary output to ensure the accuracy and simplicity of the summary.

Benefits of technology

Through this method, the summary content of power grid operation and maintenance texts can be selected more objectively and accurately, and a more accurate and concise summary can be generated, reducing the time and labor costs of manual sorting and summarization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure SMS_1
    Figure SMS_1
  • Figure SMS_2
    Figure SMS_2
  • Figure SMS_3
    Figure SMS_3
Patent Text Reader

Abstract

A summary generation method for power grid operation and maintenance texts relates to an archive storing power grid operation and maintenance texts in a known power grid system, and comprises the following steps: processing historical operation and maintenance texts in the archive, establishing a vector evaluation matrix, processing real-time operation and maintenance texts, and generating summaries of the real-time operation and maintenance texts. The summary generation method adopts a special power grid operation and maintenance text sentence importance evaluation method, that is, the keywords in a single sentence are used to perform similarity calculation with all clustered keywords in the power grid operation and maintenance texts, and the importance index of the single sentence is obtained, so that when generating the power grid operation and maintenance text summary, suitable sentences can be selected as summary contents more objectively and accurately, making the summary generation work of the power grid operation and maintenance text more accurate and concise.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention specifically relates to a method for generating a summary of a power grid operation and maintenance text, and belongs to the technical field of natural language processing. Background Art

[0002] Important operation and maintenance information data in the archive files of power grid companies are mainly stored in the form of Chinese text. Due to the huge volume of files in the archive files of power grid companies and the fact that power grid companies require that the summaries of operation and maintenance texts should be accurate and concise, manually organizing and summarizing such large-scale text data will consume a lot of manpower and time. Natural language processing technology came into being in this context. It relies on computer algorithms to analyze text data without consuming labor costs, automatically capture important information in the text and generate summaries of text files. There are many proper nouns in power grid operation and maintenance texts, which makes the existing text summary algorithms inaccurate or too complicated when applied to power grid operation and maintenance texts. Summary of the invention

[0003] The technical problem to be solved by the present invention is: how to make the summary generated by the power grid operation and maintenance text more accurate and concise.

[0004] The technical solution proposed in the present invention is: a method for generating a summary of a power grid operation and maintenance text, involving an archive storing power grid operation and maintenance texts in a known power grid system, comprising the following steps:

[0005] Step 1: Select all power grid operation and maintenance texts from the archive library for preprocessing to obtain all keywords of all power grid operation and maintenance texts, and collect all keywords to form a keyword set A;

[0006] Step 2: The vectorization calculation formula of the Word2Vec algorithm is shown in the following formula (1). All keywords in the power grid operation and maintenance text keyword set A are converted into keyword vectors, and all keyword vectors are collected to form the power grid operation and maintenance text keyword vector set L.

[0007]

[0008] In formula (1), T is the text length of the power grid operation and maintenance text, k represents the training window size, c is the context of the keyword to be converted into a vector form, and a i is the target word a i The word vector of i+c is the context word a i+c The word vector of p(a i+c |a i )=softmax(a i+c *a i), the softmax function is also called the normalized exponential function, which can present the results of multi-classification in the form of probability;

[0009] Step 3: Cluster the power grid operation and maintenance text keyword vector set L through the K-Means algorithm to form the power grid operation and maintenance text vector evaluation matrix T, as shown in the following formula (2):

[0010]

[0011] In formula (2), L1, L2, ..., L k are the keyword vector sequences formed by the aggregation of keyword vectors closest to the first, second, ..., kth cluster centers; l 1,1 , l 1,2 ,...,l 1,n are the first keyword vector, the second keyword vector, ..., and the last keyword vector in the first cluster center respectively; l 2,1 , l 2,2 ,...,l 2,n are the first keyword vector, the second keyword vector, ..., and the last keyword vector in the second cluster center respectively; l k,1 , l k,2 ,...,l k,n They are the first keyword vector, the second keyword vector, ..., and the last keyword vector in the kth cluster center respectively;

[0012] Step 4: By processing the real-time power grid operation and maintenance text for which summary generation is required, the keyword text matrix P of the real-time power grid operation and maintenance text is obtained, as shown in the following formula (3):

[0013]

[0014] In formula (3), P1, P2, ..., P m are the sequences formed by the aggregation of all keywords in the first sentence, the second sentence, ..., and the last sentence of the real-time power grid operation and maintenance text; p 1,1 、p 1,2 , ..., p 1,n They are the first keyword, the second keyword, ..., and the last keyword in the first sentence of the real-time power grid operation and maintenance text; p 2,1 、p 2,2 , ..., p 2,n They are the first keyword, the second keyword, ..., and the last keyword in the second sentence of the real-time power grid operation and maintenance text; p m,1 、p m,2 , ..., p m,nThey are the first keyword, the second keyword, ..., the last keyword in the last sentence of the real-time power grid operation and maintenance text;

[0015] The keyword text matrix P is vectorized by the Word2Vec algorithm to obtain a keyword vector matrix Q, as shown in the following formula (4):

[0016]

[0017] In formula (4), Q1, Q2, ..., Q m They are the sequences formed by the aggregation of word vectors of all keywords in the first sentence, the second sentence, ..., and the last sentence of the real-time power grid operation and maintenance text;

[0018] q 1,1 ,q 1,2 ,...,q 1,n They are the first keyword word vector, the second keyword word vector, ..., and the last keyword word vector in the first sentence of the real-time power grid operation and maintenance text; q 2,1 ,q 2,2 ,...,q 2,n They are the first keyword vector, the second keyword vector, ..., and the last keyword vector in the second sentence of the real-time power grid operation and maintenance book; q m,1 ,q m,2 ,...,q m,n They are the first keyword word vector, the second keyword word vector, ..., and the last keyword word vector in the last sentence of the real-time power grid operation and maintenance text;

[0019] Step 5: Obtain the first weight δ1 of the first cluster center in the power grid operation and maintenance text vector evaluation matrix T corresponding to all sentences in the real-time power grid operation and maintenance text by weight calculation, and arrange the values ​​of the first weight δ1 of each sentence from large to small to form the first cluster center output sequence X1, X1 = {x 1,1 、x 1,2 , ..., x 1,n}, where x 1,1 is the sentence with the largest first weight δ1, x 1,n It is the sentence with the smallest first weight δ1;

[0020] Step 6: Repeat step 5 to obtain the second weight δ2 of the second cluster center in the power grid operation and maintenance text vector evaluation matrix T corresponding to all sentences in the real-time power grid operation and maintenance text and the second cluster center output sequence X2, until the kth weight δ of the k cluster centers in the power grid operation and maintenance text vector evaluation matrix T corresponding to all sentences in the real-time power grid operation and maintenance text is obtained. k and the k-th cluster center output sequence X kFinally, all cluster center output sequences are collected to obtain the text summary output matrix X, as shown in the following formula (5):

[0021]

[0022] Step 7: According to the number of summary sentences n required by the power grid business personnel, the text summary output matrix X outputs n sentences to generate the power grid operation and maintenance text summary as a reference for the power grid business personnel.

[0023] A further improvement of the above technical solution is that the specific steps of weight calculation in step 5 are as follows:

[0024] Step 5.1: Calculate the similarity between the first keyword vector of the first sentence in the real-time power grid operation and maintenance text and all keyword vectors in L1 in the power grid operation and maintenance text vector evaluation matrix T by the following formula (6), and select the highest similarity value as the keyword weight value of the first keyword;

[0025]

[0026] Step 5.2: Repeat step 5.1 to obtain the keyword weight values ​​of all keywords in the first sentence of the thirteen power grid operation and maintenance texts, and add them up to form the first weight δ1 of the first sentence in the power grid operation and maintenance text;

[0027] Step 5.3: Repeat steps 5.1 to 5.2 to obtain the first weight δ1 of all sentences in the real-time power grid operation and maintenance text;

[0028] A further improvement of the above technical solution is that the specific output mechanism of the text summary output matrix X in step 7 is as follows:

[0029] If the number of summary sentences n required by the power grid business personnel is equal to the number of cluster centers k of the K-Means algorithm, then output x in sequence 1,1 、x 2,1 , …, x k,1 A total of k sentences form the power grid operation and maintenance text summary; if the number of summary sentences n required by the power grid business personnel is less than the number of clustering centers k of the K-Means algorithm, then x 1,1 、x 2,1 , …, x k,1 A total of k sentences are sorted from large to small according to their respective weight δ values, and then the first n sentences are output in sequence to form the power grid operation and maintenance text summary; if the number of summary sentences n required by the power grid business personnel is greater than the number of clustering centers k of the K-Means algorithm, the number of summary sentences n is decomposed into a combination of the two cases of being equal to the number of clustering centers k of the K-Means algorithm and being less than the number of clustering centers k of the K-Means algorithm, and n sentences are output to form the power grid operation and maintenance text summary.

[0030] A further improvement of the above technical solution is that the pretreatment in step 1 includes the following steps:

[0031] Step 1.1: Segment the power grid operation and maintenance text according to the Jieba word segmentation algorithm of Python language, remove the stop words in the text according to the "Harbin Institute of Technology Stop Word List", obtain all the words currently used in the power grid operation and maintenance text, and collect all the currently used words to form the power grid operation and maintenance text word set A1;

[0032] Step 1.2: Use the data mining algorithm of Python software to mine and calculate all the words in the power grid operation and maintenance text word set A1, obtain the word frequency of all the words in the power grid operation and maintenance text word set A1, and select words with a word frequency greater than or equal to 2 as keywords of the power grid operation and maintenance text.

[0033] The further improvement of the above technical solution is that the specific steps of step 3 are as follows:

[0034] Step 3.1: Initialize k cluster centers by random generation;

[0035] Step 3.2: Calculate the distances from all keyword vectors in the historical power grid operation and maintenance text keyword vector set L to the k cluster centers, and then divide all keyword vectors into the cluster centers closest to them in turn to form k keyword vector cluster sequences, namely L1, L2, ..., L k ;

[0036] Step 3.3: Recalculate according to the following formula (7): For the keyword vectors classified into the i-th category, the new cluster center v is obtained by calculating the average value of the word vectors of this category i ,

[0037]

[0038] In formula (7), m j is the jth keyword vector of the i-th category, c i is the total number of keyword vectors in the i-th category.

[0039] Step 3.4: Recalculate the distances from all keyword vectors in the historical power grid operation and maintenance text keyword vector set L to the new cluster center, and then divide all keyword vectors into the cluster center with the closest distance in turn to form a new k keyword vector cluster sequence;

[0040] Step 3.5: Determine whether the calculation result converges by the following formula (8). If not, repeat steps 3.2 to 3.5 to make the calculation result converge. If converged, arrange the k keyword vector clustering sequences in sequence to form the power grid operation and maintenance text vector evaluation matrix T output.

[0041]

[0042] In formula (4), SSE is the clustering error of all samples, C i is the i-th cluster, p is C i The sample points in m i It is C i The center of mass (C i The mean of all samples in .

[0043] The beneficial effect of the present invention is that the present invention adopts a special method for evaluating the importance of sentences in power grid operation and maintenance texts, that is, the keywords in a single sentence are used to calculate the similarity with all clustered keywords in the power grid operation and maintenance texts, and the importance index of a single sentence is obtained, so that when generating a summary of the power grid operation and maintenance text, suitable sentences can be selected as summary contents more objectively and accurately, making the summary generation work of the power grid operation and maintenance text more accurate and concise. DETAILED DESCRIPTION

[0044] The following is a further description of a method for generating a summary of a power grid operation and maintenance text in accordance with a specific implementation method.

[0045] The present invention provides a method for generating a summary of a power grid operation and maintenance text, which relates to an archive storing historical power grid operation and maintenance texts in a known power grid system. The method for generating a summary comprises the following steps:

[0046] Step 1: The power grid business personnel select all the historical power grid operation and maintenance texts from the archives for preprocessing, obtain all the keywords of the historical power grid operation and maintenance texts, and collect all the keywords to form a historical power grid operation and maintenance text keyword set A;

[0047] The specific steps of preprocessing are as follows:

[0048] Step 1.1: All historical power grid operation and maintenance texts are segmented according to the jieba segmentation algorithm of Python language, and stop words in the text are removed according to the "Harbin Institute of Technology Stop Word List" to obtain all the words currently used in the historical power grid operation and maintenance texts. All the currently used words are collected to form the historical power grid operation and maintenance text word set A1;

[0049] Step 1.2: Use the data mining algorithm of Python software to mine and calculate all the words in the historical power grid operation and maintenance text word set A1, obtain the word frequency of all the words in the historical power grid operation and maintenance text word set A1, and select words with a word frequency greater than or equal to 2 as keywords of the historical power grid operation and maintenance text.

[0050] Step 2: The vectorization calculation formula of the Word2Vec algorithm is shown in the following formula (1). All keywords in the historical power grid operation and maintenance text keyword set A are converted into keyword word vectors, and all keyword vectors are collected to form the historical power grid operation and maintenance text keyword vector set L.

[0051]

[0052] In formula (1), T is the text length of the power grid operation and maintenance text, k represents the training window size, c is the context of the keyword to be converted into a vector form, and a i is the target word a i The word vector of i+c is the context word a i+c The word vector of p(r i+c |r i )=softmax(r i+c *r i ), the softmax function is also called the normalized exponential function, which can present the results of multi-classification in the form of probability.

[0053] Step 3: Cluster the historical power grid operation and maintenance text keyword vector set L through the K-Means algorithm to form the power grid operation and maintenance text vector evaluation matrix T, as shown in the following formula (2):

[0054]

[0055] In formula (2), L1, L2, ..., L k are the keyword vector clustering sequences formed by the aggregation of the keyword vectors closest to the first, second, ..., kth clustering centers in the historical power grid operation and maintenance text keyword vector set L; l 1,1 , l 1,2 ,...,l 1,n are the first keyword vector, the second keyword vector, ..., and the last keyword vector that are closest to the first cluster center; l 2,1 , l 2,2 ,...,l 2,n are the first keyword vector, the second keyword vector, ..., and the last keyword vector that are closest to the second cluster center; l k,1 , l k,2 ,...,l k,n They are the first keyword vector, the second keyword vector, ..., and the last keyword vector that are closest to the k-th cluster center;

[0056] The specific steps are as follows:

[0057] Step 3.1: Initialize k cluster centers by random generation;

[0058] Step 3.2: Calculate the distances from all keyword vectors in the historical power grid operation and maintenance text keyword vector set L to the k cluster centers, and then divide all keyword vectors into the cluster centers closest to them in turn to form k keyword vector cluster sequences, namely L1, L2, ..., L k ;

[0059] Step 3.3: Recalculate according to the following formula (7): For the keyword vectors classified into the i-th category, the new cluster center v is obtained by calculating the average value of the word vectors of this category i ,

[0060]

[0061] In formula (7), m j is the jth keyword vector of the i-th category, c i is the total number of keyword vectors in the i-th category.

[0062] Step 3.4: Recalculate the distances from all keyword vectors in the historical power grid operation and maintenance text keyword vector set L to the new cluster center, and then divide all keyword vectors into the cluster center with the closest distance in turn to form a new k keyword vector cluster sequence;

[0063] Step 3.5: Determine whether the calculation result converges by the following formula (8). If not, repeat steps 3.2 to 3.5 to make the calculation result converge. If converged, arrange the k keyword vector clustering sequences in sequence to form the power grid operation and maintenance text vector evaluation matrix T output.

[0064]

[0065] In formula (8), SSE is the clustering error of all samples, C i is the i-th cluster, p is C i The sample points in m i It is C i The center of mass (C i The mean of all samples in .

[0066] Step 4: By processing the real-time power grid operation and maintenance text for which summary needs to be generated, the keyword text matrix P is obtained, as shown in the following formula (3):

[0067]

[0068] In formula (3), P1, P2, ..., P m are the sequences formed by the aggregation of all keywords in the first sentence, the second sentence, ..., and the last sentence in the real-time power grid operation and maintenance text; p1,1 、p 1,2 , ..., p 1,n They are the first keyword, the second keyword, ..., and the last keyword in the first sentence of the real-time power grid operation and maintenance text; p 2,1 、p 2,2 , ..., p 2,n They are the first keyword, the second keyword, ..., and the last keyword in the second sentence of the real-time power grid operation and maintenance text; p m,1 、p m,2 , ..., p m,n They are the first keyword, the second keyword, ..., the last keyword in the last sentence of the real-time power grid operation and maintenance text;

[0069] The keyword text matrix P is vectorized by the Word2Vec algorithm to obtain the keyword vector matrix Q, as shown in the following formula (4):

[0070]

[0071] In formula (4), Q1, Q2, ..., Q m They are the sequences formed by the aggregation of word vectors of all keywords in the first sentence, the second sentence, ..., and the last sentence in the real-time power grid operation and maintenance text;

[0072] q 1,1 ,q 1,2 ,...,q 1,n They are the first keyword word vector, the second keyword word vector, ..., and the last keyword word vector in the first sentence in the real-time power grid operation and maintenance text; q 2,1 ,q 2,2 ,...,q 2,n They are the first keyword word vector, the second keyword word vector, ..., and the last keyword word vector in the second sentence of the real-time power grid operation and maintenance text; q m,1 ,q m,2 ,...,q m,n They are the first keyword word vector, the second keyword word vector, ..., and the last keyword word vector in the last sentence in the real-time power grid operation and maintenance text.

[0073] Step 5: Obtain the first weight δ1 of the first cluster center in the power grid operation and maintenance text vector evaluation matrix T corresponding to all sentences in the real-time power grid operation and maintenance text by weight calculation, and arrange the values ​​of the first weight δ1 of each sentence from large to small to form the first cluster center output sequence X1, X1 = {x 1,1 、x 1,2 , ..., x 1,n}, where x1,1 is the sentence with the largest first weight δ1, x 1,n It is the sentence with the smallest first weight δ1;

[0074] The specific steps to obtain the first weight δ1 of all sentences in the power grid operation and maintenance text are as follows:

[0075] Step 5.1: Calculate the similarity between the first keyword vector of the first sentence in the real-time power grid operation and maintenance text and all keyword vectors in L1 in the power grid operation and maintenance text vector evaluation matrix T by the following formula (5):

[0076]

[0077] Select the highest similarity value as the keyword weight of the keyword;

[0078] Step 5.2: Repeat step 5.1 to obtain the keyword weights of all keywords in the first sentence of the real-time power grid operation and maintenance text, and add them up to form the first weight δ1 of the first sentence in the power grid operation and maintenance text;

[0079] Step 5.3: Repeat steps 5.1 to 5.2 to obtain the first weight δ1 of all sentences in the real-time power grid operation and maintenance text.

[0080] Step 6: Repeat step 5 to obtain the second weight δ2 of the second cluster center in the power grid operation and maintenance text vector evaluation matrix T corresponding to all sentences in the real-time power grid operation and maintenance text and the second cluster center output sequence X2, until the kth weight δ of the k cluster centers in the power grid operation and maintenance text vector evaluation matrix T corresponding to all sentences in the real-time power grid operation and maintenance text is obtained. k and the k-th cluster center output sequence X k Finally, all cluster center output sequences are collected to obtain the text summary output matrix X, as shown in the following formula (6).

[0081]

[0082] Step 7: According to the number of summary sentences n required by the power grid business personnel, the text summary output matrix X outputs n sentences to generate the power grid operation and maintenance text summary as a reference for the power grid business personnel;

[0083] The specific output mechanism of the text summary output matrix X is as follows:

[0084] If the number of summary sentences n required by the power grid business personnel is equal to the number of cluster centers k of the K-Means algorithm, then output x in sequence 1,1 、x 2,1 , …, x k,1 A total of k sentences form the power grid operation and maintenance text summary; if the number of summary sentences n required by the power grid business personnel is less than the number of clustering centers k of the K-Means algorithm, then x1,1 、x 2,1 , …, x k,1 A total of k sentences are sorted from large to small according to their respective weight δ values, and then the first n sentences are output in sequence to form the power grid operation and maintenance text summary; if the number of summary sentences n required by the power grid business personnel is greater than the number of clustering centers k of the K-Means algorithm, the number of summary sentences n is decomposed into a combination of the two cases of being equal to the number of clustering centers k of the K-Means algorithm and being less than the number of clustering centers k of the K-Means algorithm, and n sentences are output to form the power grid operation and maintenance text summary.

Claims

1. A method for generating a summary of a power grid operation and maintenance text, involving an archive storing power grid operation and maintenance texts in a known power grid system, characterized in that: The following steps are involved: Step 1: Select all power grid operation and maintenance texts from the archive library for preprocessing to obtain all keywords of all power grid operation and maintenance texts, and collect all keywords to form a keyword set A; Step 2: The vectorization calculation formula of the Word2Vec algorithm is shown in the following formula (1). All keywords in the power grid operation and maintenance text keyword set A are converted into keyword vectors, and all keyword vectors are collected to form the power grid operation and maintenance text keyword vector set L. In formula (1), T is the text length of the power grid operation and maintenance text, k represents the training window size, c is the context of the keyword to be converted into a vector form, and a i is the target word a i The word vector of i+c is the context word a i+c The word vector of p(a i+c |a i )=softmax(a i+c *a i ), the softmax function is also called the normalized exponential function, which can present the results of multi-classification in the form of probability; Step 3: Cluster the power grid operation and maintenance text keyword vector set L through the K-Means algorithm to form the power grid operation and maintenance text vector evaluation matrix T, as shown in the following formula (2): In formula (2), L1, L2, ..., L k are the keyword vector sequences formed by the aggregation of keyword vectors closest to the first, second, ..., kth cluster centers; l 1,1 , l 1,2 ,...,l 1,n are the first keyword vector, the second keyword vector, ..., and the last keyword vector in the first cluster center respectively; l 2,1 , l 2,2 ,...,l 2,n are the first keyword vector, the second keyword vector, ..., and the last keyword vector in the second cluster center respectively; l k,1 , l k,2 ,...,l k,n They are the first keyword vector, the second keyword vector, ..., and the last keyword vector in the kth cluster center respectively; Step 4: By processing the real-time power grid operation and maintenance text for which summary generation is required, the keyword text matrix P of the real-time power grid operation and maintenance text is obtained, as shown in the following formula (3): In formula (3), P1, P2, ..., P m are the sequences formed by the aggregation of all keywords in the first sentence, the second sentence, ..., and the last sentence of the real-time power grid operation and maintenance text; p 1,1 、p 1,2 , ..., p 1,n They are the first keyword, the second keyword, ..., and the last keyword in the first sentence of the real-time power grid operation and maintenance text; p 2,1 、p 2,2 , ..., p 2,n They are the first keyword, the second keyword, ..., and the last keyword in the second sentence of the real-time power grid operation and maintenance text; p m,1 、p m,2 , ..., p m,n They are the first keyword, the second keyword, ..., the last keyword in the last sentence of the real-time power grid operation and maintenance text; The keyword text matrix P is vectorized by the Word2Vec algorithm to obtain a keyword vector matrix Q, as shown in the following formula (4): In formula (4), Q1, Q2, ..., Q m They are the sequences formed by the aggregation of word vectors of all keywords in the first sentence, the second sentence, ..., and the last sentence of the real-time power grid operation and maintenance text; q 1,1 ,q 1,2 ,...,q 1,n They are the first keyword word vector, the second keyword word vector, ..., and the last keyword word vector in the first sentence of the real-time power grid operation and maintenance text; q 2,1 ,q 2,2 ,...,q 2,n They are the first keyword vector, the second keyword vector, ..., and the last keyword vector in the second sentence of the real-time power grid operation and maintenance book; q m,1 ,q m,2 ,...,q m,n They are the first keyword word vector, the second keyword word vector, ..., and the last keyword word vector in the last sentence of the real-time power grid operation and maintenance text; Step 5: Obtain the first weight δ1 of the first cluster center in the power grid operation and maintenance text vector evaluation matrix T corresponding to all sentences in the real-time power grid operation and maintenance text by weight calculation, and arrange the values ​​of the first weight δ1 of each sentence from large to small to form the first cluster center output sequence X1, X1 = {x 1,1 、x 1,2 , ..., x 1,n }, where x 1,1 is the sentence with the largest first weight δ1, x 1,n is the sentence with the smallest first weight δ1; Step 6: Repeat step 5 to obtain the second weight δ2 of the second cluster center in the power grid operation and maintenance text vector evaluation matrix T corresponding to all sentences in the real-time power grid operation and maintenance text and the second cluster center output sequence X2, until the kth weight δ of the k cluster centers in the power grid operation and maintenance text vector evaluation matrix T corresponding to all sentences in the real-time power grid operation and maintenance text is obtained. k and the k-th cluster center output sequence X k Finally, all cluster center output sequences are collected to obtain the text summary output matrix X, as shown in the following formula (5): Step 7: According to the number of summary sentences n required by the power grid business personnel, the text summary output matrix X outputs n sentences to generate the power grid operation and maintenance text summary as a reference for the power grid business personnel.

2. The method for generating a summary of a power grid operation and maintenance document according to claim 1, characterized in that: The specific steps of weight calculation in step 5 are as follows: Step 5.1: Calculate the similarity between the first keyword vector of the first sentence in the real-time power grid operation and maintenance text and all keyword vectors in L1 in the power grid operation and maintenance text vector evaluation matrix T by the following formula (6), and select the highest similarity value as the keyword weight value of the first keyword; Step 5.2: Repeat step 5.1 to obtain the keyword weight values ​​of all keywords in the first sentence of the real-time power grid operation and maintenance text, and add them up to form the first weight δ1 of the first sentence in the power grid operation and maintenance text; Step 5.3: Repeat steps 5.1 to 5.2 to obtain the first weight δ1 of all sentences in the real-time power grid operation and maintenance text.

3. The method for generating a summary of a power grid operation and maintenance document according to claim 1, characterized in that: The specific output mechanism of the text summary output matrix X in step 7 is as follows: If the number of summary sentences n required by the power grid business personnel is equal to the number of cluster centers k of the K-Means algorithm, then output x in sequence 1,1 、x 2,1 , …, x k,1 A total of k sentences form the power grid operation and maintenance text summary; if the number of summary sentences n required by the power grid business personnel is less than the number of clustering centers k of the K-Means algorithm, then x 1,1 、x 2,1 , …, x k,1 A total of k sentences are sorted from large to small according to their respective weight δ values, and then the first n sentences are output in sequence to form the power grid operation and maintenance text summary; if the number of summary sentences n required by the power grid business personnel is greater than the number of clustering centers k of the K-Means algorithm, the number of summary sentences n is decomposed into a combination of the two cases of being equal to the number of clustering centers k of the K-Means algorithm and being less than the number of clustering centers k of the K-Means algorithm, and n sentences are output to form the power grid operation and maintenance text summary.

4. The method for generating a summary of a power grid operation and maintenance document according to claim 1, characterized in that: The pre-treatment in step 1 comprises the following steps: Step 1.1: Segment the power grid operation and maintenance text according to the Jieba word segmentation algorithm of Python language, remove the stop words in the text according to the "Harbin Institute of Technology Stop Word List", obtain all the words currently used in the power grid operation and maintenance text, and collect all the currently used words to form the power grid operation and maintenance text word set A1; Step 1.2: Use the data mining algorithm of Python software to mine and calculate all the words in the power grid operation and maintenance text word set A1, obtain the word frequency of all the words in the power grid operation and maintenance text word set A1, and select words with a word frequency greater than or equal to 2 as keywords of the power grid operation and maintenance text.

5. The method for generating a summary of a power grid operation and maintenance document according to claim 1, characterized in that: The specific steps of step 3 are as follows: Step 3.1: Initialize k cluster centers by random generation; Step 3.2: Calculate the distances from all keyword vectors in the historical power grid operation and maintenance text keyword vector set L to the k cluster centers, and then divide all keyword vectors into the cluster centers closest to them in turn to form k keyword vector cluster sequences, namely L1, L2, ..., L k ; Step 3.3: Recalculate according to the following formula (7): For the keyword vectors classified into the i-th category, the new cluster center v is obtained by calculating the average value of the word vectors of this category i , In formula (7), m j is the jth keyword vector of the i-th category, c i is the total number of keyword vectors of the i-th category; Step 3.4: Recalculate the distances from all keyword vectors in the historical power grid operation and maintenance text keyword vector set L to the new cluster center, and then divide all keyword vectors into the cluster center with the closest distance in turn to form a new k keyword vector cluster sequence; Step 3.5: Determine whether the calculation result converges by the following formula (8). If not, repeat steps 3.2 to 3.5 to make the calculation result converge. If converged, arrange the k keyword vector clustering sequences in sequence to form the power grid operation and maintenance text vector evaluation matrix T output. In formula (4), SSE is the clustering error of all samples, C i is the i-th cluster, p is C i The sample points in m i It is C i The center of mass, C i The mean of all samples in .