CN116484826B - Operation ticket generation method, device, equipment and storage medium - Google Patents

Operation ticket generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN116484826B
CN116484826B CN202310722314.1A CN202310722314A CN116484826B CN 116484826 B CN116484826 B CN 116484826B CN 202310722314 A CN202310722314 A CN 202310722314A CN 116484826 B CN116484826 B CN 116484826B
Authority
CN
China
Prior art keywords
target
operation ticket
key information
task
ticket
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310722314.1A
Other languages
Chinese (zh)
Other versions
CN116484826A (en
Inventor
严宇平
钱正浩
王永才
皇甫汉聪
陈旭宇
林浩
李沐栩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Power Grid Co Ltd
Foshan Power Supply Bureau of Guangdong Power Grid Corp
Original Assignee
Guangdong Power Grid Co Ltd
Foshan Power Supply Bureau of Guangdong Power Grid Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Power Grid Co Ltd, Foshan Power Supply Bureau of Guangdong Power Grid Corp filed Critical Guangdong Power Grid Co Ltd
Priority to CN202310722314.1A priority Critical patent/CN116484826B/en
Publication of CN116484826A publication Critical patent/CN116484826A/en
Application granted granted Critical
Publication of CN116484826B publication Critical patent/CN116484826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9032Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • G06F40/242Dictionaries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an operation ticket generation method, an operation ticket generation device, operation ticket generation equipment and a storage medium, wherein the operation ticket generation method comprises the following steps: the method comprises the steps of obtaining a task name of a target operation task to be executed, extracting an executed object, a starting state and an ending state of the target operation task from the task name as target key information, searching a target typical operation ticket with the key information of the task name consistent with the target key information from an operation ticket library, and generating the target operation ticket by taking the target typical operation ticket as a template. According to the method and the device for generating the target operation ticket, the typical operation ticket most relevant to the target operation task to be executed is searched from the typical operation ticket library through the key information of the task name of the target operation task to be executed to serve as the target typical operation ticket, and then the target typical operation ticket is used as a template to generate the target operation ticket, so that errors caused by manually making the operation ticket are avoided, and the production efficiency of the operation ticket is improved.

Description

Operation ticket generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of power dispatching technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating an operation ticket.
Background
When performing operations such as schedule modification and power transformation on a power system, it is generally necessary to perform a series of operations on power equipment in a specific execution order. For convenience in management, the specific execution sequence is prescribed in the form of an operation ticket, which is the basis for actual operators to operate on site, and the reserved operation ticket can be used as historical data for subsequent use.
When an operation ticket is issued, a worker searches whether a typical operation ticket consistent with the name of the current operation task exists in a historical database according to the name of the operation task, and if so, the typical operation ticket is directly called; if not, a new operation ticket is edited according to the specific connection relation among the power equipment and the requirements of the operation task.
Due to the complexity of the connection relationship between the power equipment, errors often occur in manually preparing operation tickets, and subsequent operation errors are caused, with serious consequences. And the workload of manually making operation tickets is large, and the efficiency is low.
Disclosure of Invention
The invention provides an operation ticket generation method, an operation ticket generation device, operation ticket generation equipment and a storage medium, so that errors caused by manually making the operation ticket are avoided, and the production efficiency of the operation ticket is improved.
In a first aspect, the present invention provides an operation ticket generating method, including:
acquiring a task name of a target operation task to be executed;
extracting an executed object, a starting state and an ending state of the target operation task from the task name as target key information;
searching a target typical operation ticket with the key information of the task name consistent with the target key information from an operation ticket library;
and generating the target operation ticket by taking the target typical operation ticket as a template.
Optionally, extracting the executed object, the start state and the end state of the target operation task from the task name as target key information includes:
Word segmentation processing is carried out on the task names to obtain a plurality of words;
marking the parts of speech of the words, and determining the parts of speech of each word;
And determining an executed object, a starting state and an ending state of the target operation task based on the part of speech of the word and the position information of the word in the task name.
Optionally, word segmentation processing is performed on the task name to obtain a plurality of words, including:
acquiring a dictionary in the electric power field;
Intercepting a character string to be matched from the task name, and matching the character string to be matched with words in the dictionary by adopting a bidirectional maximum matching method to obtain a plurality of words.
Optionally, searching the target typical operation ticket with the key information of the task name consistent with the target key information from the operation ticket library, including:
Acquiring task names of all typical operation tickets in an operation ticket library;
Extracting an executed object, a starting state and an ending state from the task name of the typical operation ticket as key information;
aiming at the key information of each typical operation ticket, respectively vectorizing the target key information and the key information of the typical operation ticket to respectively obtain a first key information vector and a second key information vector;
Calculating the correlation of the first key information vector and the second key information vector;
And taking the typical operation ticket corresponding to the second key information vector with the largest correlation as a target typical operation ticket.
Optionally, vectorizing the target key information and the key information of the typical operation ticket respectively to obtain a first key information vector and a second key information vector, which includes:
Vectorizing an executed object, a starting state and an ending state in the target key information respectively to obtain a first characterization vector of the executed object of the target operation task, a second characterization vector of the starting state of the target operation task and a third characterization vector of the ending state of the target operation task;
Fusing the first characterization vector, the second characterization vector and the third characterization vector to obtain a first key information vector;
Vectorizing an executed object, a starting state and an ending state in key information of the typical operation ticket respectively to obtain a fourth characterization vector of the executed object of the typical operation ticket, a fifth characterization vector of the starting state of the typical operation ticket and a sixth characterization vector of the ending state of the typical operation ticket;
and fusing the fourth characterization vector, the fifth characterization vector and the sixth characterization vector to obtain a second key information vector.
Optionally, generating the target operation ticket by using the target typical operation ticket as a template includes:
acquiring an operation step in a target typical operation ticket;
Extracting the line information and the operation equipment from the operation step, and modifying the line information and the operation equipment of the operation step into null values to obtain an operation ticket template;
determining line information and operation equipment related to the target operation task;
And writing the line information of the target operation task and the operation equipment into the operation ticket template to generate a target operation ticket.
Optionally, after extracting the line information and the operation device from the operation step and modifying the line information and the operation device of the operation step to null values, the method further includes:
Storing the operation ticket template into an operation ticket template library, wherein the operation ticket template comprises key information of an operation task;
After extracting target key information of a target operation task, searching a target operation ticket template with key information consistent with the target key information from the operation ticket template library;
And writing the line information of the target operation task and the operation equipment into the target operation ticket template to generate a target operation ticket.
In a second aspect, the present invention also provides an operation ticket generating apparatus, including:
the task name acquisition module is used for acquiring the task name of the target operation task to be executed;
The key information extraction module is used for extracting an executed object, a starting state and an ending state of the target operation task from the task name as target key information;
the typical operation ticket searching module is used for searching a target typical operation ticket with the key information of the task name consistent with the target key information from the operation ticket library;
and the operation ticket generating module is used for generating a target operation ticket by taking the target typical operation ticket as a template.
In a third aspect, the present invention also provides an electronic device, including:
One or more processors;
A memory for storing one or more programs;
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of generating an operation ticket as provided in the first aspect of the present invention.
In a fourth aspect, the present invention also provides a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, are adapted to carry out the method of generating an operation ticket as provided in the first aspect of the present invention.
The operation ticket generation method provided by the invention comprises the following steps: the method comprises the steps of obtaining a task name of a target operation task to be executed, extracting an executed object, a starting state and an ending state of the target operation task from the task name as target key information, searching a target typical operation ticket with the key information of the task name consistent with the target key information from an operation ticket library, and generating the target operation ticket by taking the target typical operation ticket as a template. According to the method and the device for generating the target operation ticket, the typical operation ticket most relevant to the target operation task to be executed is searched from the typical operation ticket library through the key information of the task name of the target operation task to be executed to serve as the target typical operation ticket, and then the target typical operation ticket is used as a template to generate the target operation ticket, so that errors caused by manually making the operation ticket are avoided, and the production efficiency of the operation ticket is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating an operation ticket according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a target exemplary operation ticket according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an operation ticket template according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a target ticket according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an operation ticket generating apparatus according to an embodiment of the present invention;
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a flowchart of an operation ticket generating method according to an embodiment of the present invention, where the method may be applied to a case of quickly generating an operation ticket based on a task name of an operation task, and the method may be performed by an operation ticket generating device according to an embodiment of the present invention, where the device may be implemented by software and/or hardware, and is generally configured in an electronic device, and as shown in fig. 1, the operation ticket generating method specifically includes the following steps:
s101, acquiring a task name of a target operation task to be executed.
In the field of power management, when a power transformation operation is required to be performed on a certain line, a target operation task to be executed is generally issued by an upper-level scheduling department. For example, the task name is "change 10KV northline bus from cold standby to running".
S102, extracting an executed object, a starting state and an ending state of a target operation task from the task name as target key information.
In the embodiment of the invention, information extraction is carried out on the task name, and the executed object, the starting state and the ending state of the target operation task are extracted from the task name as target key information. Taking a task name of 'turning a 10KV northline bus from cold standby to running' as an example, an executed object is a 'bus', a starting state is a 'cold standby', and an ending state is a 'running'.
Illustratively, in some embodiments of the present invention, extracting the executed object, the start state, and the end state of the target operation task from the task name as target key information includes the sub-steps of:
s1021, word segmentation processing is carried out on the task names, and a plurality of words are obtained.
In the embodiment of the invention, word segmentation processing is carried out on the task name to obtain a plurality of words. For example, "change 10KV northbound bus from cold standby to run" is divided into "change", "10KV", "northbound", "bus", "from cold standby", "change to run".
In some embodiments of the present invention, a dictionary-based word segmentation algorithm is employed to segment task names. The method comprises the steps of obtaining a dictionary of the electric power field, wherein the dictionary comprises commonly used words in the electric power field, intercepting a character string to be matched from a task name, and matching the character string to be matched with the words in the dictionary by adopting a bidirectional maximum matching method to obtain a plurality of words. Specifically, a plurality of words are segmented by adopting a forward maximum matching algorithm, then a plurality of words are segmented by adopting a reverse maximum matching algorithm, then words obtained by the forward maximum matching algorithm and the reverse maximum matching algorithm are compared, when the results of the two word segmentation algorithms are inconsistent, a final result with the least word segmentation number is obtained according to a minimum segmentation principle, and when the word segmentation numbers of the results of the two word segmentation algorithms are the same, the word segmentation result of the reverse maximum matching algorithm is obtained as the final result. The forward maximum matching algorithm firstly takes M characters in a task name from left to right as character strings to be matched, M is the number of characters of the longest words in a dictionary, searches whether the words which are the same as the character strings to be matched exist in the dictionary, if so, the matching is successful, the character strings to be matched are segmented, and M characters are intercepted from the rest characters to be matched again; if the word is not the same as the new character string to be matched exists, the matching is successful, the new character string to be matched is cut out, and M characters are intercepted from the remaining characters to be matched again; if the character string does not exist, the matching is unsuccessful, the last character in the character string to be matched is deleted again, and the process is repeated until all the words are segmented. Firstly taking M characters in a task name from right to left as character strings to be matched by a reverse maximum matching algorithm, wherein M is the number of characters of the longest words in a dictionary, searching whether the words which are the same as the character strings to be matched exist in the dictionary, if so, successfully matching, cutting the character strings to be matched, and intercepting M characters from the rest characters for re-matching; if the word is not the same as the new character string to be matched exists in the dictionary, the matching is successful, the new character string to be matched is cut out, and M characters are intercepted from the remaining characters to be matched again; if the character string does not exist, the matching is unsuccessful, the forefront character in the character string to be matched is deleted again, and the process is repeated until all the words are segmented.
S1022, marking the parts of speech of the words, and determining the parts of speech of each word.
After the task name is segmented to obtain a plurality of words, the words are labeled with parts of speech, and the parts of speech of each word are determined. Specifically, the parts of speech may include line names, proper nouns, verbs, auxiliary words, prepositions, connective words, status words, and the like, which are not limited herein. In the embodiment of the invention, the word parts of speech can be marked by adopting a hidden Markov model or a conditional random field and other algorithms, and the embodiment of the invention is not limited herein.
S1023, determining an executed object, a starting state and an ending state of the target operation task based on the part of speech of the word and the position information of the word in the task name.
In the embodiment of the invention, after determining the part of speech of each word, the executed object, the starting state and the ending state of the target operation task are determined based on the part of speech of the word and the position information of the word in the task name. By way of example, taking the task name "change 10KV northbound bus from cold standby to running," take "as verb," bus "as proper noun," cold standby "and" running "as status words," change "as connective," change "between" cold standby "and" running, "then" cold standby "can be considered as initial state," running "as end state," bus "is located between verb and status word, and can be considered as executed object, thus determining executed object, initial state and end state of target operation task.
S103, searching a target typical operation ticket with the key information of the task name consistent with the target key information from the operation ticket library.
The typical operation ticket is an operation ticket corresponding to the typical operation, and records the task name and operation steps of the typical operation task. Typical tickets are stored and stored in a ticket library. In the embodiment of the invention, the same method as in the previous embodiment is adopted to extract the key information of the task name of the typical operation ticket, and then the target typical operation ticket with the key information of the task name consistent with the target key information is searched from the operation ticket library.
In some embodiments of the present invention, searching for a target typical operation ticket whose key information of a task name is consistent with the target key information from an operation ticket library includes the following sub-steps:
s1031, acquiring task names of all typical operation tickets in the operation ticket library.
In the embodiment of the invention, the task names of all typical operation tickets in the operation ticket library are acquired.
S1032, extracting the executed object, the start state and the end state from the task name of the typical operation ticket as key information.
For each typical operation ticket, the executed object, the start state, and the end state are extracted from the task name of the typical operation ticket as key information. Specifically, the extraction process of the key information of the typical operation ticket is similar to the extraction process of the key information of the task name of the target operation task, and the embodiments of the present invention are not described herein again.
S1033, aiming at the key information of each typical operation ticket, the target key information and the key information of the typical operation ticket are respectively vectorized to obtain a first key information vector and a second key information vector.
And vectorizing the target key information to obtain a first key information vector, and vectorizing the key information of the typical operation ticket aiming at the key information of each typical operation ticket to obtain a second key information vector. For example, in the embodiment of the present invention, the key information may be vectorized by using a bag-of-word model, one-hot coding, or word embedding, which is not limited herein.
In some embodiments of the present invention, vectorizing an executed object, a start state and an end state in target key information respectively to obtain a first token vector of the executed object of the target operation task, a second token vector of the start state of the target operation task and a third token vector of the end state of the target operation task, and fusing the first token vector, the second token vector and the third token vector to obtain a first key information vector. Similarly, vectorizing an executed object, a starting state and an ending state in key information of the typical operation ticket respectively to obtain a fourth characterization vector of the executed object of the typical operation ticket, a fifth characterization vector of the starting state of the typical operation ticket and a sixth characterization vector of the ending state of the typical operation ticket, and fusing the fourth characterization vector, the fifth characterization vector and the sixth characterization vector to obtain a second key information vector.
S1034, calculating a correlation between the first key information vector and the second key information vector.
In the embodiment of the invention, the similarity between the first key information vector and the second key information vector can be calculated as the correlation between the first key information vector and the second key information vector, and the larger the similarity is, the larger the correlation is. In this way, a correlation of the first key information vector with the second key information vector of each representative ticket is obtained.
And S1035, taking the typical operation ticket corresponding to the second key information vector with the largest relativity as a target typical operation ticket.
In the embodiment of the invention, the typical operation ticket corresponding to the second key information vector with the largest correlation is taken as the target typical operation ticket. I.e. the operation task of the target typical operation ticket is most relevant to the target operation task to be performed.
S104, generating the target operation ticket by taking the target typical operation ticket as a template.
In the embodiment of the invention, the target typical operation ticket is generated by taking the target typical operation ticket as a template after determining the sum of the target typical operation tickets most relevant to the target operation task to be executed. The method includes the steps of replacing a name of a target typical operation ticket with a task name of a target operation task to be executed, replacing a line involved in the target typical operation ticket with a line of the target operation task, and replacing equipment in an operation step in the target typical operation ticket with equipment corresponding to the target operation task, so that the target operation ticket is generated.
In some embodiments of the present invention, the target ticket is generated using the target typical ticket as a template, comprising the following sub-steps:
s1041, acquiring an operation step in a target typical operation ticket.
Fig. 2 is a schematic diagram of a target typical operation ticket provided in an embodiment of the present invention, and as shown in fig. 2, the name of an operation task of the target typical operation ticket is "change a bus of a 10KV well Tian Xian from a cold standby to an operation", including 9 operation steps. After determining the target typical operation ticket, the embodiment of the invention acquires the operation steps in the target typical operation ticket.
S1042, extracting line information and operation equipment from the operation step, and modifying the line information and the operation equipment of the operation step into null values to obtain an operation ticket template.
In the embodiment of the invention, for each operation step, the line information and the operation equipment are extracted from the operation step, and the line information of "10KV well Tian Xian" is extracted by taking step 3 as an example, and the operation equipment is a "225-9PT isolating knife switch". And then, the line information and the operation equipment in the operation step are modified to be null values, and an operation ticket template is obtained.
Fig. 3 is a schematic diagram of an operation ticket template according to an embodiment of the present invention, where, as shown in fig. 3, line information of task names in the template is modified to be null, and line information and operation devices in each operation step are modified to be null.
S1043, determining line information and operation equipment related to the target operation task.
In the embodiment of the invention, the line information related to the target operation task can be obtained in the task name, for example, the line information of 'converting a 10KV northline bus from cold standby to running' is '10 KV northline', and the operation equipment related to the target operation task can be searched from a pre-stored equipment relation diagram.
S1044, generating a target operation ticket by using the line information of the target operation task and the operation equipment writing operation ticket template.
Fig. 4 is a schematic diagram of a target operation ticket provided in an embodiment of the present invention, where, as shown in fig. 4, route information of a target operation task and a corresponding position in a write operation ticket template of an operation device are used to generate the target operation ticket.
The operation ticket generation method provided by the embodiment of the invention comprises the following steps: the method comprises the steps of obtaining a task name of a target operation task to be executed, extracting an executed object, a starting state and an ending state of the target operation task from the task name as target key information, searching a target typical operation ticket with the key information of the task name consistent with the target key information from an operation ticket library, and generating the target operation ticket by taking the target typical operation ticket as a template. According to the method and the device for generating the target operation ticket, the typical operation ticket most relevant to the target operation task to be executed is searched from the typical operation ticket library through the key information of the task name of the target operation task to be executed to serve as the target typical operation ticket, and then the target typical operation ticket is used as a template to generate the target operation ticket, so that errors caused by manually making the operation ticket are avoided, and the production efficiency of the operation ticket is improved.
In some embodiments of the present invention, in order to further improve the efficiency of making the operation ticket, in the foregoing embodiments, each time an operation ticket template of a typical operation ticket is obtained, the operation ticket template is stored in the operation ticket template library, and the operation ticket template includes key information of an operation task corresponding to the typical operation ticket. With the increase of the number of times of operation ticket making, more and more operation ticket templates are in the operation ticket template library, so that the operation ticket templates of all typical operation tickets can be obtained. When the operation ticket is required to be manufactured for the target operation task to be executed subsequently, the target operation ticket template with the key information consistent with the target key information of the target operation task to be executed is searched from the operation ticket template library, and then the line information of the target operation task and the operation equipment are written into the target operation ticket template to generate the target operation ticket, so that the efficiency of manufacturing the operation ticket is greatly improved.
Fig. 5 is a schematic structural diagram of an operation ticket generating apparatus according to an embodiment of the present invention, where, as shown in fig. 5, the operation ticket generating apparatus includes:
A task name acquisition module 201, configured to acquire a task name of a target operation task to be executed;
A key information extraction module 202, configured to extract, from the task name, an executed object, a start state, and an end state of the target operation task as target key information;
A typical operation ticket searching module 203, configured to search a target typical operation ticket whose key information of a task name is consistent with the target key information from an operation ticket library;
and the operation ticket generating module 204 is configured to generate a target operation ticket by using the target typical operation ticket as a template.
In some embodiments of the present invention, the key information extraction module 202 includes:
The word segmentation sub-module is used for carrying out word segmentation processing on the task name to obtain a plurality of words;
The part-of-speech tagging sub-module is used for tagging the parts of speech of the words and determining the part of speech of each word;
and the information determination submodule is used for determining an executed object, a starting state and an ending state of the target operation task based on the part of speech of the word and the position information of the word in the task name.
In some embodiments of the invention, the word segmentation submodule includes:
a dictionary acquisition unit configured to acquire a dictionary in the electric power field;
And the matching unit is used for intercepting the character strings to be matched from the task names, and matching the character strings to be matched with the words in the dictionary by adopting a bidirectional maximum matching method to obtain a plurality of words.
In some embodiments of the present invention, the exemplary operation ticket lookup module 203 includes:
The task name acquisition sub-module is used for acquiring task names of all typical operation tickets in the operation ticket library;
A key information extraction sub-module, configured to extract an executed object, a start state, and an end state from the task name of the typical operation ticket as key information;
The vectorization sub-module is used for vectorizing the target key information and the key information of the typical operation ticket respectively aiming at the key information of each typical operation ticket to obtain a first key information vector and a second key information vector respectively;
A correlation calculation sub-module for calculating the correlation of the first key information vector and the second key information vector;
And the target typical operation ticket determining sub-module is used for taking the typical operation ticket corresponding to the second key information vector with the largest correlation as the target typical operation ticket.
In some embodiments of the invention, the vectoring submodule includes:
the first vectorization unit is used for vectorizing the executed object, the starting state and the ending state in the target key information respectively to obtain a first characterization vector of the executed object of the target operation task, a second characterization vector of the starting state of the target operation task and a third characterization vector of the ending state of the target operation task;
The first fusion unit is used for fusing the first characterization vector, the second characterization vector and the third characterization vector to obtain a first key information vector;
The second vectorization unit is used for vectorizing the executed object, the starting state and the ending state in the key information of the typical operation ticket respectively to obtain a fourth characterization vector of the executed object of the typical operation ticket, a fifth characterization vector of the starting state of the typical operation ticket and a sixth characterization vector of the ending state of the typical operation ticket;
and the second fusion unit is used for fusing the fourth characterization vector, the fifth characterization vector and the sixth characterization vector to obtain a second key information vector.
In some embodiments of the present invention, the operation ticket generation module 204 includes:
the operation step acquisition sub-module is used for acquiring operation steps in the target typical operation ticket;
the operation ticket template determining submodule is used for extracting the line information and the operation equipment from the operation step, and modifying the line information and the operation equipment of the operation step into null values to obtain an operation ticket template;
a target information determining sub-module, configured to determine line information and operation equipment related to the target operation task;
and the operation ticket generation sub-module is used for writing the line information of the target operation task and the operation equipment into the operation ticket template to generate a target operation ticket.
In some embodiments of the present invention, the operation ticket generating apparatus further includes:
The operation ticket template library storage module is used for extracting the line information and the operation equipment from the operation step, modifying the line information and the operation equipment of the operation step into null values, and storing the operation ticket template into the operation ticket template library after obtaining the operation ticket template, wherein the operation ticket template comprises key information of an operation task;
the operation ticket template searching module is used for searching a target operation ticket template with the key information consistent with the target key information from the operation ticket template library after extracting the target key information of the target operation task;
and the target operation ticket generating module is used for writing the line information of the target operation task and the operation equipment into the target operation ticket template to generate a target operation ticket.
The operation ticket generating device can execute the operation ticket generating method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the operation ticket generating method.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device can also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, such as the operation ticket generation method.
In some embodiments, the operation ticket generation method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the operation ticket generation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the operation ticket generation method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
The embodiments of the present application also provide a computer program product comprising a computer program which, when executed by a processor, implements the method of generating an operation ticket as provided by any of the embodiments of the present application.
Computer program product in the implementation, the computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (8)

1. A method of generating an operation ticket, comprising:
acquiring a task name of a target operation task to be executed;
extracting an executed object, a starting state and an ending state of the target operation task from the task name as target key information;
searching a target typical operation ticket with the key information of the task name consistent with the target key information from an operation ticket library;
Generating a target operation ticket by taking the target typical operation ticket as a template;
Generating a target operation ticket by taking the target typical operation ticket as a template, wherein the target operation ticket comprises the following steps:
acquiring an operation step in a target typical operation ticket;
Extracting line information and operation equipment from the operation step, and modifying the line information and the operation equipment of the operation step into null values to obtain an operation ticket template;
determining line information and operation equipment related to the target operation task;
Writing the line information of the target operation task and the operation equipment into the operation ticket template to generate a target operation ticket;
Searching a target typical operation ticket with the key information of the task name consistent with the target key information from an operation ticket library, wherein the method comprises the following steps:
Acquiring task names of all typical operation tickets in an operation ticket library;
Extracting an executed object, a starting state and an ending state from the task name of the typical operation ticket as key information;
aiming at the key information of each typical operation ticket, respectively vectorizing the target key information and the key information of the typical operation ticket to respectively obtain a first key information vector and a second key information vector;
Calculating the correlation of the first key information vector and the second key information vector;
And taking the typical operation ticket corresponding to the second key information vector with the largest correlation as a target typical operation ticket.
2. The operation ticket generation method according to claim 1, wherein extracting the executed object, the start state, and the end state of the target operation task from the task name as target key information includes:
Word segmentation processing is carried out on the task names to obtain a plurality of words;
marking the parts of speech of the words, and determining the parts of speech of each word;
And determining an executed object, a starting state and an ending state of the target operation task based on the part of speech of the word and the position information of the word in the task name.
3. The operation ticket generating method according to claim 1, wherein the word segmentation processing is performed on the task name to obtain a plurality of words, comprising:
acquiring a dictionary in the electric power field;
Intercepting a character string to be matched from the task name, and matching the character string to be matched with words in the dictionary by adopting a bidirectional maximum matching method to obtain a plurality of words.
4. The operation ticket generating method according to claim 1, wherein vectorizing the target key information and the key information of the typical operation ticket, respectively, to obtain a first key information vector and a second key information vector, respectively, comprises:
Vectorizing an executed object, a starting state and an ending state in the target key information respectively to obtain a first characterization vector of the executed object of the target operation task, a second characterization vector of the starting state of the target operation task and a third characterization vector of the ending state of the target operation task;
Fusing the first characterization vector, the second characterization vector and the third characterization vector to obtain a first key information vector;
Vectorizing an executed object, a starting state and an ending state in key information of the typical operation ticket respectively to obtain a fourth characterization vector of the executed object of the typical operation ticket, a fifth characterization vector of the starting state of the typical operation ticket and a sixth characterization vector of the ending state of the typical operation ticket;
and fusing the fourth characterization vector, the fifth characterization vector and the sixth characterization vector to obtain a second key information vector.
5. The operation ticket generating method according to claim 1, further comprising, after extracting line information and operation equipment from the operation step and modifying the line information and operation equipment of the operation step to null values, obtaining an operation ticket template:
Storing the operation ticket template into an operation ticket template library, wherein the operation ticket template comprises key information of an operation task;
After extracting target key information of a target operation task, searching a target operation ticket template with key information consistent with the target key information from the operation ticket template library;
And writing the line information of the target operation task and the operation equipment into the target operation ticket template to generate a target operation ticket.
6. An operation ticket generating apparatus, comprising:
the task name acquisition module is used for acquiring the task name of the target operation task to be executed;
The key information extraction module is used for extracting an executed object, a starting state and an ending state of the target operation task from the task name as target key information;
the typical operation ticket searching module is used for searching a target typical operation ticket with the key information of the task name consistent with the target key information from the operation ticket library;
The operation ticket generation module is used for generating a target operation ticket by taking the target typical operation ticket as a template;
The operation ticket generation module comprises:
the operation step acquisition sub-module is used for acquiring operation steps in the target typical operation ticket;
the operation ticket template determining submodule is used for extracting line information and operation equipment from the operation step, and modifying the line information and the operation equipment of the operation step into null values to obtain an operation ticket template;
a target information determining sub-module, configured to determine line information and operation equipment related to the target operation task;
the operation ticket generation sub-module is used for writing the line information of the target operation task and the operation equipment into the operation ticket template to generate a target operation ticket;
the exemplary operation ticket lookup module includes:
The task name acquisition sub-module is used for acquiring task names of all typical operation tickets in the operation ticket library;
A key information extraction sub-module, configured to extract an executed object, a start state, and an end state from the task name of the typical operation ticket as key information;
The vectorization sub-module is used for vectorizing the target key information and the key information of the typical operation ticket respectively aiming at the key information of each typical operation ticket to obtain a first key information vector and a second key information vector respectively;
A correlation calculation sub-module for calculating the correlation of the first key information vector and the second key information vector;
And the target typical operation ticket determining sub-module is used for taking the typical operation ticket corresponding to the second key information vector with the largest correlation as the target typical operation ticket.
7. An electronic device, comprising:
One or more processors;
A memory for storing one or more programs;
When executed by the one or more processors, causes the one or more processors to implement the operation ticket generation method of any of claims 1-5.
8. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, which when executed by a processor, are adapted to carry out the operation ticket generation method according to any of claims 1 to 5.
CN202310722314.1A 2023-06-19 2023-06-19 Operation ticket generation method, device, equipment and storage medium Active CN116484826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310722314.1A CN116484826B (en) 2023-06-19 2023-06-19 Operation ticket generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310722314.1A CN116484826B (en) 2023-06-19 2023-06-19 Operation ticket generation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116484826A CN116484826A (en) 2023-07-25
CN116484826B true CN116484826B (en) 2024-04-26

Family

ID=87218114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310722314.1A Active CN116484826B (en) 2023-06-19 2023-06-19 Operation ticket generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116484826B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093675A (en) * 2023-10-18 2023-11-21 江苏泰坦智慧科技有限公司 Operation ticket searching and matching method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376353A (en) * 2018-09-04 2019-02-22 国家电网公司华东分部 A kind of power grid start-up operation ticket generating means and method based on natural language processing
CN111581965A (en) * 2020-04-26 2020-08-25 云南电网有限责任公司昆明供电局 Operation ticket generation method and device
CN111680801A (en) * 2020-06-01 2020-09-18 广东电网有限责任公司 Operation checking method, device, equipment and storage medium
CN115392722A (en) * 2022-08-26 2022-11-25 广东电网有限责任公司 Operation ticket generation method and device, electronic equipment and storage medium
CN115511368A (en) * 2022-10-21 2022-12-23 广东电网有限责任公司 Method, device, equipment, medium and power grid management platform for generating operation ticket of electric system
WO2023098375A1 (en) * 2021-12-01 2023-06-08 珠海优特电力科技股份有限公司 Operation sheet processing method and device, storage medium, and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376353A (en) * 2018-09-04 2019-02-22 国家电网公司华东分部 A kind of power grid start-up operation ticket generating means and method based on natural language processing
CN111581965A (en) * 2020-04-26 2020-08-25 云南电网有限责任公司昆明供电局 Operation ticket generation method and device
CN111680801A (en) * 2020-06-01 2020-09-18 广东电网有限责任公司 Operation checking method, device, equipment and storage medium
WO2023098375A1 (en) * 2021-12-01 2023-06-08 珠海优特电力科技股份有限公司 Operation sheet processing method and device, storage medium, and electronic device
CN115392722A (en) * 2022-08-26 2022-11-25 广东电网有限责任公司 Operation ticket generation method and device, electronic equipment and storage medium
CN115511368A (en) * 2022-10-21 2022-12-23 广东电网有限责任公司 Method, device, equipment, medium and power grid management platform for generating operation ticket of electric system

Also Published As

Publication number Publication date
CN116484826A (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN113792154B (en) Method and device for determining fault association relationship, electronic equipment and storage medium
CN116226350A (en) Document query method, device, equipment and storage medium
CN112988753B (en) Data searching method and device
CN113128209B (en) Method and device for generating word stock
CN116484826B (en) Operation ticket generation method, device, equipment and storage medium
CN113836314B (en) Knowledge graph construction method, device, equipment and storage medium
CN113407610B (en) Information extraction method, information extraction device, electronic equipment and readable storage medium
CN112559717B (en) Search matching method, device, electronic equipment and storage medium
CN114647727A (en) Model training method, device and equipment applied to entity information recognition
CN117971698A (en) Test case generation method and device, electronic equipment and storage medium
CN112699237B (en) Label determination method, device and storage medium
CN113051896A (en) Method and device for correcting text, electronic equipment and storage medium
CN112560425A (en) Template generation method and device, electronic equipment and storage medium
CN114818736B (en) Text processing method, chain finger method and device for short text and storage medium
CN116049370A (en) Information query method and training method and device of information generation model
CN114239562B (en) Method, device and equipment for identifying program code blocks in document
CN115600592A (en) Method, device, equipment and medium for extracting key information of text content
CN115687031A (en) Method, device, equipment and medium for generating alarm description text
CN114417862A (en) Text matching method, and training method and device of text matching model
CN113343047A (en) Data processing method, data retrieval method and device
CN113268987B (en) Entity name recognition method and device, electronic equipment and storage medium
CN113377921B (en) Method, device, electronic equipment and medium for matching information
CN114491040B (en) Information mining method and device
CN115270757A (en) Text recognition method and device, electronic equipment and storage medium
CN117952108A (en) Entity identification method, device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant