CN107680590A - A kind of method, equipment and storage medium for being used to handle natural language instructions - Google Patents

A kind of method, equipment and storage medium for being used to handle natural language instructions Download PDF

Info

Publication number
CN107680590A
CN107680590A CN201710842798.8A CN201710842798A CN107680590A CN 107680590 A CN107680590 A CN 107680590A CN 201710842798 A CN201710842798 A CN 201710842798A CN 107680590 A CN107680590 A CN 107680590A
Authority
CN
China
Prior art keywords
natural language
language instructions
user
implementation strategy
equipment
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.)
Granted
Application number
CN201710842798.8A
Other languages
Chinese (zh)
Other versions
CN107680590B (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.)
Hangzhou Suddenly Cognitive Technology Co ltd
Original Assignee
Beijing Moran Cognitive Technology 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 Beijing Moran Cognitive Technology Co Ltd filed Critical Beijing Moran Cognitive Technology Co Ltd
Priority to CN201710842798.8A priority Critical patent/CN107680590B/en
Publication of CN107680590A publication Critical patent/CN107680590A/en
Application granted granted Critical
Publication of CN107680590B publication Critical patent/CN107680590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/22Social work

Abstract

It is an object of the invention to provide a kind of method, equipment and storage medium for being used to perform natural language instructions.Specifically, detect whether natural language instructions to be performed meet predetermined condition;If meeting the predetermined condition, it is determined that the implementation strategy on the natural language instructions;According to the implementation strategy, the natural language instructions are handled.Compared with prior art, present invention improves over the scheme that the existing natural language instructions to user unconditionally perform, the adaptive adjustment to user's request is realized, improves the demand satisfaction of user, correspondingly, also improves the degree of intelligence of voice system.

Description

