CN109800423A - Method and apparatus are determined based on the power-off event of power failure plan sentence - Google Patents

Method and apparatus are determined based on the power-off event of power failure plan sentence Download PDF

Info

Publication number
CN109800423A
CN109800423A CN201811570176.5A CN201811570176A CN109800423A CN 109800423 A CN109800423 A CN 109800423A CN 201811570176 A CN201811570176 A CN 201811570176A CN 109800423 A CN109800423 A CN 109800423A
Authority
CN
China
Prior art keywords
sentence
power failure
identified
action type
failure plan
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.)
Pending
Application number
CN201811570176.5A
Other languages
Chinese (zh)
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.)
Guangzhou Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Guangzhou Power Supply Bureau Co Ltd
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 Guangzhou Power Supply Bureau Co Ltd filed Critical Guangzhou Power Supply Bureau Co Ltd
Priority to CN201811570176.5A priority Critical patent/CN109800423A/en
Publication of CN109800423A publication Critical patent/CN109800423A/en
Pending legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)

Abstract

This application involves a kind of power-off events based on power failure plan sentence to determine method and apparatus.The described method includes: obtaining the corresponding regular expression of power failure plan sentence of each action type, receive power failure plan sentence to be identified, according to regular expressions, matching obtains the corresponding action type of power failure plan sentence to be identified, syntax dependency parsing is carried out to power failure to be identified plan sentence, it determines the operation equipment for including in power failure plan sentence to be identified, according to action type and operation equipment, determines the power-off event in power failure plan sentence to be identified.It can be improved the accuracy rate of power-off event identification using this method.

Description

