Power distribution network fault text entity identification method

By using SpanBERT and double affine networks in the distribution network combined with dictionary matching and pinyin features, the problem of difficulty in fault text recognition after new energy access is solved, the accuracy and efficiency of entity recognition are improved, and the need for annotated data is reduced. rely.

CN118569252APending Publication Date: 2024-08-30STATE GRID ANHUI ELECTRIC POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410647533.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In new power systems, new energy generation such as wind and solar and electric vehicles are connected to the distribution network, resulting in sparse fault text features. Traditional entity recognition models are ineffective and difficult to meet application needs. They also rely on a large amount of annotated data for training and the annotation quality is difficult to guarantee. , Nested named entity recognition and discontinuous named entity recognition are difficult, and the problem of reference resolution is common.

Method used

SpanBERT is used to train distribution network fault text data, and dictionary matching is used to automatically construct annotated data for joint training. The bidirectional long-short-term memory network and pinyin features are integrated to propose an improved double affine network for entity recognition, reducing reliance on annotated data. and improve named entity recognition performance.

Benefits of technology

It improves the accuracy and efficiency of text entity recognition of distribution network faults, solves the problems of relying on annotated data training, nested named entity recognition and discontinuous named entity recognition, and improves the ability to resolve anaphora.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569252A
    Figure CN118569252A
Patent Text Reader

Abstract

The invention discloses a power distribution network fault text entity recognition method, and belongs to the technical field of text entity recognition. The power distribution network fault text entity recognition method comprises the following steps: training originally obtained power distribution network fault text data by adopting SpanBERT to obtain a power distribution network field SpanBERT model; a power distribution network field SpanBERT model is adopted to carry out joint training on the power distribution network fault text data which are automatically constructed and labeled based on dictionary matching and the originally obtained power distribution network fault text data to obtain feature vectors; fusing the feature vector and a pinyin vector obtained through bidirectional long short-term memory network processing to obtain a multi-feature fusion vector; a new scoring function is provided to improve an existing affine network, and entity recognition is carried out. By adopting the power distribution network fault text entity recognition method, the problems of difficulty in training, nested named entity recognition and discontinuous named entity recognition and anaphora resolution depending on a large amount of annotation data are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of text entity recognition, and in particular relates to a method for recognizing text entities of distribution network faults. Background Art

[0002] In the process of building a new power system with new energy as the main body and achieving the development route of "carbon peak and carbon neutrality", distributed power generation mainly based on wind power and photovoltaics, as well as large-scale promotion of electric vehicles and distributed energy storage will become an important way to reduce carbon dioxide emissions in the power sector.

[0003] Building a new power system faces huge challenges. The access of new energy sources such as wind and solar power, electric vehicles and distributed energy storage to the distribution network has changed the characteristics of the traditional distribution network. The high proportion of renewable energy, high proportion of power electronic equipment access and randomness, volatility, intermittency and other composite random factors have become the prominent characteristics of the new power system distribution network, bringing challenges to the safe and stable operation of the power system. At the same time, the application of new energy also has the problem of small capacity and large number of power generation units. In the future, the number of new energy power generation units in the country will reach tens of millions, and the number of signals such as meteorological environment and operation control will reach billions. The system scheduling and operation is extremely complex. After being widely connected to the distribution network, the transient characteristics of the faults are complex and the characteristics are changeable. The overcurrent protection measures of the traditional power grid will not be able to respond quickly and accurately and eliminate the faults, affecting the safety of the distribution network system and the high-quality power supply to users, and posing challenges to the safe and stable operation of the power grid.

[0004] Since emerging technologies related to the supply and demand of new energy such as "wind, solar and storage" have brought a large number of new words, the features of fault texts are relatively sparse, and existing models are difficult to capture sufficient contextual information, which in turn leads to poor results of traditional entity recognition models and difficulty in meeting application requirements. In addition, most existing models rely on a large amount of labeled data for training, but data labeling is time-consuming and labor-intensive, and the labeling quality is difficult to guarantee. Secondly, nested named entity recognition and non-continuous named entity recognition are still a severe challenge; finally, the problem of reference resolution is widely present in named entity recognition. Summary of the invention

