A text error correction method based on knowledge graph

By building a knowledge graph and ASR technology, substation and equipment switch information in calls by grid dispatchers are extracted and corrected, and the accuracy and efficiency of the call content judgment of grid dispatchers in the existing technology are solved, and more efficient error correction effects are achieved .

CN114792093BActive Publication Date: 2024-11-05GUIZHOU POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110712274.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-25
Publication Date
2024-11-05
Estimated Expiration
2041-06-25

AI Technical Summary

Technical Problem

The prior art is difficult to correctly judge the call content of the power grid dispatcher, and it is not efficient, especially for those who are not familiar with power grid services.

Method used

By building a knowledge graph, combining ASR automatic speech recognition technology to convert call information into scheduling text, extracting substation and equipment switch information, and using regularization and similarity matching algorithms to correct errors to ensure information accuracy.

Benefits of technology

It improves the accuracy and efficiency of scheduling terms, reduces the error rate of manual judgment, and is suitable for correcting call contents of dispatchers in the power grid dispatching system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114792093B_ABST
    Figure CN114792093B_ABST
Patent Text Reader

Abstract

The present invention discloses a text error correction method based on knowledge graph, comprising: constructing a knowledge graph according to substation information and equipment switch information; collecting call information of on-duty dispatchers, and converting the call information into dispatch text through ASR automatic speech recognition technology; extracting dispatch instructions in the dispatch text through regularization, and then extracting substation information and equipment switch information contained in the dispatch instructions through knowledge graph; querying organization information through call information, and querying the substation information and equipment switch information of the organization according to the organization information; comparing the substation information and equipment switch information contained in the dispatch instruction with the substation information and equipment switch information of the organization, and finding the information with the highest matching degree through a similarity matching algorithm, that is, the correct call information, to complete text error correction; the present invention combines speech recognition, knowledge graph, natural language processing and other technologies, realizes dispatch term error correction, and then assists in standardizing dispatch terminology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of speech recognition, and in particular to a text error correction method based on a knowledge graph. Background Art

[0002] At present, the power grid dispatching system verifies whether the content of the dispatcher's conversation is correct during the process of issuing / returning orders mainly through experience judgment and comparison with the operation ticket. The existing method has high requirements on personnel, and it is difficult for people who are not familiar with power grid business to get started. In addition, the dispatcher's experience judgment is prone to errors and is inefficient. Summary of the invention

[0003] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0004] In view of the above existing problems, the present invention is proposed.

[0005] Therefore, the present invention provides a text error correction method based on knowledge graph, which can solve the problem that it is difficult to correctly judge the content of the dispatcher's call in the prior art.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: including constructing a knowledge graph according to substation information and equipment switch information; collecting call information of the on-duty dispatcher, and converting the call information into a dispatch text through ASR automatic speech recognition technology; extracting the dispatch instruction in the dispatch text through regularization, and then extracting the substation information and equipment switch information contained in the dispatch instruction through the knowledge graph; querying the organization information through the call information, and querying the substation information and equipment switch information of the organization according to the organization information; comparing the substation information and equipment switch information contained in the dispatch instruction with the substation information and equipment switch information of the organization, if the content is consistent, the call information is correct; otherwise, converting the keywords of the substation information and equipment switch information contained in the dispatch instruction into pinyin, and converting the keywords of the substation information and equipment switch information of the organization into pinyin, and then finding the information with the highest matching degree through a similarity matching algorithm, that is, the correct call information, to complete text error correction.

[0007] As a preferred solution of the text correction method based on knowledge graph described in the present invention, wherein: the knowledge graph includes extracting and integrating the organization, personnel, and telephone number information in the database to obtain the call information; performing semantic analysis on the operation ticket instruction data to obtain the substation information and equipment switch information; performing word sense disambiguation and synonym conversion processing on the substation information and equipment switch information, and then storing the processed information into the knowledge graph.

[0008] As a preferred solution of the text error correction method based on knowledge graph described in the present invention, the word sense disambiguation processing includes marking the entities to be disambiguated in the substation information and the equipment switch information, and then constructing the text semantic feature V of e using the context terms containing the entity e to be disambiguated; measuring the distance of the text semantic feature V of e by calculating the similarity, determining the target entity according to the distance, and completing the word sense disambiguation processing.

[0009] As a preferred solution of the text error correction method based on knowledge graph described in the present invention, the determination of the target entity includes defining a set of candidate entities to be disambiguated in the substation information and the equipment switch information as:

[0010] E={e1,e2,…,e i ,…,e n}

[0011] The similarity is calculated by the following formula:

[0012] sim(e,e i )=cos(e,e i )