Method and apparatus are determined based on the power-off event of power failure plan sentence
Technical field
This application involves technical field of electric power, more particularly to a kind of power-off event determination side based on the plan sentence that has a power failure Method, device, computer equipment and storage medium.
Background technique
As network load increases the fast development with smart grid, in safe, economic, the high-quality operation of power grid, electricity Net dispatch automated system status is more important, and the effect of performance is also increasing, and at the same time, the development of smart grid is exchanged The ability that degree controls bulk power grid proposes new higher requirement, therefore, dispatches intelligentized research and building-up work is compeled in eyebrow Eyelash.
Want that power dispatching automation degree will be improved, it just must be using natural language expressing in previous power scheduling Document, information are parsed into the data that computer can identify, to obtain power failure scheduled events.In power scheduling field, need The power equipment that information there are two types of parsing from power failure plan sentence --- operation species and operation are related to, to obtain Power-off event.
Currently, being also in exploration initial stage, existing technology using the research of natural language processing technique in the power system Machine learning techniques are based primarily upon, although required basic function can be completed, technical difficulty is big, enters gate threshold height, operation It is cumbersome laborious.In addition to this, natural language processing technique is towards pure open natural language, word, clause repetitive rate It is low, so the characteristics of natural language processing technique based on statistical method is wide application, but it cannot be guaranteed that the standard of semantic understanding Exactness.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide one kind be able to solve identification power failure plan sentence in have a power failure The power-off event based on power failure plan sentence of the low problem of plan accuracy rate determines method and apparatus.
A kind of power-off event based on power failure plan sentence determines method, which comprises
Obtain the corresponding regular expression of power failure plan sentence of each action type;
Power failure plan sentence to be identified is received, according to the regular expression, matching obtains the power failure plan to be identified The corresponding action type of sentence;
Syntax dependency parsing is carried out to the power failure plan sentence to be identified, is determined in the power failure plan sentence to be identified The operation equipment for including;
According to the action type and the operation equipment, the power failure thing in the power failure plan sentence to be identified is determined Part.
The corresponding regular expressions of power failure plan sentence for obtaining each action type in one of the embodiments, Formula, comprising:
Multiple power failure plan sentences are obtained as sample sentence;Each sample sentence is clustered, each operation is obtained The corresponding sample sentence of type;Canonical tanalysis is carried out to the corresponding sample sentence of each action type, obtains each operation The corresponding regular expression of power failure plan sentence of type.
In one of the embodiments, further include: according to the Pinyin sorting of phonetic transcriptions of Chinese characters in the sample sentence, to each Sample sentence is ranked up;According to the sequence of each sample sentence, the corresponding sample sentence of each action type is determined.
The Pinyin sorting includes positive sequence and inverse sequence in one of the embodiments,;Further include: according to the sample The positive sequence of phonetic transcriptions of Chinese characters in sentence carries out positive sequence to each sample sentence;According to the positive sequence, each behaviour is determined Make the corresponding first sample sentence of type;According to the inverse sequence of phonetic transcriptions of Chinese characters in the sample sentence, to each sample sentence into Row converse sequencing;According to the converse sequencing, the corresponding second sample sentence of each action type is determined;According to first sample This sentence and the second sample sentence determine the corresponding sample sentence of each action type.
Syntax dependency parsing is carried out to the power failure to be identified plan sentence in one of the embodiments, determine described in The operation equipment for including in power failure plan sentence to be identified, comprising:
The power failure plan sentence to be identified is segmented, multiple Feature Words are obtained;
Part-of-speech tagging is carried out to the Feature Words, according to the part-of-speech tagging, to each Feature Words carry out syntax according to Deposit analysis;
According to the syntax dependency parsing as a result, determining that the operation for including in the power failure plan sentence to be identified is set It is standby.
In one of the embodiments, further include: the pre-set pyltp of input by sentence is planned into the power failure to be identified Model obtains the result of the corresponding syntax dependency parsing of the power failure plan sentence to be identified;It is interdependent according to the syntax Analysis as a result, determining the operation equipment for including in the power failure plan sentence to be identified.
In one of the embodiments, further include: in the power failure plan to be identified input by sentence regular expression library, obtain Plan the corresponding target regular expression of sentence to the power failure to be identified;In the regular expression library comprising it is multiple it is described just Then expression formula;According to the corresponding action type of the target regular expression, determine that the power failure plan sentence to be identified is corresponding Action type.
A kind of power-off event determining device based on the plan sentence that has a power failure, described device include:
Expression formula obtains module, for obtaining the corresponding regular expression of power failure plan sentence of each action type;
Action type matching module is matched for receiving power failure plan sentence to be identified according to the regular expression Plan the corresponding action type of sentence to the power failure to be identified;
Equipment determining module is operated, for carrying out syntax dependency parsing to the power failure plan sentence to be identified, determines institute State the operation equipment for including in power failure plan sentence to be identified;
Identification module, for determining the power failure plan language to be identified according to the action type and the operation equipment Power-off event in sentence.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device performs the steps of when executing the computer program
Obtain the corresponding regular expression of power failure plan sentence of each action type;
Power failure plan sentence to be identified is received, according to the regular expression, matching obtains the power failure plan to be identified The corresponding action type of sentence;
Syntax dependency parsing is carried out to the power failure plan sentence to be identified, is determined in the power failure plan sentence to be identified The operation equipment for including;
According to the action type and the operation equipment, the power failure thing in the power failure plan sentence to be identified is determined Part.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
Obtain the corresponding regular expression of power failure plan sentence of each action type;
Power failure plan sentence to be identified is received, according to the regular expression, matching obtains the power failure plan to be identified The corresponding action type of sentence;
Syntax dependency parsing is carried out to the power failure plan sentence to be identified, is determined in the power failure plan sentence to be identified The operation equipment for including;
According to the action type and the operation equipment, the power failure thing in the power failure plan sentence to be identified is determined Part.
Above-mentioned power-off event recognition methods and device based on the plan sentence that has a power failure, by obtaining stopping for each action type The corresponding regular expression of electricity plan sentence, receives power failure to be identified and plans sentence, and according to regular expressions, matching is obtained wait know The corresponding action type of sentence Ting electricity not planned, syntax dependency parsing is carried out to power failure to be identified plan sentence, is determined to be identified The operation equipment for including in power failure plan sentence determines in power failure plan sentence to be identified according to action type and operation equipment Power-off event.The embodiment of the present invention can be improved certainly by the corresponding regular expression of each action type pre-established Then accuracy when right sentence identification utilizes syntax so that power failure plan sentence correspondence is categorized into corresponding action type Dependency analysis, matching obtain the corresponding operation equipment of power failure plan sentence, to accurately determine power-off event, improve power failure thing The accuracy of part identification.
Detailed description of the invention
Fig. 1 is the applied environment figure for determining method in one embodiment based on the power-off event of power failure plan sentence;
Fig. 2 is the flow diagram for determining method in one embodiment based on the power-off event of power failure plan sentence;
Fig. 3 is the flow diagram that regular expression step is obtained in one embodiment;
Fig. 4 is the flow diagram that operation device step is obtained in another embodiment;
Fig. 5 is the schematic diagram of syntax dependency parsing result in an embodiment;
Fig. 6 is the structural block diagram of the power-off event determining device based on the plan sentence that has a power failure in one embodiment;
Fig. 7 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which purpose, technology event and the advantage of the application is more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Power-off event recognition methods provided by the present application based on the plan sentence that has a power failure, can be applied to as shown in Figure 1 In application environment.Wherein, terminal 102 is communicated with server 104 by network by network.Wherein, terminal 102 can with but It is not limited to various personal computers, laptop, smart phone, tablet computer and portable wearable device, server 104 can be realized with the server cluster of the either multiple server compositions of independent server.
Server 104 receives a large amount of power failure plan sentence, by summarizing to each power failure plan sentence, obtains When regular expressions, so that it is determined that the corresponding action type of each power failure plan sentence of subsequent input, then counts each power failure It is interdependent to draw sentence progress syntax, determines that its operates equipment, so that the action type and operation that are identified using server 104 are set It is standby, determine power-off event in the identifiable power failure plan sentence of computer.
In one embodiment, as shown in Fig. 2, providing a kind of power-off event determination side based on power failure plan sentence Method is applied to be illustrated for the server in Fig. 1 in this way, comprising the following steps:
Step 202, the corresponding regular expression of power failure plan sentence of each action type is obtained.
Wherein, when publication has a power failure plan, corresponding power failure plan sentence can be issued, power failure plan sentence belongs to nature language Sentence.The information for having contained action type in power failure sentence, in power domain, action type may include: that master is converted in substation Become powered operation, throw and move back stability control device channel clamp operation etc..Regular expression is a kind of regular expression of computer, can be with For carrying out string operation, under the rule of regular expression, [u4e00- u9fa5] refers to all Chinese characters, and { 0, X } refers to Occurrence in the bracket of front can occur 0 time to X times, therefore, when passing through regular expressions, can plan language to having a power failure Sentence is summarized, so that it is determined that the corresponding regular expression of power failure plan sentence of each action type.
Step 204, it receives power failure to be identified and plans sentence, according to regular expressions, matching obtains power failure plan to be identified The corresponding action type of sentence.
Power failure plan sentence to be identified belongs to power failure plan sentence, and after summary obtains regular expression, server can To receive power failure plan sentence to be identified, so that matching obtains power failure plan sentence to be identified according to obtained regular expression Corresponding action type.
Step 206, syntax dependency parsing is carried out to power failure to be identified plan sentence, determined in power failure plan sentence to be identified The operation equipment for including.
Syntax dependency parsing refers to the part of speech in part of speech analysis and power failure plan sentence to be identified between each participle Connection.
By carrying out syntax dependency parsing, the part of speech of each participle in power failure plan sentence to be identified is described, thus really The equipment for including in fixed power failure plan sentence to be identified, so that it is determined that operation equipment.
Step 208, according to action type and operation equipment, the power-off event in power failure plan sentence to be identified is determined.
After server determines action type and operation equipment, it can determine that is contained in power failure plan sentence to be identified stops Electric event.It is worth noting that the power-off event is that computer can identify message.
The above-mentioned power-off event based on power failure plan sentence determines in method, by the power failure meter for obtaining each action type The corresponding regular expression of sentence is drawn, power failure to be identified is received and plans sentence, according to regular expressions, matching obtains to be identified stop The corresponding action type of electricity plan sentence carries out syntax dependency parsing to power failure to be identified plan sentence, determines power failure to be identified The operation equipment for including in plan sentence determines and stops in power failure plan sentence to be identified according to action type and operation equipment Electric event.Nature language can be improved by the corresponding regular expression of each action type pre-established in the embodiment of the present invention Accuracy when sentence identification, so that power failure plan sentence correspondence is categorized into corresponding action type, it is then interdependent using syntax Analysis, matching obtain the corresponding operation equipment of power failure plan sentence, to accurately determine power-off event, improve power-off event and know Other accuracy.
In one of the embodiments, as shown in figure 3, providing a kind of schematic flow for obtaining regular expression step Figure, the specific steps are as follows:
Step 302, multiple power failure plan sentences are obtained as sample sentence.
Sample sentence can be random power failure plan sentence, in order to provide sample size, can stop taking human as setting is multiple Electricity plan sentence can also be extracted as sample sentence from history power failure plan sentence.
Step 304, each sample sentence is clustered, obtains the corresponding sample sentence of each action type.
By clustering to sample sentence, the corresponding sample sentence of each action type can be determined, so as to root According to the specific of clause, the extraction of regular expression is carried out.
Step 306, canonical tanalysis is carried out to the corresponding sample sentence of each action type, obtains stopping for each action type The corresponding regular expression of electricity plan sentence.
Canonical tanalysis refers to that clause is analyzed, that is, determines each part that can carry out regularization in power failure plan sentence.
It, can be using any power failure plan sentence as training sample, to be determined by cluster in the embodiment of the present invention The sample sentence of each action type, summary obtains the corresponding regular expression of each action type, without artificial intervention, from And it has been obviously improved the degree of automation, also improve the efficiency for obtaining regular expression.
It, can be to go through in one of the embodiments, when obtaining the sample for the plan sentence that has a power failure for step 302 It is extracted in history power-off event, due to containing the information of action type in power-off event, so as to use action type Label the power failure plan sentence in history power-off event is marked, thus when being clustered, it is only necessary to pass through operation The label of type, it can complete cluster, Clustering Effect is obvious, promotes the accuracy of cluster.
For step 304, in one embodiment, can be sorted by phonetic transcriptions of Chinese characters, to sample be ranked up, according to each The sequence of a sample sentence determines the corresponding sample sentence of each action type.In the present embodiment, Pinyin sorting is referred to wait know The Pinyin sorting of Chinese character in sentence Ting electricity not planned, Pinyin sorting is referred to according to the sequence in phonetic alphabet.
Specifically, with power failure to be identified plan sentence " 9 first and second wiretap stand-by heat of Guangdong station 110kV charcoal " and " confirmation 110kV backup auto-activating device charging modes are consistent with actual operating " for, it, only to right rule, is successively extracted according to from left Chinese character in the plan sentence to be identified that has a power failure, respectively " wide " and " true ", so that breathing out sub- phonetic is respectively " g " and " q ", it can be true The sequence of fixed " g " is forward, therefore, to " 9 first and second wiretap stand-by heat of Guangdong station 110kV charcoal " and " confirmation 110kV prepared auto restart dress It is consistent with actual operating to set charging modes " sequence when, be sequentially " 9 first and second wiretap stand-by heat of Guangdong station 110kV charcoal ", " confirmation 110kV backup auto-activating device charging modes are consistent with actual operating ".
In another embodiment, it in order to improve the automated procedures of system, can be realized by following procedure code, program Code is realized in advance using python.
Wherein, py.txt is the dictionary file being made of Chinese characters and pinyin;Searchdict is dictionary lookup function;dic For the dictionary being made of Chinese characters and pinyin;Usentence is individual Chinese character;Comp_sentence_PY is more single character letter Number;Function is to compare the sequence of two phonetic of A, B, if the phonetic of Chinese character A after B, returns to 1;If the phonetic of A returns after B Return 0;Otherwise -1 is returned.Comp_sentence is the function for comparing character string, and function is to compare two words of A, B from front to back Accord with the pinyin order of string.If first word is equal, more next word is continued to.If the phonetic of character string A is in B Afterwards, 1 is returned, otherwise returns to 0;Cnsort is ranking functions, and input nline is the out-of-order list by forming to sequencing character string, Output is the ascending order list after sequence.It is worth noting that the input of above procedure code is sample statement list, sample statement list In include multiple sample sentences.
In another embodiment, Pinyin sorting includes positive sequence and inverse sequence, when being ranked up, according in sample sentence The positive sequence of phonetic transcriptions of Chinese characters carries out positive sequence to each sample sentence, is sorted according to forward direction, determines that each action type is corresponding First sample sentence converse sequencing is carried out to each sample sentence according to the inverse sequence of phonetic transcriptions of Chinese characters in sample sentence, according to Converse sequencing determines the corresponding second sample sentence of each action type, according to first sample sentence and the second sample sentence, really Determine the corresponding sample sentence of each action type.In the present embodiment, when can not accurately be clustered for forward direction sequence, carry out Secondary cluster, to improve the accuracy of cluster.
In one embodiment, according to first sample sentence and the second sample sentence, the corresponding sample of each action type is determined This sentence may is that according to first sample sentence, determine the first cluster result, determine the second cluster knot according to the second sample sentence Fruit, then detects the first cluster result and whether the second cluster result is consistent, if so, determine the first cluster result of output, if As a result inconsistent, then the second cluster result is exported, to improve the accuracy of cluster.
For above procedure code, the program code for carrying out inverse sequence be may is that
def reverse1(s):
return s[::-1]
Wherein, which carries out inverse sequence for input, such as " 110kV charcoal 9 first and second wiretap in Guangdong station is hot standby for input With ", then the function exports " it is eastern wide that the station nine carbon Vk011 of second first of bursting at the seams is closed with standby heat ".
It, in one embodiment, can be to sample language when obtaining the corresponding sample sentence of action type for step 306 Sentence carries out canonical tanalysis, and specific step is as follows for canonical tanalysis: sample sentence is segmented, station name, implementor name are taken out, thus It obtains the action type and corresponds to regular expression, shown in specific table 1.
Table 1
Wherein, [u4e00- u9fa5] refers to that the position can match all Chinese characters, and { 0, X } refers to positioned at front bracket In occurrence can occur 0 time to X times, [A-Za-z0-9] refer to the position can matched size write English alphabet and number 0- 9, [u4e00- u9fa5A-Za-z0-9] refers to that the position can match Chinese character, capital and small letter English character and number 0-9.This implementation In example, by establishing the corresponding regular expression of each action type, regular expression is enabled to match all direction behaviour Make the operation clause of type.
In another embodiment, after obtaining regular expression, carrying out the matched program code of action type can be as Shown in lower:
Wherein, input variable PATTERN is the regular expression summed up, and sentence is that language is planned in power failure to be identified Sentence.It is worth noting that this function, which needs to use python third party, wraps re.
In one embodiment, specific to walk as shown in figure 4, providing a kind of schematic flow chart for obtaining operation device step It is rapid as follows:
Step 402, power failure plan sentence to be identified is segmented, obtains multiple Feature Words.
Power failure plan sentence to be identified can be segmented using the participle tool of open source, so as to obtain multiple spies Levy word.
Step 404, part-of-speech tagging is carried out to Feature Words, according to part-of-speech tagging, interdependent point of syntax is carried out to each Feature Words Analysis.
After participle, can carry out part-of-speech tagging to Feature Words by part-of-speech tagging can be to each by part of speech relationship Feature Words carry out syntax dependency parsing, and what syntax dependency parsing was analyzed is the connection between each Feature Words.
Step 406, according to syntax dependency parsing as a result, determining that the operation for including in power failure plan sentence to be identified is set It is standby.
It is interdependent as a result, the operation equipment of multiple Feature Words compositions can be determined, so that it is determined that be identified out to obtain syntax The operation equipment for including in power failure plan sentence.
In the present embodiment, by syntax dependency parsing, the operation for including in power failure plan sentence to be identified can be determined Equipment, to be conducive to further determine that power-off event.
For step 402, in one embodiment, power failure sentence to be identified can be divided using the participle tool of open source Word, after participle, removal stop words, symbol etc. obtain Feature Words.
It is that " Guangdong station 10kV1M bus load turns the confession of 2M bus " is with input in one embodiment for step 404 Example, feature word sequence after segmenting be " Guangdong station, 10kV, 1M, bus, load, turn, bus, for ", obtained part of speech sequence For " when carrying out syntax dependency parsing, it is as shown in Figure 5 therefore to obtain the interdependent result of syntax by ns, m, m, n, n, v, m, n, v ".
For step 406, the foundation that relationship is extracted as equipment in surely can be used, fixed middle relationship is " ATT " in Fig. 5, Therefore, the operation equipment of extraction is " Guangdong station 10kV1M bus " and " 2M bus ".
In another embodiment, can by power failure to be identified plan the pre-set pyltp model of input by sentence, obtain to The corresponding syntax dependency parsing of identification power failure plan sentence as a result, according to syntax dependency parsing as a result, determining to be identified stop The operation equipment for including in electricity plan sentence.Since pyltp model is a kind of canned program of open source, can provide participle, Part-of-speech tagging, name Entity recognition, interdependent syntactic analysis, semantic character labeling function.Therefore, power failure to be identified can be counted Draw input by sentence pyltp model, it can export the result of syntax dependency parsing.
In one embodiment, the step of matching operation type may also is that power failure plan input by sentence canonical to be identified In expression formula library, the corresponding target regular expression of power failure plan sentence to be identified is obtained, includes multiple in regular expression library Regular expression determines that the power failure plan sentence to be identified is corresponding according to the corresponding action type of target regular expression Action type.
Below with a specific embodiment, technical solution of the present invention is further detailed.
In one embodiment, the input sample sentence of server is as shown in table 2:
Table 2
It is just being sorted to above-mentioned sample sentence and against after sorting, obtained sample is as shown in table 3:
Table 3
For investment route from throwing 8 of function, it can be gathered that regular expression " (investment) * (release) * [and u4e00- U9fa5A-Za-z0-9] { 0,50 } route is from throwing function ";Stability control device channel clamp operation is moved back for 5 throwings, can be summed up Regular expression " (investment) * (exits) * [u4e00- u9fa5A-Za-z0-9] { 0,50 } channel pressing plate ";For 8 power transformations Main transformer powered operation is converted in standing, can summing up regular expression, " [u4e00- u9fa5] { 0,3 } # [0-9] main transformer of stand is born Lotus turns to be powered by? # [0-9] main transformer? ".There is same quasi-sentence that can realize sentence meaning reason using regular expression Rapid matching again later Solution.
With power failure to be identified plan sentence " Tian Hezhan #3 main transformer load turns the confession of #1 main transformer " and " exit 220kV Chinese Tian Zhanwen Control the northern god-son station channel B pressing plate of device " for, after being matched by above procedure code, by " Tian Hezhan #3 main transformer is negative Lotus turns the confession of #1 main transformer " it is classified as converting main transformer powered operation in substation, " the north religion of 220kV Chinese field station stability control device will be exited Substation channel B pressing plate ", which is classified as throwing, moves back stability control device channel clamp operation.
Then " Tian Hezhan #3 main transformer load turns the confession of #1 main transformer " is inputted in pyltp model, obtaining segmentation sequence is " field river Stand, #3, main transformer, load, turn, #1, main transformer, for ", further part-of-speech tagging sequence be " ns, m, n, n, v, m, n, v ", thus into Row syntax dependency parsing obtains syntax dependency parsing as a result, extracting wherein ATT relationship, and obtaining operation equipment is " Tian Hezhan #3 master Become " and " #1 main transformer "
It should be understood that although each step in the flow chart of Fig. 2-4 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-4 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in fig. 6, providing a kind of determining dress of the power-off event based on power failure plan sentence It sets, comprising: expression formula obtains module 602, action type matching module 604, operation equipment determining module 606 and identification module 608, in which:
Expression formula obtains module 602, for obtaining the corresponding regular expression of power failure plan sentence of each action type;
Action type matching module 604, for receiving power failure plan sentence to be identified, according to the regular expression, With obtaining the corresponding action type of the power failure plan sentence to be identified;
Equipment determining module 606 is operated, for carrying out syntax dependency parsing to the power failure plan sentence to be identified, is determined The operation equipment for including in the power failure plan sentence to be identified;
Identification module 608, for determining the power failure plan to be identified according to the action type and the operation equipment Power-off event in sentence.
Expression formula obtains module 602 and is also used to obtain multiple power failure plan sentences as sample in one of the embodiments, This sentence;Each sample sentence is clustered, the corresponding sample sentence of each action type is obtained;To each action type pair The sample sentence answered carries out canonical tanalysis, obtains the corresponding regular expression of power failure plan sentence of each action type.
Expression formula obtains module 602 and is also used to according to phonetic transcriptions of Chinese characters in the sample sentence in one of the embodiments, Pinyin sorting, each sample sentence is ranked up;According to the sequence of each sample sentence, determine that each action type is corresponding Sample sentence.
The Pinyin sorting includes positive sequence and inverse sequence in one of the embodiments,;Expression formula obtains module 602 also For the positive sequence according to phonetic transcriptions of Chinese characters in the sample sentence, positive sequence is carried out to each sample sentence;According to it is described just To sequence, the corresponding first sample sentence of each action type is determined;According to the inverse sequence of phonetic transcriptions of Chinese characters in the sample sentence, Converse sequencing is carried out to each sample sentence;According to the converse sequencing, the corresponding second sample language of each action type is determined Sentence;According to the first sample sentence and the second sample sentence, the corresponding sample sentence of each action type is determined.
Operation equipment determining module 606 is also used to the power failure plan sentence to be identified in one of the embodiments, It is segmented, obtains multiple Feature Words;Part-of-speech tagging is carried out to the Feature Words, according to the part-of-speech tagging, to described each Feature Words carry out syntax dependency parsing;According to the syntax dependency parsing as a result, determining that sentence is planned in the power failure to be identified In include operation equipment.
Operation equipment determining module 606 is also used to the power failure plan sentence to be identified in one of the embodiments, Pre-set pyltp model is inputted, the knot of the corresponding syntax dependency parsing of the power failure plan sentence to be identified is obtained Fruit;According to the syntax dependency parsing as a result, determining the operation equipment for including in the power failure plan sentence to be identified.
Action type matching module 604 is also used to the power failure plan sentence to be identified in one of the embodiments, It inputs in regular expression library, obtains the corresponding target regular expression of the power failure plan sentence to be identified;The canonical table It include multiple regular expressions in Da Shiku;According to the corresponding action type of the target regular expression, determine described in The corresponding action type of sentence is planned in power failure to be identified.
Specific restriction about the power-off event determining device based on power failure plan sentence may refer to above for base The restriction of method is determined in the power-off event of power failure plan sentence, and details are not described herein.It is above-mentioned to be stopped based on power failure plan sentence Modules in electric event determining device can be realized fully or partially through software, hardware and combinations thereof.Above-mentioned each module It can be embedded in the form of hardware or independently of in the processor in computer equipment, computer can also be stored in a software form In memory in equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 7.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is used to store the data of the power failure plan sentence of each action type.The network interface of the computer equipment For being communicated with external terminal by network connection.It is a kind of based on power failure to realize when the computer program is executed by processor The power-off event of plan sentence determines method.
It will be understood by those skilled in the art that structure shown in Fig. 7, only part relevant to the application event is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to the application event, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor perform the steps of when executing computer program
Obtain the corresponding regular expression of power failure plan sentence of each action type;
Power failure plan sentence to be identified is received, according to the regular expression, matching obtains the power failure plan to be identified The corresponding action type of sentence;
Syntax dependency parsing is carried out to the power failure plan sentence to be identified, is determined in the power failure plan sentence to be identified The operation equipment for including;
According to the action type and the operation equipment, the power failure thing in the power failure plan sentence to be identified is determined Part.
In one embodiment, it is also performed the steps of when processor executes computer program and obtains multiple power failure plans Sentence is as sample sentence;Each sample sentence is clustered, the corresponding sample sentence of each action type is obtained;To each The corresponding sample sentence of action type carries out canonical tanalysis, and the power failure plan sentence for obtaining each action type is corresponding just Then expression formula.
In one embodiment, it also performs the steps of when processor executes computer program according to the sample sentence The Pinyin sorting of middle phonetic transcriptions of Chinese characters is ranked up each sample sentence;According to the sequence of each sample sentence, each behaviour is determined Make the corresponding sample sentence of type.
In one embodiment, the Pinyin sorting includes positive sequence and inverse sequence;When processor executes computer program The positive sequence according to phonetic transcriptions of Chinese characters in the sample sentence is also performed the steps of, positive sequence is carried out to each sample sentence; According to the positive sequence, the corresponding first sample sentence of each action type is determined;It is spelled according to Chinese character in the sample sentence The inverse sequence of sound carries out converse sequencing to each sample sentence;According to the converse sequencing, determine that each action type is corresponding Second sample sentence;According to the first sample sentence and the second sample sentence, the corresponding sample of each action type is determined This sentence.
In one embodiment, it also performs the steps of when processor executes computer program to the power failure to be identified Plan sentence is segmented, and multiple Feature Words are obtained;Part-of-speech tagging is carried out to the Feature Words, it is right according to the part-of-speech tagging Each Feature Words carry out syntax dependency parsing;According to the syntax dependency parsing as a result, determining the power failure to be identified The operation equipment for including in plan sentence.
In one embodiment, it also performs the steps of when processor executes computer program by the power failure to be identified Plan the pre-set pyltp model of input by sentence, it is interdependent to obtain the corresponding syntax of the power failure plan sentence to be identified The result of analysis;According to the syntax dependency parsing as a result, determining the operation for including in the power failure plan sentence to be identified Equipment.
In one embodiment, it also performs the steps of when processor executes computer program by the power failure to be identified Plan to obtain the corresponding target regular expression of the power failure plan sentence to be identified in input by sentence regular expression library;Institute It states in regular expression library comprising multiple regular expressions;According to the corresponding action type of the target regular expression, Determine the corresponding action type of the power failure plan sentence to be identified.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Obtain the corresponding regular expression of power failure plan sentence of each action type;
Power failure plan sentence to be identified is received, according to the regular expression, matching obtains the power failure plan to be identified The corresponding action type of sentence;
Syntax dependency parsing is carried out to the power failure plan sentence to be identified, is determined in the power failure plan sentence to be identified The operation equipment for including;
According to the action type and the operation equipment, the power failure thing in the power failure plan sentence to be identified is determined Part.
In one embodiment, it is also performed the steps of when computer program is executed by processor and obtains multiple power failure meters Sentence is drawn as sample sentence;Each sample sentence is clustered, the corresponding sample sentence of each action type is obtained;To each The corresponding sample sentence of a action type carries out canonical tanalysis, and the power failure plan sentence for obtaining each action type is corresponding Regular expression.
In one embodiment, it is also performed the steps of when computer program is executed by processor according to the sample language The Pinyin sorting of phonetic transcriptions of Chinese characters, is ranked up each sample sentence in sentence;According to the sequence of each sample sentence, determine each The corresponding sample sentence of action type.
In one embodiment, the Pinyin sorting includes positive sequence and inverse sequence;Computer program is executed by processor When also perform the steps of positive sequence according to phonetic transcriptions of Chinese characters in the sample sentence, positive row is carried out to each sample sentence Sequence;According to the positive sequence, the corresponding first sample sentence of each action type is determined;According to Chinese character in the sample sentence The inverse sequence of phonetic carries out converse sequencing to each sample sentence;According to the converse sequencing, determine that each action type is corresponding The second sample sentence;According to the first sample sentence and the second sample sentence, determine that each action type is corresponding Sample sentence.
In one embodiment, it also performs the steps of when computer program is executed by processor and to be identified stops to described Electricity plan sentence is segmented, and multiple Feature Words are obtained;Part-of-speech tagging is carried out to the Feature Words, according to the part-of-speech tagging, Syntax dependency parsing is carried out to each Feature Words;According to the syntax dependency parsing as a result, determining described to be identified stop The operation equipment for including in electricity plan sentence.
In one embodiment, it also performs the steps of when computer program is executed by processor and to be identified stops described Electricity plan the pre-set pyltp model of input by sentence, obtain the corresponding syntax of the power failure plan sentence to be identified according to Deposit the result of analysis;According to the syntax dependency parsing as a result, determining the behaviour for including in the power failure plan sentence to be identified Make equipment.
In one embodiment, it also performs the steps of when computer program is executed by processor and to be identified stops described In electricity plan input by sentence regular expression library, the corresponding target regular expression of the power failure plan sentence to be identified is obtained; It include multiple regular expressions in the regular expression library;According to the corresponding operation class of the target regular expression Type determines the corresponding action type of the power failure plan sentence to be identified.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of power-off event based on power failure plan sentence determines method, which comprises
Obtain the corresponding regular expression of power failure plan sentence of each action type;
Power failure plan sentence to be identified is received, according to the regular expression, matching obtains the power failure plan sentence to be identified Corresponding action type;
Syntax dependency parsing is carried out to the power failure to be identified plan sentence, determines in the power failure plan sentence to be identified and includes Operation equipment;
According to the action type and the operation equipment, the power-off event in the power failure plan sentence to be identified is determined.
2. the method according to claim 1, wherein the power failure plan sentence pair for obtaining each action type The regular expression answered, comprising:
Multiple power failure plan sentences are obtained as sample sentence;
Each sample sentence is clustered, the corresponding sample sentence of each action type is obtained;
Canonical tanalysis is carried out to the corresponding sample sentence of each action type, obtains the power failure plan language of each action type The corresponding regular expression of sentence.
3. according to the method described in claim 2, obtaining each it is characterized in that, described cluster each sample sentence The corresponding sample sentence of action type, comprising:
According to the Pinyin sorting of phonetic transcriptions of Chinese characters in the sample sentence, each sample sentence is ranked up;
According to the sequence of each sample sentence, the corresponding sample sentence of each action type is determined.
4. according to the method described in claim 3, it is characterized in that, the Pinyin sorting includes positive sequence and inverse sequence;
According to the Pinyin sorting of phonetic transcriptions of Chinese characters in the sample sentence, each sample sentence is ranked up, comprising:
According to the positive sequence of phonetic transcriptions of Chinese characters in the sample sentence, positive sequence is carried out to each sample sentence;
According to the positive sequence, the corresponding first sample sentence of each action type is determined;
According to the inverse sequence of phonetic transcriptions of Chinese characters in the sample sentence, converse sequencing is carried out to each sample sentence;
According to the converse sequencing, the corresponding second sample sentence of each action type is determined;
According to the first sample sentence and the second sample sentence, the corresponding sample sentence of each action type is determined.
5. the method according to claim 1, wherein it is interdependent to carry out syntax to the power failure plan sentence to be identified Analysis, determines the operation equipment for including in the power failure plan sentence to be identified, comprising:
The power failure plan sentence to be identified is segmented, multiple Feature Words are obtained;
Part-of-speech tagging is carried out to the Feature Words, according to the part-of-speech tagging, interdependent point of syntax is carried out to each Feature Words Analysis;
According to the syntax dependency parsing as a result, determining the operation equipment for including in the power failure plan sentence to be identified.
6. according to the method described in claim 5, it is characterized in that, interdependent to the power failure plan sentence progress syntax to be identified Analysis, determines the operation equipment for including in the power failure plan sentence to be identified, comprising:
The pre-set pyltp model of input by sentence is planned into the power failure to be identified, obtains the power failure plan language to be identified The result of the corresponding syntax dependency parsing of sentence;
According to the syntax dependency parsing as a result, determining the operation equipment for including in the power failure plan sentence to be identified.
7. method according to any one of claims 1 to 6, which is characterized in that it receives power failure to be identified and plans sentence, according to The regular expression, matching obtain the corresponding action type of the power failure plan sentence to be identified, comprising:
By in the power failure plan to be identified input by sentence regular expression library, it is corresponding to obtain the power failure plan sentence to be identified Target regular expression;It include multiple regular expressions in the regular expression library;
According to the corresponding action type of the target regular expression, the corresponding operation of the power failure plan sentence to be identified is determined Type.
8. a kind of power-off event determining device based on the plan sentence that has a power failure, which is characterized in that described device includes:
Expression formula obtains module, for obtaining the corresponding regular expression of power failure plan sentence of each action type;
Action type matching module, for receiving power failure plan sentence to be identified, according to the regular expression, matching obtains institute State the corresponding action type of power failure plan sentence to be identified;
Operate equipment determining module, for carrying out syntax dependency parsing to the powers failure to be identified plan sentence, determine described in The operation equipment for including in identification power failure plan sentence;
Identification module, for determining in the power failure plan sentence to be identified according to the action type and the operation equipment Power-off event.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201811570176.5A 2018-12-21 2018-12-21 Method and apparatus are determined based on the power-off event of power failure plan sentence Pending CN109800423A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811570176.5A CN109800423A (en) 2018-12-21 2018-12-21 Method and apparatus are determined based on the power-off event of power failure plan sentence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811570176.5A CN109800423A (en) 2018-12-21 2018-12-21 Method and apparatus are determined based on the power-off event of power failure plan sentence