[0005] The purpose of the present invention is to provide a method for identifying distribution network fault text entities to solve the problems mentioned in the above background technology.

[0006] To achieve the above object, the present invention provides a method for identifying distribution network fault text entities, comprising the following steps:

[0007] S1. Use SpanBERT to train the original distribution network fault text data to obtain the SpanBERT model in the distribution network field;

[0008] S2. Use the SpanBERT model in the distribution network field to jointly train the distribution network fault text data that has been automatically constructed and annotated based on dictionary matching and the original distribution network fault text data to obtain a feature vector;

[0009] S3, fusing the feature vector and the pinyin vector obtained by bidirectional long short-term memory network processing to obtain a multi-feature fusion vector;

[0010] S4. A new scoring function is proposed to improve the existing affine network, and an improved dual affine network is obtained for entity recognition.

[0011] Preferably, in S1, the specific process of obtaining the SpanBERT model in the distribution network field is:

[0012] S11, SpanBERT is used to train the original distribution network fault text data without annotation;

[0013] S12. During training, randomly cover the span word vector, extract the two word vectors at the front and back boundaries of the span, concatenate the two word vectors at the front and back boundaries of the span and the position vector of the span, and then predict the original word in the span through two fully connected layers; the prediction result formula is:

[0014] h=LayerNorm(GeLU(W1[x s-1 ;x s+1 ;P i ]))

[0015] Among them, x s-1 is the word vector before Span, x s+1 is the word vector after Span, P i is the position vector of the i-th word, and h is the prediction result;

[0016] S13. When predicting the original words in Span, the SBO target loss is obtained. The SBO target loss is added to the loss of the masked language model in SpanBERT as the training loss value. The SpanBERT model in the distribution network field is obtained through training.

[0017] Preferably, in S2, the specific process of obtaining the feature vector is:

[0018] S21. Automatically construct annotated distribution network fault text data based on dictionary matching

[0019] MarkTool is used in combination with the distribution network facility list to automatically perform iterative annotation of text and nested annotation of entities based on dictionary matching and regular matching, as well as standard name annotation for normalization.

[0020] S22. Use the SpanBERT model in the distribution network field to jointly train the annotated distribution network fault text data and the originally obtained distribution network fault text data;

[0021] First, the distribution network facility list is used to automatically convert the unlabeled original distribution network fault text data into simply labeled distribution network fault text data, and weak labels are generated for the unlabeled original distribution network fault text data.

[0022] Then, use weak tags The SpanBERT model in the distribution network field is pre-trained with the data, the masked language model head in SpanBERT is replaced with the conditional random field classification head, and noise-aware weakly supervised learning is performed. The pre-trained SpanBERT in the distribution network field is used to classify weak labels. Train to get the value of the weak label

[0023] For weak labels During training, a noise-aware loss function is used. The noise-aware loss function determines the generated label effect based on the confidence level. The confidence level measures the weak label Equals the correct label The probability of

[0024]

[0025] Among them, X is the input variable;

[0026] The final completed weak tag By the original weak label And the labels completed by SpanBERT in the distribution network field Composition; original weak tag Confidence level 1, labels completed by SpanBERT in the distribution network field The confidence level is calculated using the Historgram Binning method;

[0027] Given an input sentence, SpanBERT in the distribution network field converts each word into multiple wordpieces and inputs them into the Encoder module. Each Encoder module is based on the Transformer module. Each layer is a BERT Layer module. Each BERT Layer module consists of BERT attention, intermediate and BERT Output layers, and contains residual connections; the preprocessed embeddings and attention mask are input into the BERT attention module, and attention is obtained in the BERT attention module; it is activated through the intermediate layer and then through the Output layer to obtain the feature vector.

[0028] Preferably, S3 is specifically:

[0029] S31. Pinyin feature extraction

[0030] For each character in the character sequence in the original distribution network fault text data, the PyPinyin library is used to extract the pinyin of the Chinese character, obtain the pinyin sequence of the character sequence, encode the pinyin sequence, and obtain the pinyin embedding through the BiLSTM network;

[0031] S32, multi-feature fusion

[0032] The embedding C obtained by SpanBERT processing in the distribution network field is concatenated with the pinyin embedding P, and then processed by a multi-layer perceptron to obtain the multi-feature fusion embedding E = [e1, e2, ..., e l ],e i The calculation formula is:

[0033]

[0034] in, represents the embedding of the i-th character; represents the pinyin embedding of the i-th character; represents the multi-feature fusion embedding of the i-th character, and l represents the number of characters;

[0035] The embedding generated by the multi-layer perceptron is convolved to generate a multi-feature fusion vector H E =[h e1 ,h e2 ,...,h el ].

[0036] Preferably, in S4, the improved dual affine network is specifically:

[0037] The final word representation vector H′ is obtained by adding the multi-feature fusion embedding and the output multi-feature fusion vector of SpanBERT in the distribution network field through weighted residual connection. E =[h′ e1 ,h′ e2 ,...,h′ el ]

[0038] h′ ei =λh ei +(1-λ)e i

[0039] Among them, λ is the weighting parameter;

[0040] The score function score(i,j,α) is used to calculate the score of the entity with i as the head and j as the tail belonging to the named entity type α:

[0041]

[0042] Among them, h ei represents the feature vector of the i-th character; h ej The feature vector representing the jth character; and Indicates the trainable parameter of named entity type α; b α Indicates the bias of named entity type α;

[0043] The entity features are extracted by parameter sharing, and the new scoring function is:

[0044]

[0045] Where W is the parameter matrix of all named entity types.

[0046] Preferably, in S4, entity identification is specifically:

[0047] First, the result of the convolutional layer is passed through two MLPs to obtain the head token and tail token of the entity, and then processed through the improved bi-affine network: the obtained head token is multiplied by the improved bi-affine matrix and then multiplied by the tail token to combine the head and tail relationships in the entity and obtain a grid diagram representing the relationship between words;

[0048] The obtained relationship between words is represented by a grid graph, which is decoded by the CLN module. The adjacency relationship between words is used to find certain paths from one word to another in the graph. Each path corresponds to an entity set.

[0049] The present invention discloses a method for identifying entities in distribution network fault text. First, SpanBERT is used to train the original distribution network text data to obtain the distribution network field SpanBERT. Secondly, the trained distribution network field SpanBERT is used to jointly train the automatically annotated distribution network fault text data and the original distribution network text data to obtain a high-quality feature vector. Then, the feature vector and the pinyin vector obtained by bidirectional long short-term memory network processing are fused to obtain a multi-feature fusion vector. Finally, a new scoring function is proposed to improve the existing affine network, and the fault text entity recognition performance in the new distribution network field is improved through the improved dual affine network. The method described in the present invention solves the problems of relying on a large amount of labeled data for training, nested named entity recognition, and the difficulty of non-continuous named entity recognition and reference resolution.

[0050] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 The present invention is a flowchart of an embodiment of a method for identifying text entities of a distribution network fault. DETAILED DESCRIPTION

[0052] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.

[0053] Example

[0054] like Figure 1 As shown, a method for identifying distribution network fault text entities includes the following steps:

[0055] S1. Use SpanBERT to train the original distribution network fault text data to obtain the SpanBERT model in the distribution network field.

[0056] The specific process of obtaining the SpanBERT model in the distribution network field is as follows:

[0057] S11. SpanBERT is used to train the original unlabeled distribution network fault text data.

[0058] S12. During training, randomly cover the span word vector, extract the two word vectors at the front and back boundaries of the span, concatenate the two word vectors at the front and back boundaries of the span and the position vector of the span, and then predict the original word in the span through two fully connected layers; the prediction result formula is:

[0059] h=LayerNorm(GeLU(W1[x s-1 ;x s+1 ;P i]))

[0060] Among them, x s-1 is the word vector before Span, x s+1 is the word vector after Span, P i is the position vector of the i-th word, and h is the prediction result.

[0061] S13. When predicting the original word in the span, the SBO (SpanBoundaryObjective) target loss is obtained, which is the cost of the predicted result and the true result in this step. When training the model later, the SBO target loss is added to the loss of the masked language model in SpanBERT as the training loss value, and the SpanBERT model in the distribution network field is obtained through training.

[0062] S2. The SpanBERT model in the distribution network field is used to jointly train the distribution network fault text data that has been automatically annotated based on dictionary matching and the original distribution network fault text data to obtain feature vectors.

[0063] The specific process of obtaining the feature vector is:

[0064] S21. Automatically construct annotated distribution network fault text data based on dictionary matching

[0065] MarkTool is used in combination with the list of distribution network facilities. Automatic annotation based on dictionary matching and regular matching, as well as standard name annotation for normalization, automatically performs iterative annotation of text and nested annotation of entities. The list of distribution network facilities is equivalent to the dictionary of nouns of the distribution network. The dictionary is used in combination with automation tools to automatically annotate the original distribution network fault text data. No human annotation or intervention is performed in the whole process.

[0066] S22. Use the SpanBERT model in the distribution network field to jointly train the labeled distribution network fault text data and the original distribution network fault text data.

[0067] First, the distribution network facility list is used to automatically convert the unlabeled original distribution network fault text data into simply labeled distribution network fault text data, and weak labels are generated for the unlabeled original distribution network fault text data.

[0068] Then, use weak tags Specifically, we first replace the masked language model head in SpanBERT with the conditional random field (CRF, which is a conditional probability distribution model P(Y|X), which represents a Markov random field of another set of output random variables Y under the condition of a set of input random variables X) classification head, and perform noise-aware weak supervision learning. Train to get the value of the weak label

[0069] For weak labels During training, if negative log-likelihood loss is still used, the model tends to overfit the noise of weak labels, so in order to overcome this problem, a noise-aware loss function is used. The noise-aware loss function judges the effect of the generated label based on the confidence, uses the generated probability histogram to obtain the estimated confidence, and then calculates the loss between the weak label and the model prediction result.

[0070] Confidence measure for weak labels Equals the correct label The probability of

[0071]

[0072] Among them, X is the input variable;

[0073] The final completed weak tag By the original weak label And the labels completed by SpanBERT in the distribution network field Therefore, the formula can be decomposed into two parts, in which the original weak labels are derived from domain knowledge rules, so the confidence is very high, so it is set to 1:

[0074]

[0075]

[0076] Labels completed by SpanBERT in the distribution network field The confidence is calculated using the Historgram Binning method. That is, first a validation set is split out, and the model is used to label entities for these samples. The model labeling results here are based on Viterbi decoding. Simply put, it is to divide the groups according to the scores, and then divide the samples. Specifically, it is to score each sample according to the model, divide the samples into different groups according to the scores, so that the samples of each category are in the same score range, and the confidence of each group is calculated by the number of samples in the group and the predicted probability given by the model.

[0077] Given an input sentence, such as "single-phase ground fault", SpanBERT in the distribution network field converts each word into multiple Wordpieces and inputs them into the Encoder module. Each Encoder module is based on the Transformer module, with a total of 12 layers, each of which is a BERT Layer module. Each BERT Layer module consists of BERT attention, intermediate and BERT Output layers, and contains residual connections. The preprocessed embeddings and attention mask are input into the BERT attention module, where attention is finally obtained after some matrix multiplication, transposition, weight calculation and other operations. After that, it is activated by the intermediate layer, and then passes through the Output layer (consisting of a fully connected layer, a Dropout layer and a LayerNorm layer) to obtain an output of 768 feature vectors.

[0078] S3. Fuse the feature vector with the pinyin vector processed by the bidirectional long short-term memory network to obtain a multi-feature fusion vector.

[0079] Specifically:

[0080] S31. Pinyin feature extraction

[0081] For each character in the character sequence of the original distribution network fault text data, the PyPinyin library is used to extract the pinyin of the Chinese character. When extracting the pinyin of Chinese characters, the library will determine whether a single Chinese character can form a word based on the information before and after the single Chinese character, and adjust the final pinyin output of the polyphonic character based on the information of the word. For example, for "single-phase grounding fault", the pinyin sequence of "dan1 xiang1 jie1 di4 gu4 zhang4" will be returned.

[0082] After obtaining the pinyin sequence of the character sequence, the pinyin embedding is obtained through the BiLSTM network. Before inputting the BiLSTM, the pinyin sequence needs to be encoded. The present invention selects to segment each pinyin sequence by character, and then encodes it using a numerical mapping method.

[0083] S32, multi-feature fusion

[0084] The embedding C obtained by SpanBERT processing in the distribution network field is concatenated with the pinyin embedding P, and then processed by a multi-layer perceptron to obtain the multi-feature fusion embedding E = [e1, e2, ..., e l ],e i The calculation formula is:

[0085]

[0086] in, represents the embedding of the i-th character; represents the pinyin embedding of the i-th character; represents the multi-feature fusion embedding of the i-th character, and l represents the number of characters;

[0087] The embedding generated by the multi-layer perceptron is convolved to generate a multi-feature fusion vector H E =[h e1 ,h e2 ,...,h el ].

[0088] S4. A new scoring function is proposed to improve the existing affine network, and an improved dual affine network is obtained for entity recognition.

[0089] In order to speed up the convergence of the SpanBERT model, the multi-feature fusion embedding and the output multi-feature fusion vector of SpanBERT in the distribution network field are added together through weighted residual connection to obtain the final word representation vector H′ E =[h′ e1 ,h′ e2 ,...,h′ el ]

[0090] h′ ei =λh ei +(1-λ)e i ,

[0091] Among them, λ is the weighting parameter.

[0092] The score function score(i,j,α) is used to calculate the score of the entity with i as the head and j as the tail belonging to the named entity type α. In the existing dual affine predictor, the specific formula of the scoring function is as follows:

[0093]

[0094] Among them, h ei represents the feature vector of the i-th character; h ej The feature vector representing the jth character; and Indicates the trainable parameter of named entity type α; b α Indicates the bias of named entity type α.

[0095] Considering that the features of different entities have certain similarities, we replace W in the above formula with aAll named entity types are replaced by using the same parameter matrix W. By sharing parameters, the entity features are extracted, which reduces the number of model parameters and speeds up the convergence speed while also improving the performance of the model. Thus, an improved dual affine network is proposed, and its new scoring function is shown in the following formula:

[0096] The entity features are extracted by parameter sharing, and the new scoring function is:

[0097]

[0098] For a NER task with M named entity types, the scoring function generates a multi-headed scoring tensor with a dimension of [l,l,M]. By decoding the upper triangle of this multi-headed scoring tensor, the head and tail of the entity can be determined as long as the score of the corresponding position is greater than the threshold.

[0099] Entity recognition is as follows:

[0100] The improved dual affine network is mainly used to solve the problem of nested named entity recognition. First, the result of the convolutional layer is passed through two MLPs to obtain the head token and tail token of the entity, and then processed by the improved dual affine network: the obtained head token is multiplied by the improved dual affine matrix and then multiplied by the tail token, the head and tail relationships in the entity are combined, and a grid diagram representing the relationship between words is obtained.

[0101] After the joint prediction layer is completed, the relationship between words is represented in a grid diagram, which is decoded by the CLN module. The adjacency relationship between words is used to find certain paths from one word to another in the diagram. Each path corresponds to an entity set. In addition to using adjacency relationships for type and boundary recognition of named entity recognition, head-tail relationships can also be used to assist training to eliminate ambiguity. Ultimately, combining the two relationships for training will improve the performance of named entity recognition.

[0102] In this step, the main task is to complete the joint prediction task and solve the problem of entity nesting in named entity recognition. In the joint prediction stage, the model needs to handle different word pair relationships. The prediction result of the model is the relationship between words. These words and relationships can form a directed graph, where words are nodes and relationships are edges. The decoding goal of the model is to find a path from one word to another connected by an adjacency relationship. Each path actually represents a corresponding entity. In addition, to solve the problem of nested named entity recognition, the head-tail relationship must be used. The head-tail relationship can also be used to determine the type and boundary of the entity, and it also has the function of disambiguation.

[0103] Verify the distribution network fault text entity recognition method described in the present invention

[0104] The verification experiment was carried out on a distribution network fault report text dataset of a province in East China from 2015 to 2022. Table 1 shows the statistical information of the dataset.

[0105] Table 1 Detailed information of the distribution network fault text dataset

[0106]

[0107] The dataset contains 15,539 texts, each of which belongs to one of eight categories, as shown in Table 2.

[0108] Table 2 Dataset categories

[0109] category quantity Ground Fault 2755 Equipment failure 3264 Short circuit fault 1904 User-side failure 4332 Photovoltaic related faults 557 Related failures caused by wind power 636 Failures caused by new energy loads 767 Other faults 1324

[0110] Evaluation indicators:

[0111] The present invention uses three commonly used indicators, namely precision (Precision, P), recall (Recall, R) and F1 value, to comprehensively evaluate the method proposed in the present invention.

[0112] The calculation formulas for the three indicators are as follows:

[0113]

[0114]

[0115]

[0116] Where i represents the i-th category, TP represents the number of samples that are both predicted and true, FP represents the number of samples that are predicted to be true but actually false, and FN represents the number of samples that are predicted to be false but actually true.

[0117] Precision P refers to the average value of the ratio of the number of TPs in each category among n categories to the number of samples (including TP and FP) judged to be true by the model. For a distribution network fault text dataset in a certain province in East China, n is 4. P is a statistic for some samples, focusing on the statistics of data judged to be true by the model. Recall R is the average value of the ratio of the number of TPs in each category among n categories to the number of truly true samples (including TP and FN). R is also a statistic for some samples. Macro-F1 is a comprehensive evaluation indicator, which first calculates the P and R values ​​of each category separately, and then averages them.

[0118] In order to verify the effectiveness and advancement of the proposed method, experiments were conducted using the distribution network fault text classification dataset. The specific comparison models and experimental results are shown in Table 3.

[0119] Table 3 Experimental results of the proposed method and the comparative method on the distribution network fault text dataset

[0120] method P(%) R(%) F1(%) TextCNN 63.19 55.39 59.03 TextRNN 62.31 57.37 59.74 IRF-Boost 67.76 60.67 64.02 BERT 68.92 63.16 65.91 ChineseBERT 69.21 64.87 66.97 Span-BERT 68.59 65.91 67.22 The method proposed by the present invention 72.33 69.13 70.69

[0121] As shown in Table 3, the method proposed in the present invention surpasses all the comparison methods in multiple evaluation indicators. Compared with the BERT method, the method proposed in the present invention has a relative improvement of 4.95% in precision P value, 9.45% in recall R value, and 7.25% in F1 value, and each indicator has a relatively significant improvement. Compared with the optimal Span-BERT model, the method proposed in the present invention has improved 5.45%, 4.89% and 5.16% in the three evaluation indicators of precision P, recall R and F1 value, respectively, which has significant advantages. This shows the advancement and effectiveness of the method proposed in the present invention.

[0122] Therefore, the present invention adopts the above-mentioned distribution network fault text entity recognition method to solve the problems of relying on a large amount of labeled data for training, nested named entity recognition, and the difficulty of non-continuous named entity recognition and reference resolution.

[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A method for identifying distribution network fault text entities, characterized by: The following steps are involved: S1. Use SpanBERT to train the original distribution network fault text data to obtain the SpanBERT model in the distribution network field; S2. Use the SpanBERT model in the distribution network field to jointly train the distribution network fault text data that has been automatically annotated based on dictionary matching and the original distribution network fault text data to obtain a feature vector; S3, fusing the feature vector and the pinyin vector obtained by bidirectional long short-term memory network processing to obtain a multi-feature fusion vector; S4. A new scoring function is proposed to improve the existing affine network, and an improved dual affine network is obtained for entity recognition.

2. A distribution network fault text entity recognition method according to claim 1, characterized in that: In S1, the specific process of obtaining the SpanBERT model in the distribution network field is as follows: S11, SpanBERT is used to train the original distribution network fault text data without annotation; S12. During training, randomly cover the span word vector, extract the two word vectors at the front and back boundaries of the span, concatenate the two word vectors at the front and back boundaries of the span and the position vector of the span, and then predict the original word in the span through two fully connected layers; the prediction result formula is: h=LayerNorm(GeLU(W1[x s-1 ;x s+1 ;P i ])) Among them, x s-1 is the word vector before Span, x s+1 is the word vector after Span, P i It is i The position vector of each word, h is the prediction result; S13. When predicting the original words in Span, the SBO target loss is obtained. The SBO target loss is added to the loss of the masked language model in SpanBERT as the training loss value. The SpanBERT model in the distribution network field is obtained through training.

3. A distribution network fault text entity recognition method according to claim 2, characterized in that: In S2, the specific process of obtaining the feature vector is: S21. Automatically construct annotated distribution network fault text data based on dictionary matching MarkTool is used in combination with the distribution network facility list to automatically perform iterative annotation of text and nested annotation of entities based on dictionary matching and regular matching, as well as standard name annotation for normalization. S22. Use the SpanBERT model in the distribution network field to jointly train the annotated distribution network fault text data and the originally obtained distribution network fault text data; First, the distribution network facility list is used to automatically convert the unlabeled original distribution network fault text data into simply labeled distribution network fault text data, and weak labels are generated for the unlabeled original distribution network fault text data. Then, use weak tags The SpanBERT model in the distribution network field is pre-trained with the data, the masked language model head in SpanBERT is replaced with the conditional random field classification head, and noise-aware weakly supervised learning is performed. The pre-trained SpanBERT in the distribution network field is used to classify weak labels. Train to get the value of the weak label For weak labels During training, a noise-aware loss function is used. The noise-aware loss function determines the generated label effect based on the confidence level. The confidence level measures the weak label Equals the correct label The probability of Among them, X is the input variable; The final completed weak tag By the original weak label And the labels completed by SpanBERT in the distribution network field Composition; original weak tag Confidence level 1, labels completed by SpanBERT in the distribution network field The confidence level is calculated using the Historgram Binning method; Given an input sentence, SpanBERT in the distribution network field converts each word into multiple Wordpieces and inputs them into the Encoder module. Each Encoder module is based on the Transformer module. Each layer is a BERTLayer module. Each BERT Layer module consists of BERT attention, intermediate and BERT Output layers, and contains residual connections; the preprocessed embeddings and attention mask are input into the BERT attention module, and attention is obtained in the BERT attention module; it is activated through the intermediate layer and then through the Output layer to obtain the feature vector.

4. A distribution network fault text entity recognition method according to claim 3, characterized in that: The S3 is specifically: S31. Pinyin feature extraction For each character in the character sequence in the original distribution network fault text data, the PyPinyin library is used to extract the pinyin of the Chinese character, the pinyin sequence of the character sequence is obtained, the pinyin sequence is encoded, and the pinyin embedding is obtained through the BiLSTM network; S32, multi-feature fusion The embedding C obtained by SpanBERT processing in the distribution network field is concatenated with the pinyin embedding P, and then processed by a multi-layer perceptron to obtain the multi-feature fusion embedding E = [e1, e2, ..., e l ],e i The calculation formula is: in, represents the embedding of the i-th character; represents the pinyin embedding of the i-th character; represents the multi-feature fusion embedding of the i-th character, and l represents the number of characters; The embedding generated by the multi-layer perceptron is convolved to generate a multi-feature fusion vector H E =[h e1 ,h e2 ,...,h el ].

5. A distribution network fault text entity recognition method according to claim 4, characterized in that: In S4, the improved dual affine network is specifically: The final word representation vector H′ is obtained by adding the multi-feature fusion embedding and the output multi-feature fusion vector of SpanBERT in the distribution network field through weighted residual connection. E =[h′ e1 ,h′ e2 ,...,h′ el ] h′ ei =λh ei +(1-λ)e i Among them, λ is the weighting parameter; The score function score(i,j,α) is used to calculate the score of the entity with i as the head and j as the tail belonging to the named entity type α: Among them, h ei represents the feature vector of the i-th character; h ej The feature vector representing the jth character; and represents the trainable parameter of the named entity type α; b α Indicates the bias of named entity type α; The entity features are extracted by parameter sharing, and the new scoring function is: Where W is the parameter matrix of all named entity types.

6. A distribution network fault text entity recognition method according to claim 5, characterized in that: In S4, entity identification is specifically: First, the result of the convolutional layer is passed through two MLPs to obtain the head token and tail token of the entity, and then processed through the improved bi-affine network: the obtained head token is multiplied by the improved bi-affine matrix and then multiplied by the tail token to combine the head and tail relationships in the entity and obtain a grid diagram representing the relationship between words; The obtained relationship between words is represented by a grid graph, which is decoded by the CLN module. The adjacency relationship between words is used to find certain paths from one word to another in the graph. Each path corresponds to an entity set.