[0013] The target entity is the one with the largest similarity; among them, e1, e2, …, e i ,…,e n is the candidate entity to be disambiguated, and n is the number.

[0014] As a preferred solution of the text correction method based on knowledge graph described in the present invention, the synonym conversion process includes calculating the similarity of nouns; arranging them in ascending order according to the similarity to obtain a synonym candidate list; setting a similarity threshold, and replacing two nouns if the similarity difference between them meets the similarity threshold.

[0015] As a preferred solution of the text error correction method based on knowledge graph described in the present invention, wherein: the similarity of the nouns is calculated including:

[0016]

[0017] Among them, x and y are any two nouns, x is the query word, y is the replacement word, xi is the i-th query word, y i is the i-th replacement word, and n is the number of nouns.

[0018] As a preferred solution of the text error correction method based on knowledge graph described in the present invention, the regularization includes extracting using Lasso regression:

[0019]

[0020] Among them, w is the weight vector of the scheduling text, α||w||1 is the L1 regularization term, and n is the number of samples.

[0021] As a preferred solution of the text error correction method based on knowledge graph described in the present invention, wherein: the similarity matching algorithm includes:

[0022]

[0023] Among them, d is the similarity matching value of the single word, P is the similarity of the phonetic code, and S is the similarity of the shape code.

[0024] Beneficial effects of the present invention: The present invention combines technologies such as speech recognition, knowledge graphs, and natural language processing to achieve error correction in dispatch terms, thereby assisting in standardizing dispatch terms. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0026] Figure 1 A schematic diagram of knowledge graph visualization of the text error correction method based on knowledge graph described in the first embodiment of the present invention; DETAILED DESCRIPTION

[0027] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0029] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0030] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0031] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0032] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0033] Example 1

[0034] Reference Figure 1 , which is the first embodiment of the present invention, and provides a text error correction method based on a knowledge graph, comprising:

[0035] S1: Build a knowledge graph based on substation information and equipment switch information.

[0036] (1) Extract and integrate the organizational structure, personnel, and telephone number information in the DCCS database to obtain call information;

[0037] (2) Perform semantic analysis on the operation ticket instruction data to obtain substation information and equipment switch information;

[0038] (3) Perform word sense disambiguation and synonym conversion on substation information and equipment switch information, and then store the processed information into the knowledge graph, such as Figure 1 shown.

[0039] Specifically, the steps of word sense disambiguation are as follows:

[0040] ① Mark the entities to be disambiguated in the substation information and equipment switch information, and then use the context terms containing the entity e to be disambiguated to construct the text semantic feature V of e;

[0041] ② By calculating the similarity to measure the distance of the text semantic feature V of e, the target entity is determined according to the distance to complete the word sense disambiguation process.

[0042] The candidate entity set E to be disambiguated in the substation information and equipment switch information is defined as:

[0043] E={e1,e2,…,e i ,…,e n}

[0044] The similarity is calculated by the following formula:

[0045] sim(e,e i )=cos(e,e i )

[0046] The one with the greatest similarity is the target entity;

[0047] Among them, e1, e2, …, e i ,…,e n is the candidate entity to be disambiguated, and n is the number.

[0048] Specifically, the steps of synonym conversion processing are as follows:

[0049] ①Calculate the similarity of nouns;

[0050]

[0051] Among them, x and y are any two nouns, x is the query word, y is the replacement word, x i is the i-th query word, y i is the i-th replacement word, and n is the number of nouns.

[0052] ② Sort in ascending order according to similarity to obtain a list of synonym candidates;

[0053] ③ Set a similarity threshold. If the similarity difference between two nouns meets the similarity threshold, they will be replaced.

[0054] In this embodiment, the similarity threshold is set to 0.1.

[0055] S2: Collect the call information of the on-duty dispatcher and convert the call information into dispatch text through ASR automatic speech recognition technology.

[0056] The goal of Automatic Speech Recognition (ASR) technology is to enable computers to "dictate" continuous speech spoken by different people, which is commonly known as "voice dictation machine". It is a technology that realizes the conversion of "sound" to "text".

[0057] S3: Extract the dispatch instructions in the dispatch text through regularization, and then extract the substation information and equipment switch information contained in the dispatch instructions through the knowledge graph.

[0058] Lasso regression is used for extraction:

[0059]

[0060] Among them, w is the weight vector of the scheduling text, α||w||1 is the L1 regularization term, and n is the number of samples; L1 regularization refers to the sum of the absolute values ​​of each element in the weight vector w.

[0061] S4: query the organization information through the call information, and query the substation information and equipment switch information of the organization based on the organization information.

[0062] S5: Compare the substation information and equipment switch information contained in the dispatch instruction with the substation information and equipment switch information of the organization.

[0063] (1) If the contents are consistent, the call information is correct;

[0064] (2) Otherwise, the keywords of the substation information and equipment switch information contained in the dispatch instruction are converted into pinyin, and the keywords of the substation information and equipment switch information of the organization are converted into pinyin, and then the information with the highest matching degree is found through the similarity matching algorithm, which is the correct call information, and the text error correction is completed.

[0065] Among them, the similarity matching algorithm is as follows:

[0066]

[0067] Among them, d is the similarity matching degree of a single word, P is the similarity of the phonetic code, and S is the similarity of the shape code.

[0068] Example 2

[0069] To verify and illustrate the technical effects adopted in the present method, this embodiment selects a traditional technical solution and adopts the present method for comparative testing, and compares the test results by means of scientific demonstration to verify the real effect of the present method.

[0070] Traditional technical solutions mainly use experience judgment and comparison with operation tickets to correct text errors, which has a high error rate and low efficiency.

[0071] In order to verify that the present method has a higher text error correction capability than the traditional technical solution, in this embodiment, the traditional technical solution and the present method are used to perform error correction comparison on the collected text respectively.

[0072] Test environment: 500 operation tickets were used as test samples. The traditional technical solution was used for manual operation to correct errors and statistically analyze the test result data. This method was used to implement the error correction test of this method through the Python platform. The results are shown in the following table.

[0073] Table 1: Error correction results.

[0074]

[0075] It can be seen from the above table that the text error correction effect of this method is far superior to the traditional technical solutions.

[0076] It should be noted that the above embodiments are only used to illustrate the technical solutions 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 the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A text error correction method based on knowledge graph, characterized by: include, Build a knowledge graph based on substation information and equipment switch information; Collect the call information of the on-duty dispatcher and convert the call information into dispatch text through ASR automatic speech recognition technology; The dispatching instructions in the dispatching text are extracted by regularization, and then the substation information and equipment switch information contained in the dispatching instructions are extracted by the knowledge graph; Querying the organization information through the call information, and querying the substation information and equipment switch information of the organization according to the organization information; Compare the substation information and equipment switch information contained in the dispatch instruction with the substation information and equipment switch information of the organization. If the contents are consistent, the call information is correct; Otherwise, the keywords of the substation information and equipment switch information contained in the dispatch instruction are converted into pinyin, and the keywords of the substation information and equipment switch information of the organization are converted into pinyin, and then the information with the highest matching degree is found through the similarity matching algorithm, which is the correct call information, and the text error correction is completed; Wherein, the knowledge graph includes: Extracting and integrating the information of organizations, personnel, and telephone numbers in the database to obtain the call information; Perform semantic analysis on the operation ticket instruction data to obtain the substation information and equipment switch information; The substation information and equipment switch information are processed by word sense disambiguation and synonym conversion, and then the processed information is stored in the knowledge graph.

2. The text error correction method based on knowledge graph according to claim 1, characterized in that: The word sense disambiguation process includes: The entities to be disambiguated in the substation information and the equipment switch information are marked, and then the text semantic features V of the entity e to be disambiguated are constructed using the context terms containing the entity e to be disambiguated; The distance between the text semantic feature V of the similarity measure e is calculated, and the target entity is determined according to the distance to complete the word sense disambiguation process.

3. The text error correction method based on knowledge graph according to claim 2, characterized in that: The determining of the target entity comprises: The candidate entity set E to be disambiguated in the substation information and equipment switch information is defined as: The similarity is calculated by the following formula: The entity with the greatest similarity is the target entity; in, is the candidate entity to be disambiguated, and n is the number.

4. The text error correction method based on knowledge graph according to claim 1 or 2, characterized in that: The synonym conversion process includes: Calculate the similarity of nouns; Arrange in ascending order according to the similarities to obtain a synonym candidate list; A similarity threshold is set, and if the similarity difference between two nouns meets the similarity threshold, they are replaced.

5. The text error correction method based on knowledge graph according to claim 1, characterized in that: The calculating of the similarity of nouns includes: Among them, x and y are any two nouns, x is the query word, y is the replacement word, is the i-th query word, is the i-th replacement word, and n is the number of nouns.

6. The text error correction method based on knowledge graph according to claim 1, characterized in that: The regularization includes, Lasso regression is used for extraction: Among them, w is the weight vector of the scheduling text, is the L1 regularization term, and n is the number of samples.

7. The text error correction method based on knowledge graph according to claim 1, characterized in that: The similarity matching algorithm includes: Among them, d is the similarity matching degree of a single word, P is the similarity of the phonetic code, and S is the similarity of the shape code.