Publications (1)

Publication Number Publication Date
CN109800423A true CN109800423A (en) 2019-05-24

Family

ID=66557370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811570176.5A Pending CN109800423A (en) 2018-12-21 2018-12-21 Method and apparatus are determined based on the power-off event of power failure plan sentence

Country Status (1)

Country Link
CN (1) CN109800423A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647943A (en) * 2019-09-26 2020-01-03 西北工业大学 Cutting tool wear monitoring method based on evolutionary data cluster analysis
CN111177323A (en) * 2019-12-31 2020-05-19 国网安徽省电力有限公司安庆供电公司 Power failure plan unstructured data extraction and identification method based on artificial intelligence

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160154790A1 (en) * 2007-09-18 2016-06-02 Elsevier, Inc. Natural language processing method
CN105786793A (en) * 2015-12-23 2016-07-20 百度在线网络技术(北京)有限公司 Method and device for analyzing semanteme of spoken language text information
CN108304372A (en) * 2017-09-29 2018-07-20 腾讯科技(深圳)有限公司 Entity extraction method and apparatus, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160154790A1 (en) * 2007-09-18 2016-06-02 Elsevier, Inc. Natural language processing method
CN105786793A (en) * 2015-12-23 2016-07-20 百度在线网络技术(北京)有限公司 Method and device for analyzing semanteme of spoken language text information
CN108304372A (en) * 2017-09-29 2018-07-20 腾讯科技(深圳)有限公司 Entity extraction method and apparatus, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
鲁华永等: "基于正则表达式的变电站集中监控信息解析方法", 《电力系统自动化》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647943A (en) * 2019-09-26 2020-01-03 西北工业大学 Cutting tool wear monitoring method based on evolutionary data cluster analysis
CN111177323A (en) * 2019-12-31 2020-05-19 国网安徽省电力有限公司安庆供电公司 Power failure plan unstructured data extraction and identification method based on artificial intelligence
CN111177323B (en) * 2019-12-31 2022-04-01 国网安徽省电力有限公司安庆供电公司 Power failure plan unstructured data extraction and identification method based on artificial intelligence