A kind of method, equipment and storage medium for being used to handle natural language instructions
Technical field
The present invention relates to technical field of voice interaction, more particularly to a kind of technology for being used to handle natural language instructions.
Background technology
The development great convenience of interactive voice technology user interacts with equipment room, however, existing interactive voice system System, the natural language instructions that user sends are equivalent to the order unconditionally performed for system, and system can't be interrupted actively Or adjustment user's request so that the adaptivity that system performs without order.It is but in actual applications, extreme certainly for some Right verbal order such as has " blast ", " murder " of harmfulness, and not only system is not suitable for performing such natural language instructions, and The execution of such natural language instructions can also have a strong impact on the execution instructed to other people, and the degree of intelligence of system has to be hoisted.
The content of the invention
It is an object of the present invention to provide a kind of method, equipment and storage medium for being used to handle natural language instructions.
According to an aspect of the invention, there is provided a kind of method for performing natural language instructions, wherein, this method Comprise the following steps:
A detects whether natural language instructions to be performed meet predetermined condition;
If b meets the predetermined condition, it is determined that the implementation strategy on the natural language instructions;
C handles the natural language instructions according to the implementation strategy.
According to another aspect of the present invention, a kind of execution equipment for being used to handle natural language instructions is additionally provided, wherein, The execution equipment includes:
Detection means, for detecting whether natural language instructions to be performed meet predetermined condition;
Determining device, if for meeting the predetermined condition, it is determined that the implementation strategy on the natural language instructions;
Processing unit, for according to the implementation strategy, handling the natural language instructions.
According to another aspect of the invention, a kind of computing device is additionally provided, including:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of places Manage device and perform a kind of such as foregoing method for performing natural language instructions according to one aspect of the invention.
According to the further aspect of the present invention, a kind of computer-readable recording medium is additionally provided, is stored thereon with computer Program, wherein, realize that foregoing one kind according to one aspect of the invention such as is used to perform nature when the program is executed by processor The method of verbal order.
Compared with prior art, whether one embodiment of the present of invention is full by detecting natural language instructions to be performed Sufficient predetermined condition, if meeting the predetermined condition, it is determined that the implementation strategy on the natural language instructions, according to the execution Strategy, the natural language instructions are handled, improve the scheme that the existing natural language instructions to user unconditionally perform, it is real Show the adaptive adjustment to user's request, improved the demand satisfaction of user, correspondingly, also improve the intelligence of voice system Energy degree.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other Feature, objects and advantages will become more apparent upon:
Fig. 1 shows to be shown according to a kind of equipment of execution equipment for handling natural language instructions of one aspect of the invention It is intended to;
Fig. 2 shows a kind of method flow diagram for being used to handle natural language instructions according to a further aspect of the present invention;
Fig. 3 shows the block diagram suitable for being used for the exemplary computer system/server for realizing embodiment of the present invention.
Same or analogous reference represents same or analogous part in accompanying drawing.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 shows a kind of execution equipment 1 for being used to handle natural language instructions according to one aspect of the invention, wherein, Performing equipment 1 includes detection means 11, determining device 12 and processing unit 13.Specifically, detection means 11 detects to be performed Natural language instructions whether meet predetermined condition;If meeting the predetermined condition, determining device 12 is determined on the nature The implementation strategy of verbal order;Processing unit 13 handles the natural language instructions according to the implementation strategy.
Here, the execution equipment 1 refers to a kind of equipment, the equipment, which can detect natural language instructions to be performed, is It is no to meet predetermined condition, if meeting the predetermined condition, it is determined that the implementation strategy on the natural language instructions, and according to institute Implementation strategy is stated, handles the natural language instructions.
In a particular embodiment, performing equipment 1 can be realized by intelligent terminal, also can be by the network equipment or the network equipment and intelligence Energy terminal is integrated formed equipment (being engaged by intelligent terminal and the network equipment) by network and realized, is also used as Software module and/or hardware module are contained in intelligent terminal, can also be passed through as hardware device with intelligent terminal wired Or wirelessly connect.Here, the network equipment includes but is not limited to such as network host, single network server, multiple Webserver collection or set of computers based on cloud computing etc. are realized.Here, cloud is by based on cloud computing (Cloud Computing a large amount of main frames or the webserver) are formed, wherein, cloud computing is one kind of Distributed Calculation, loose by a group One super virtual computer of the computer collection composition of coupling.
Here, the intelligent terminal can be any one can with user by keyboard, touch pad, touch-screen, remote control, One or more modes such as interactive voice or handwriting equipment carry out the electronic product of man-machine interaction, such as PC, mobile phone, intelligent hand Machine, PDA, wearable device, palm PC PPC, wearable device, tablet personal computer, intelligent vehicle device, intelligent television, intelligent sound box, Self-supporting medical is registered equipment etc..In actual applications, when execution equipment 1 is intelligent terminal, can carry/install thereon to manage The client (can be APP forms) for solving, handling and respond the natural language instructions of user and exported response results, Can be that the client is only capable of carrying out to this server corresponding to natural language instructions progress speech recognition of user's input but need Natural language instructions are understood, handled and responded the natural language instructions of user, and then response results return client is entered Row output.The network includes but is not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN, wireless self-organization network (Ad Hoc networks) etc..
Those skilled in the art will be understood that above-mentioned execution equipment 1 is only for example, and other are existing or are likely to occur from now on The network equipment or intelligent terminal be such as applicable to the present invention, should also be included within the scope of the present invention, and herein to draw It is incorporated herein with mode.Here, the network equipment and intelligent terminal include it is a kind of can according to the instruction for being previously set or storing, The automatic electronic equipment for carrying out numerical computations and information processing, its hardware include but is not limited to microprocessor, application specific integrated circuit (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc..
In one embodiment, realized if performing equipment 1 by intelligent terminal, perform equipment 1 and pass through intelligent terminal first The application programming interfaces (API) itself provided, or carried by receiving the third party devices such as pick up facility microphone The application programming interfaces (API) of confession, obtain natural language instructions to be performed;It is then detected that the natural language instructions whether Meet predetermined condition;If meeting the predetermined condition, it is determined that the implementation strategy on the natural language instructions, and according to described Implementation strategy, handle the natural language instructions.
In another embodiment, realized if performing equipment 1 by the network equipment, perform equipment 1 first by receiving intelligence Natural language instructions to be performed transmitted by energy terminal, or set by receiving the third parties such as pick up facility microphone Standby transmitted natural language instructions to be performed, the natural language instructions are treated to obtain;It is then detected that the natural language Whether order meets predetermined condition;If meeting the predetermined condition, it is determined that the implementation strategy on the natural language instructions;Connect , according to the implementation strategy, handle the natural language instructions.
In a still further embodiment, if perform equipment 1 is engaged realization by intelligent terminal and the network equipment, equipment is performed 1 application programming interfaces provided first by intelligent terminal itself (API), or by receiving pick up facility such as microphone The application programming interfaces (API) provided Deng third party device, obtain natural language instructions to be performed;It is then detected that should Whether natural language instructions meet predetermined condition;If meeting the predetermined condition, the natural language instructions are sent to corresponding The network equipment, to determine the implementation strategy on the natural language instructions by the network equipment;According to the implementation strategy, place Manage the natural language instructions.
Herein, it should be noted that when execution equipment 1 is engaged by intelligent terminal and the network equipment to be realized, intelligence is eventually The step of end and the network equipment each perform can arbitrarily convert, and the above is only and be illustrated by way of example intelligent terminal and the network equipment Execution step.
Specifically, detection means 11 detects whether natural language instructions to be performed meet predetermined condition.Preferably, institute State predetermined condition and include but is not limited to following at least any one:- the natural language instructions belong to the first classification;- the nature Verbal order belongs to the second classification.
If for example, the predetermined condition belongs to the first classification including the natural language instructions, here, first classification Refer to expressing information demand etc. be intended to but user finally obtain the contents such as corresponding service and/or commodity generally because it is all if desired for The instruction that the reasons such as queuing, road conditions can be delayed by, and the instruction that user's request can not be effectively satisfied, as medical treatment is registered finger Make, car reservation instruction, film ticket predetermined instruction etc..For example, it is assumed that user A is intended to by performing equipment 1 (assuming that performing equipment 1 For the self-help registration equipment of hospital) registered by voice, it is assumed that client such as Voice- is equipped with the self-help registration equipment APP, user A open the client, either it wake up by voice or directly sent certainly to self-help registration equipment Right verbal order " helping me to hang an orthopaedics number ", because the natural language instructions belong to the first classification, then detection means 11 detects Meet the predetermined condition.
Also such as, if the predetermined condition belongs to the second classification including the natural language instructions, here, second classification Refer to explicitly with harmfulness, dangerous instruction (such as contrary to law, social ethics, social morality, humanistic criterion etc. Sound instruction), and implicitly there is harmfulness, dangerous instruction (such as because the execution of instruction can produce potentially hazardous, risk Deng).
Those skilled in the art will be understood that above-mentioned first classification and the second classification are only for example, and other are existing or from now on The first classification or the second classification being likely to occur such as are applicable to the present invention, should also be included within the scope of the present invention, and It is incorporated herein by reference herein.
For example, it is assumed that detection means 11 detects natural language instructions to be performed " to implement the method for public transport blast Which has ", because the natural-sounding order belongs to the second classification, then the detection of detection means 11 meets the predetermined condition.For another example, it is false If detection means 11 detects that natural language instructions to be performed are " this wall of dismantling ", because of the execution of the natural language instructions Load bearing wall of dismantling can be caused, there are potential risks, belong to the second classification, then the detection of detection means 11 meets the predetermined bar Part.
And for example, it is assumed that detection means 11 detects natural language instructions to be performed " to recommend joyful murder trip Play ", although " murder " containing dangerous word in the natural-sounding order, it is actual to refer to a kind of game, is not belonging to the second classification, Therefore, detection means 11 judges to be unsatisfactory for the predetermined condition.
Then, if meeting the predetermined condition, determining device 12 determines the implementation strategy on the natural language instructions. Here, the implementation strategy is corresponding with the classification belonging to the natural language instructions, that is, belonging to the natural language of different classifications The corresponding implementation strategy of speech order is different.Where it determines that device 12 determines that the mode of the implementation strategy includes but is not limited to Any one of below at least:
If 1) natural language instructions belong to the first classification, determining device 12 is according to corresponding to the natural language instructions Resource provision information, determine the implementation strategy.Here, the resource provision information refers to order based on the natural language Order so that user needs duration, queue number, the clothes waited when finally obtaining the contents such as corresponding service and/or commodity Supply amount of content such as business and/or commodity etc..Here, those skilled in the art will be understood that above-mentioned resource provision information is only Citing, other resource provision information that are existing or being likely to occur from now on are such as applicable to the present invention, should also be included in the present invention Within protection domain, and it is incorporated herein by reference herein.
For example, for user A natural language instructions " helping me to hang an orthopaedics number ", because detection means 11 detects its satisfaction The predetermined condition, and belong to the first classification, it is determined that resource provision letter of the device 12 according to corresponding to the natural language instructions Breath such as orthopaedics queue number, it is determined that the implementation strategy be not directly executed for the natural language instructions.
If 2) natural language instructions belong to the second classification, wherein, the implementation strategy on the natural language instructions The natural language instructions are performed including refusal.
For example, for natural language instructions " which the method for implementing public transport blast has ", detection means 11 detects its satisfaction The predetermined condition, but because the natural-sounding order have danger, belong to the second classification, it is determined that device 12 can determine that on The implementation strategy of the natural language instructions includes refusal and performs the natural language instructions.
Then, processing unit 13 handles the natural language instructions according to the implementation strategy.
For example, for user A natural language instructions " helping me to hang an orthopaedics number ", because determining device 12 is according to the nature Resource provision information such as orthopaedics queue number corresponding to verbal order, it is determined that the implementation strategy be the natural language life Order is not directly executed, then processing unit 13 will be believed the response corresponding to the natural language instructions according to the implementation strategy Cease the alternative information substituted and be supplied to the user for sending the natural language instructions, to handle the natural language instructions, Such as by the demand for medical service that can equally meet user A but surgery source fewer in number is waited to recommend user A, so as to replace In generation, is supplied to user A orthopaedics source originally, realizes the optimization to user's request, further improves user's request satisfaction Degree.
Also such as, for user A natural language instructions as " help I order one tomorrow Beijing arrive the ticket in Wuhan, G79 ", vacation If resource provision information such as G79 of the determining device 12 according to corresponding to the natural language instructions remaining ticket information, it is determined that The implementation strategy is that the natural language instructions are not directly executed, then processing unit 13, will be to institute according to the implementation strategy State the alternative information that the response message corresponding to natural language instructions is substituted and be supplied to and send the natural language instructions User, to handle the natural language instructions, if current G79 then will can equally meet user A's without any remaining ticket Trip requirements and the time of departure and the similar same day other train numbers such as G405 of G79 recommend user A, are provided originally so as to substitute G79 ticketing informations to user A.
And for example, for user A natural language instructions as " helping me to order two * * movie theatre this noon《Interspace secret service:Thousand The city of star》Film ticket ", it is assumed that resource provision information of the determining device 12 according to corresponding to the natural language instructions is such as from user A Current location to * * movie theatres journey time, it is determined that the implementation strategy do not held directly for the natural language instructions OK, then processing unit 13 is according to the implementation strategy, by what is substituted to the response message corresponding to the natural language instructions Alternative information is supplied to the user for sending the natural language instructions, to handle the natural language instructions, if from user A's The journey time of current location to * * movie theatres is nervous, carries out that user A can be caused also not if film ticket is predetermined by user A instruction To movie theatre, this play film played, then will can equally meet next field of the user A same day of the viewing demand movie theatre Secondary《Interspace secret service:The city of thousand stars》Movie ticket information recommendation gives user A, or other movie theatres nearer apart from user A are being worked as Its noon section《Interspace secret service:The city of thousand stars》Movie ticket information is supplied to user A, and user A is supplied to originally so as to substitute A upper play《Interspace secret service:The city of thousand stars》Movie ticket information.
For another example, for natural language instructions " which the method for implementing public transport blast has ", because determining device 12 can determine that pass Include refusal in the implementation strategy of the natural language instructions and perform the natural language instructions, then processing unit 13 is held according to this Row strategy, natural language instructions " which method for implementing public transport blast has " is not performed, that is, being not responding to natural language life Order.
Preferably, processing unit 13 be able to will also be refused to perform refusing for the natural language instructions according to the implementation strategy Exhausted response message is supplied to the user for sending the natural language instructions, and such as providing refusal to user A performs natural language instructions The refusal respond information of " which method for implementing public transport blast has " is as " because containing dangerous information in your sound instruction, refused Perform absolutely ".
It is highly preferred that performing equipment 1 also includes providing device (not shown).Specifically, there is provided device will be to the nature The adjustment response message that verbal order is adjusted is supplied to the user, to cause the user adjusts the natural language to order Order.
For example, for natural language instructions " which the method for implementing public transport blast has ", because determining device 12 can determine that pass Include refusal in the implementation strategy of the natural language instructions and perform the natural language instructions, then providing device can will be to described The adjustment response message that natural language instructions are adjusted is supplied to the user, and such as providing adjustment response message to user A " please You re-enter ", to cause the user to adjust the natural language instructions.
Fig. 2 shows a kind of method flow diagram for being used to handle natural language instructions according to a further aspect of the present invention.
Wherein, the method comprising the steps of S1, step S2 and step SS3.
Specifically, in step sl, perform equipment 1 and detect whether natural language instructions to be performed meet predetermined bar Part;If meeting the predetermined condition, in step s 2, execution equipment 1 determines the implementation strategy on the natural language instructions; In step s3, equipment 1 is performed according to the implementation strategy, handles the natural language instructions.
Here, the execution equipment 1 refers to a kind of equipment, the equipment, which can detect natural language instructions to be performed, is It is no to meet predetermined condition, if meeting the predetermined condition, it is determined that the implementation strategy on the natural language instructions, and according to institute Implementation strategy is stated, handles the natural language instructions.
In a particular embodiment, performing equipment 1 can be realized by intelligent terminal, also can be by the network equipment or the network equipment and intelligence Energy terminal is integrated formed equipment (being engaged by intelligent terminal and the network equipment) by network and realized, is also used as Software module and/or hardware module are contained in intelligent terminal, can also be passed through as hardware device with intelligent terminal wired Or wirelessly connect.Here, the network equipment includes but is not limited to such as network host, single network server, multiple Webserver collection or set of computers based on cloud computing etc. are realized.Here, cloud is by based on cloud computing (Cloud Computing a large amount of main frames or the webserver) are formed, wherein, cloud computing is one kind of Distributed Calculation, loose by a group One super virtual computer of the computer collection composition of coupling.
Here, the intelligent terminal can be any one can with user by keyboard, touch pad, touch-screen, remote control, One or more modes such as interactive voice or handwriting equipment carry out the electronic product of man-machine interaction, such as PC, mobile phone, intelligent hand Machine, PDA, wearable device, palm PC PPC, wearable device, tablet personal computer, intelligent vehicle device, intelligent television, intelligent sound box, Self-supporting medical is registered equipment etc..In actual applications, when execution equipment 1 is intelligent terminal, can carry/install thereon to manage The client (can be APP forms) for solving, handling and respond the natural language instructions of user and exported response results, Can be that the client is only capable of carrying out to this server corresponding to natural language instructions progress speech recognition of user's input but need Natural language instructions are understood, handled and responded the natural language instructions of user, and then response results return client is entered Row output.The network includes but is not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN, wireless self-organization network (Ad Hoc networks) etc..
Those skilled in the art will be understood that above-mentioned execution equipment 1 is only for example, and other are existing or are likely to occur from now on The network equipment or intelligent terminal be such as applicable to the present invention, should also be included within the scope of the present invention, and herein to draw It is incorporated herein with mode.Here, the network equipment and intelligent terminal include it is a kind of can according to the instruction for being previously set or storing, The automatic electronic equipment for carrying out numerical computations and information processing, its hardware include but is not limited to microprocessor, application specific integrated circuit (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc..
In one embodiment, realized if performing equipment 1 by intelligent terminal, perform equipment 1 and pass through intelligent terminal first The application programming interfaces (API) itself provided, or carried by receiving the third party devices such as pick up facility microphone The application programming interfaces (API) of confession, obtain natural language instructions to be performed;It is then detected that the natural language instructions whether Meet predetermined condition;If meeting the predetermined condition, it is determined that the implementation strategy on the natural language instructions, and according to described Implementation strategy, handle the natural language instructions.
In another embodiment, realized if performing equipment 1 by the network equipment, perform equipment 1 first by receiving intelligence Natural language instructions to be performed transmitted by energy terminal, or set by receiving the third parties such as pick up facility microphone Standby transmitted natural language instructions to be performed, the natural language instructions are treated to obtain;It is then detected that the natural language Whether order meets predetermined condition;If meeting the predetermined condition, it is determined that the implementation strategy on the natural language instructions;Connect , according to the implementation strategy, handle the natural language instructions.
In a still further embodiment, if perform equipment 1 is engaged realization by intelligent terminal and the network equipment, equipment is performed 1 application programming interfaces provided first by intelligent terminal itself (API), or by receiving pick up facility such as microphone The application programming interfaces (API) provided Deng third party device, obtain natural language instructions to be performed;It is then detected that should Whether natural language instructions meet predetermined condition;If meeting the predetermined condition, the natural language instructions are sent to corresponding The network equipment, to determine the implementation strategy on the natural language instructions by the network equipment;According to the implementation strategy, place Manage the natural language instructions.
Herein, it should be noted that when execution equipment 1 is engaged by intelligent terminal and the network equipment to be realized, intelligence is eventually The step of end and the network equipment each perform can arbitrarily convert, and the above is only and be illustrated by way of example intelligent terminal and the network equipment Execution step.
Specifically, in step sl, perform equipment 1 and detect whether natural language instructions to be performed meet predetermined bar Part.Preferably, the predetermined condition includes but is not limited to following at least any one:- the natural language instructions belong to first point Class;- the natural language instructions belong to the second classification.
If for example, the predetermined condition belongs to the first classification including the natural language instructions, here, first classification Refer to expressing information demand etc. be intended to but user finally obtain the contents such as corresponding service and/or commodity generally because needing to be lined up, The instruction that the reasons such as road conditions can be delayed by, and the instruction that user's request can not be effectively satisfied, such as medical registry instructions, ticket Predetermined instruction, film ticket predetermined instruction etc..For example, it is assumed that user A is intended to by performing equipment 1 (assuming that performing equipment 1 as hospital Self-help registration equipment) registered by voice, it is assumed that client such as Voice-APP, user A are equipped with the self-help registration equipment The client is opened, either it wake up by voice or has directly sent natural language life to self-help registration equipment " helping me to hang an orthopaedics number " is made, because the natural language instructions belong to the first classification, then in step sl, equipment 1 is performed and examines Survey meets the predetermined condition.
Also such as, if the predetermined condition belongs to the second classification including the natural language instructions, here, second classification Refer to explicitly with harmfulness, dangerous instruction (such as contrary to law, social ethics, social morality, humanistic criterion etc. Sound instruction), and implicitly there is harmfulness, dangerous instruction (such as because the execution of instruction can produce potentially hazardous, risk Deng).
Those skilled in the art will be understood that above-mentioned first classification and the second classification are only for example, and other are existing or from now on The first classification or the second classification being likely to occur such as are applicable to the present invention, should also be included within the scope of the present invention, and It is incorporated herein by reference herein.
.For example, it is assumed that in step sl, perform equipment 1 and detect natural language instructions to be performed " to implement public transport Which the method for blast has ", because the natural-sounding order belongs to the second classification, then in step sl, perform the detection of equipment 1 and meet The predetermined condition.
And for example, it is assumed that in step sl, perform equipment 1 and detect natural language instructions to be performed " to recommend joyful Identity ", although " murder " containing dangerous word in the natural-sounding order, it is actual to refer to a kind of game, is not belonging to Second classification, therefore, in step sl, perform equipment 1 and judge to be unsatisfactory for the predetermined condition.For another example, it is assumed that in step sl, Perform equipment 1 and detect that natural language instructions to be performed are " this wall of dismantling ", meeting is performed because of the natural language instructions Cause load bearing wall of dismantling, there are potential risks, belong to the second classification, then in step sl, perform described in the detection satisfaction of equipment 1 Predetermined condition.
Then, if meeting the predetermined condition, in step s 2, perform equipment 1 and determine on the natural language instructions Implementation strategy.Here, the implementation strategy is corresponding with the classification belonging to the natural language instructions, that is, belonging to different Implementation strategy corresponding to the natural language instructions of classification is different.Here, in step s 2, perform equipment 1 and determine the execution The mode of strategy includes but is not limited to following at least any one:
If 1) natural language instructions belong to the first classification, in step s 2, equipment 1 is performed according to the natural language The corresponding resource provision information of order, determines the implementation strategy.Here, the resource provision information refers to based on described in certainly Right verbal order so that user finally obtains the duration for needing to wait during the content such as service and/or commodity accordingly, is lined up people Supply amount of content such as several, described service and/or commodity etc..Those skilled in the art will be understood that above-mentioned resource provision information It is only for example, other resource provision information that are existing or being likely to occur from now on are such as applicable to the present invention, should also be included in this Within invention protection domain, and it is incorporated herein by reference herein.
For example, for user A natural language instructions " helping me to hang an orthopaedics number ", and belong to the first classification, because in step In rapid S1, performing the detection of equipment 1, it meets the predetermined condition, then in step s 2, performs equipment 1 and ordered according to the natural language The corresponding resource provision information such as orthopaedics queue number of order, it is determined that the implementation strategy for the natural language instructions not by Directly perform.
If 2) natural language instructions belong to the second classification, wherein, the implementation strategy on the natural language instructions The natural language instructions are performed including refusal.
For example, for natural language instructions " which the method for implementing public transport blast has ", in step sl, equipment 1 is performed Detect it and meet the predetermined condition, but because the natural-sounding order has danger, belong to the second classification, then in step S2 In, perform equipment 1 and can determine that the implementation strategy on the natural language instructions includes the refusal execution natural language instructions.
Then, in step s3, equipment 1 is performed according to the implementation strategy, handles the natural language instructions.
For example, for user A natural language instructions " helping me to hang an orthopaedics number ", because in step s 2, performing equipment 1 Resource provision information such as orthopaedics queue number according to corresponding to the natural language instructions, it is determined that the implementation strategy be described Natural language instructions are not directly executed, then in step s3, perform equipment 1 according to the implementation strategy, will be to the natural language The alternative information that the corresponding response message of speech order is substituted is supplied to the user for sending the natural language instructions, with place The natural language instructions are managed, such as by the demand for medical service that can equally meet user A but wait surgery number fewer in number User A is recommended in source, so as to substitute the orthopaedics source for being supplied to user A originally, realizes the optimization to user's request, further Improve user's request satisfaction.
Also such as, for user A natural language instructions as " help I order one tomorrow Beijing arrive the ticket in Wuhan, G79 ", vacation If in step s 2, perform resource provision information such as G79 of the equipment 1 according to corresponding to the natural language instructions remaining ticket letter Breath, it is determined that the implementation strategy be not directly executed for the natural language instructions, then in step s3, perform equipment 1 According to the implementation strategy, the alternative information substituted to the response message corresponding to the natural language instructions is supplied to and sent The user of the natural language instructions, to handle the natural language instructions, if current G79 then will without any remaining ticket User A trip requirements can equally be met and the time of departure recommends user with the similar same day other train numbers such as G405 of G79 A, so as to substitute the G79 ticketing informations for being supplied to user A originally.
And for example, for user A natural language instructions as " helping me to order two * * movie theatre this noon《Interspace secret service:Thousand The city of star》Film ticket ", it is assumed that in step s 2, perform resource provision information of the equipment 1 according to corresponding to the natural language instructions Such as from user A current location to the journey time of * * movie theatres, it is determined that the implementation strategy for the natural language instructions not It is directly executed, then in step s3, equipment 1 is performed according to the implementation strategy, by corresponding to the natural language instructions The alternative information that response message is substituted is supplied to the user for sending the natural language instructions, to handle the natural language Order, if the journey time from user A current location to * * movie theatres is nervous, carrying out film ticket by user A instruction makes a reservation for If can cause that user A does not also arrive movie theatre and this play film played, then will can equally meet user A viewing demand Next play of the same day movie theatre《Interspace secret service:The city of thousand stars》Movie ticket information recommendation gives user A, or will be apart from user A Other nearer movie theatres noon section on the day of《Interspace secret service:The city of thousand stars》Movie ticket information is supplied to user A, so as to replace In generation, is supplied to a user A upper play originally《Interspace secret service:The city of thousand stars》Movie ticket information.
For another example, for natural language instructions " which the method for implementing public transport blast has ", because in step s 2, performing equipment 1 can determine that the implementation strategy on the natural language instructions includes the refusal execution natural language instructions, then in step S3 In, equipment 1 is performed according to the implementation strategy, does not perform natural language instructions " which method for implementing public transport blast has ", that is, It is not responding to the natural language instructions.
Preferably, in step s3, perform equipment 1 can also perform the natural language according to the implementation strategy by refusal Say that the refusal respond information of order is supplied to the user for sending the natural language instructions, such as providing refusal to user A performs certainly The refusal respond information of right verbal order " which method for implementing public transport blast has " is such as " dangerous because containing in your sound instruction Information, it is rejected execution ".
It is highly preferred that performing equipment 1 also includes step S4 (not shown).Specifically, in step s 4, performing equipment 1 will The user is supplied to the adjustment response message that the natural language instructions are adjusted, to cause described in user's adjustment Natural language instructions.
For example, for natural language instructions " which the method for implementing public transport blast has ", because in step s 2, performing equipment 1 can determine that the implementation strategy on the natural language instructions includes the refusal execution natural language instructions, then in step S4 In, perform equipment 1 the adjustment response message being adjusted to the natural language instructions can be supplied to the user, such as to Family A provides adjustment response message " woulding you please re-enter ", to cause the user to adjust the natural language instructions.
Fig. 3 shows the block diagram suitable for being used for the exemplary computer system/server for realizing embodiment of the present invention.Figure The computer system/server 2 of 3 displays is only an example, should not be to the function and use range band of the embodiment of the present invention Carry out any restrictions.
As shown in figure 3, computer system/server 2 is showed in the form of universal computing device.Computer system/service The component of device 2 can include but is not limited to:One or more processor or processing unit 21, system storage 22, connection The bus 23 of different system component (including system storage 22 and processing unit 21).
Bus 23 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.Lift For example, these architectures include but is not limited to industry standard architecture (ISA) bus, MCA (MAC) Bus, enhanced isa bus, VESA's (VESA) local bus and periphery component interconnection (PCI) bus.
Computer system/server 2 typically comprises various computing systems computer-readable recording medium.These media can be any The usable medium that can be accessed by computer system/server 2, including volatibility and non-volatile media, movably and not Moveable medium.
System storage 22 can include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 221 and/or cache memory 222.Computer system/server 2 may further include other removable Dynamic/immovable, volatile/non-volatile computer system storage medium.Only as an example, storage system 223 can be used In reading and writing immovable, non-volatile magnetic media (Fig. 3 do not show, commonly referred to as " hard disk drive ").Although do not show in Fig. 3 Going out, can providing for the disc driver to may move non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable The CD drive of anonvolatile optical disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, Each driver can be connected by one or more data media interfaces with bus 23.System storage 22 can be included extremely A few program product, the program product have one group of (for example, at least one) program module, and these program modules are configured to Perform the function of various embodiments of the present invention.
Program/utility 224 with one group of (at least one) program module 225, such as system can be stored in and deposited In reservoir 22, such program module 225 include --- but being not limited to --- operating system, one or more application program, Other program modules and routine data, the reality of network environment may be included in each or certain combination in these examples It is existing.Program module 225 generally performs function and/or method in embodiment described in the invention.
Computer system/server 2 can also be with one or more external equipments 25 (such as keyboard, sensing equipment, display Device 24 etc.) communication, the equipment communication interacted with the computer system/server 2 can be also enabled a user to one or more, And/or any equipment with enabling the computer system/server 2 to be communicated with one or more of the other computing device (such as network interface card, modem etc.) communicates.This communication can be carried out by input/output (I/O) interface 26.Also, Computer system/server 2 can also by network adapter 20 and one or more network (such as LAN (LAN), extensively Domain net (WAN) and/or public network, such as internet) communication.As shown in figure 3, network adapter 20 passes through bus 23 and calculating Other modules communication of machine systems/servers 2.It should be understood that although not shown in Fig. 3, computer system/service can be combined Device 2 uses other hardware and/or software module, includes but is not limited to:Microcode, device driver, redundant processing unit, outside Disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 21 is stored in program in system storage 22 by operation, so as to perform various function application and Data processing, such as a kind of following method for handling natural language instructions is realized, wherein, this method comprises the following steps:
A detects whether natural language instructions to be performed meet predetermined condition;
If b meets the predetermined condition, it is determined that the implementation strategy on the natural language instructions;
C handles the natural language instructions according to the implementation strategy.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, can adopt With application specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment In, software program of the invention can realize steps described above or son by computing device.Similarly, it is of the invention soft Part program (including related data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory, magnetic Or CD-ROM driver or floppy disc and similar devices.In addition, some steps or son of the present invention can employ hardware to realize, for example, As with processor coordinate so as to perform each step or son circuit.
In addition, the part of the present invention can be applied to computer program product, such as computer program instructions, when its quilt When computer performs, by the operation of the computer, the method according to the invention and/or technical scheme can be called or provided. And the programmed instruction of the method for the present invention is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal bearing medias and be transmitted, and/or be stored according to described program instruction operation In the working storage of computer equipment.Here, including a device according to one embodiment of present invention, the device includes using Memory in storage computer program instructions and processor for execute program instructions, wherein, when the computer program refers to When order is by the computing device, method and/or skill of the plant running based on foregoing multiple embodiments according to the present invention are triggered Art scheme.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any reference in claim should not be considered as to the involved claim of limitation.This Outside, it is clear that the word of " comprising " one is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in device claim is multiple Unit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for table Show title, and be not offered as any specific order.

Claims (18)

1. a kind of method for handling natural language instructions, wherein, this method comprises the following steps:
A detects whether natural language instructions to be performed meet predetermined condition;
If b meets the predetermined condition, it is determined that the implementation strategy on the natural language instructions;
C handles the natural language instructions according to the implementation strategy.
2. according to the method for claim 1, wherein, the predetermined condition includes following at least any one:
- the natural language instructions belong to the first classification;
- the natural language instructions belong to the second classification.
3. the method according to claim 11, wherein, if the natural language instructions belong to the first classification, wherein, the step Rapid b includes:
Resource provision information according to corresponding to the natural language instructions, determines the implementation strategy.
4. according to the method for claim 3, wherein, the implementation strategy on the natural language instructions includes the nature Verbal order is not directly executed, wherein, the step c includes:
According to the implementation strategy, the alternative information substituted to the response message corresponding to the natural language instructions is carried Supply sends the user of the natural language instructions, to handle the natural language instructions.
5. the method according to claim 3 or 4, wherein, the natural language instructions are medical registry instructions.
6. the method according to claim 11, wherein, if the natural language instructions belong to the second classification, wherein, on institute Stating the implementation strategy of natural language instructions includes the refusal execution natural language instructions.
7. according to the method for claim 6, wherein, the step c also includes:
According to the implementation strategy, the refusal respond information for refusing the execution natural language instructions is supplied to described in sending certainly The user of right verbal order.
8. the method according to claim 6 or 7, wherein, this method also includes step:
The adjustment response message being adjusted to the natural language instructions is supplied to the user, to cause the user to adjust The whole natural language instructions.
9. a kind of execution equipment for being used to handle natural language instructions, wherein, the execution equipment includes:
Detection means, for detecting whether natural language instructions to be performed meet predetermined condition;
Determining device, if for meeting the predetermined condition, it is determined that the implementation strategy on the natural language instructions;
Processing unit, for according to the implementation strategy, handling the natural language instructions.
10. execution equipment according to claim 9, wherein, the predetermined condition includes following at least any one:
- the natural language instructions belong to the first classification;
- the natural language instructions belong to the second classification.
11. execution equipment according to claim 10, wherein, if the natural language instructions belong to the first classification, wherein, The determining device is used for:
Resource provision information according to corresponding to the natural language instructions, determines the implementation strategy.
12. execution equipment according to claim 11, wherein, the implementation strategy on the natural language instructions includes institute Natural language instructions are stated not to be directly executed, wherein, the processing unit is used for:
According to the implementation strategy, the alternative information substituted to the response message corresponding to the natural language instructions is carried Supply sends the user of the natural language instructions, to handle the natural language instructions.
13. the execution equipment according to claim 11 or 12, wherein, the natural language instructions are medical registry instructions.
14. execution equipment according to claim 10, wherein, if the natural language instructions belong to the second classification, wherein, Implementation strategy on the natural language instructions includes refusal and performs the natural language instructions.
15. execution equipment according to claim 14, wherein, the processing unit is additionally operable to:
According to the implementation strategy, the refusal respond information for refusing the execution natural language instructions is supplied to described in sending certainly The user of right verbal order.
16. the execution equipment according to claims 14 or 15, wherein, the execution equipment also includes:
Device is provided, for the adjustment being adjusted to natural language instructions response message to be supplied into the user, with So that the user adjusts the natural language instructions.
17. a kind of computing device, including:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors Perform the method as any one of claim 1 to 8.
18. a kind of computer-readable recording medium, is stored thereon with computer program, wherein, when the program is executed by processor Realize the method as any one of claim 1 to 8.
CN201710842798.8A 2017-09-18 2017-09-18 Method, device and storage medium for processing natural language command Active CN107680590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710842798.8A CN107680590B (en) 2017-09-18 2017-09-18 Method, device and storage medium for processing natural language command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710842798.8A CN107680590B (en) 2017-09-18 2017-09-18 Method, device and storage medium for processing natural language command

Publications (2)

Publication Number Publication Date
CN107680590A true CN107680590A (en) 2018-02-09
CN107680590B CN107680590B (en) 2020-10-02

Family

ID=61136787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710842798.8A Active CN107680590B (en) 2017-09-18 2017-09-18 Method, device and storage medium for processing natural language command

Country Status (1)

Country Link
CN (1) CN107680590B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920125A (en) * 2018-04-03 2018-11-30 北京小蓦机器人技术有限公司 It is a kind of for determining the method and apparatus of speech recognition result
CN110163398A (en) * 2019-05-07 2019-08-23 厦门钛尚人工智能科技有限公司 Venue booking method and system based on speech recognition
CN113593573A (en) * 2021-07-30 2021-11-02 思必驰科技股份有限公司 Machine interaction method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011135328A (en) * 2009-12-24 2011-07-07 Hitachi Ltd Scam telephone call detection and report system, and detecting and reporting method
CN103516915A (en) * 2012-06-27 2014-01-15 百度在线网络技术(北京)有限公司 Method, system and device for replacing sensitive words in call process of mobile terminal
CN103811003A (en) * 2012-11-13 2014-05-21 联想(北京)有限公司 Voice recognition method and electronic equipment
CN103941686A (en) * 2014-04-14 2014-07-23 美的集团股份有限公司 Voice control method and system
CN104505090A (en) * 2014-12-15 2015-04-08 北京国双科技有限公司 Method and device for voice recognizing sensitive words

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011135328A (en) * 2009-12-24 2011-07-07 Hitachi Ltd Scam telephone call detection and report system, and detecting and reporting method
CN103516915A (en) * 2012-06-27 2014-01-15 百度在线网络技术(北京)有限公司 Method, system and device for replacing sensitive words in call process of mobile terminal
CN103811003A (en) * 2012-11-13 2014-05-21 联想(北京)有限公司 Voice recognition method and electronic equipment
CN103941686A (en) * 2014-04-14 2014-07-23 美的集团股份有限公司 Voice control method and system
CN104505090A (en) * 2014-12-15 2015-04-08 北京国双科技有限公司 Method and device for voice recognizing sensitive words

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920125A (en) * 2018-04-03 2018-11-30 北京小蓦机器人技术有限公司 It is a kind of for determining the method and apparatus of speech recognition result
CN110163398A (en) * 2019-05-07 2019-08-23 厦门钛尚人工智能科技有限公司 Venue booking method and system based on speech recognition
CN113593573A (en) * 2021-07-30 2021-11-02 思必驰科技股份有限公司 Machine interaction method and device
CN113593573B (en) * 2021-07-30 2024-01-12 思必驰科技股份有限公司 Machine interaction method and device

Also Published As

Publication number Publication date
CN107680590B (en) 2020-10-02

Similar Documents

Publication Publication Date Title
AU2020273370B2 (en) Cross-device handoffs
JP6549682B2 (en) Group recommendation virtual assistant generation
US20230124594A1 (en) Method, Apparatus, and Mobile Terminal For Associating Notification Messages
JP2020522001A (en) Delayed response by computer assistant
EP3326090B1 (en) Context-aware system for providing fitness information
Pitt et al. Deciding when to use tablets for business applications.
CN107896180B (en) Method, equipment, system and the storage medium of equipment room collaboration processing event
CN107680590A (en) A kind of method, equipment and storage medium for being used to handle natural language instructions
CN110168537A (en) Fast activity personnel's card of context and sociodistance's perception
CN107003727A (en) Run the electronic equipment of multiple applications and the method for control electronics
US20190364339A1 (en) Video content deep diving
KR20180058799A (en) Information ranking based on attributes of the computing device background
CN107608799A (en) A kind of method, equipment and storage medium for being used to perform interactive instruction
CN107659667A (en) A kind of file saving method, device, equipment and storage medium
CN107861968A (en) For providing method, equipment and storage medium with the information of scene matching
Delacroix et al. Democratising the digital revolution: The role of data governance
CN106775417A (en) Terminal equipment control method and system
Darda et al. Usage of Voice Assistant in Time of Covid 19 as a Touchless Interface
JP2008003807A (en) Robot control device, method, and program
Lyon Surveillance, transparency, and trust
WO2015099702A1 (en) Composition data dispatcher
CN106371926A (en) Application running method and device
CN104750474B (en) A kind of processing unit and a kind of method of information processing
Lari et al. Public Awareness, Perceptions, and Engagement with Emerging Mobile Media Technologies
US20140108077A1 (en) Dynamic task assignment

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

Effective date of registration: 20220907

Address after: Room 35201, 5th Floor, Zone 2, Building 3, No. 2, Zhuantang Science and Technology Economic Zone, Xihu District, Hangzhou City, Zhejiang Province, 310024

Patentee after: Hangzhou suddenly Cognitive Technology Co.,Ltd.

Address before: 100080 Room 401, gate 2, east area, block a, 768 Industrial Park, No.5, Xueyuan Road, Haidian District, Beijing

Patentee before: BEIJING XIAOMO ROBOT TECHNOLOGY CO.,LTD.