Similar Documents

Publication Publication Date Title
CN110704633A (en) Named entity recognition method and device, computer equipment and storage medium
CN110162627A (en) Data increment method, apparatus, computer equipment and storage medium
WO2019228466A1 (en) Named entity recognition method, device and apparatus, and storage medium
EP3614378A1 (en) Method and apparatus for identifying key phrase in audio, device and medium
CN109815333A (en) Information acquisition method, device, computer equipment and storage medium
CN111783471B (en) Semantic recognition method, device, equipment and storage medium for natural language
CN109815489A (en) Collection information generating method, device, computer equipment and storage medium
CN107704539A (en) The method and device of extensive text message batch structuring
CN110427612A (en) Based on multilingual entity disambiguation method, device, equipment and storage medium
CN109800423A (en) Method and apparatus are determined based on the power-off event of power failure plan sentence
CN109800309A (en) Classroom Discourse genre classification methods and device
CN110968661A (en) Event extraction method and system, computer readable storage medium and electronic device
CN114240672A (en) Method for identifying green asset proportion and related product
CN113918031A (en) System and method for Chinese punctuation recovery using sub-character information
CN115510180A (en) Multi-field-oriented complex event element extraction method
CN111354354B (en) Training method, training device and terminal equipment based on semantic recognition
CN113792538B (en) Method and device for rapidly generating operation ticket of power distribution network
CN112417852B (en) Method and device for judging importance of code segment
CN112182157B (en) Training method of online sequence labeling model, online labeling method and related equipment
CN110826330B (en) Name recognition method and device, computer equipment and readable storage medium
CN117592470A (en) Low-cost gazette data extraction method driven by large language model
CN112507117A (en) Deep learning-based maintenance suggestion automatic classification method and system
CN112036179A (en) Electric power plan information extraction method based on text classification and semantic framework
CN110866394A (en) Company name identification method and device, computer equipment and readable storage medium
Srinivasagan et al. An automated system for tamil named entity recognition using hybrid approach

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200923

Address after: 510620 Tianhe District, Guangzhou, Tianhe South Road, No. two, No. 2, No.

Applicant after: Guangzhou Power Supply Bureau of Guangdong Power Grid Co.,Ltd.

Address before: 510620 Tianhe District, Guangzhou, Tianhe South Road, No. two, No. 2, No.

Applicant before: GUANGZHOU POWER SUPPLY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190524