CN109918546A - Task configuration method and device for dialogue - Google Patents

Task configuration method and device for dialogue Download PDF

Info

Publication number
CN109918546A
CN109918546A CN201910107974.2A CN201910107974A CN109918546A CN 109918546 A CN109918546 A CN 109918546A CN 201910107974 A CN201910107974 A CN 201910107974A CN 109918546 A CN109918546 A CN 109918546A
Authority
CN
China
Prior art keywords
inquiry content
specified
needing
information
change
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
CN201910107974.2A
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.)
Shanghai Fast Shadow Network Technology Co Ltd
Original Assignee
Shanghai Fast Shadow Network 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 Shanghai Fast Shadow Network Technology Co Ltd filed Critical Shanghai Fast Shadow Network Technology Co Ltd
Priority to CN201910107974.2A priority Critical patent/CN109918546A/en
Publication of CN109918546A publication Critical patent/CN109918546A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

This application discloses a kind of task configuration methods and device for dialogue.This method includes being configured to obtain the inquiry content being intended to, and obtain the specified information needed according to the answer in the inquiry content;According to the information of the specified needs, judge whether to need to change the inquiry content;If it is determined that needing to change the inquiry content, then the default inquiry content for jumping relational operation and configuring identical intention and the specified information needed are executed.Present application addresses technical problems complex when building relevant service logic.When being configured by the application realization for the task for dialogue, configuration is simple, operating aspect, treatment effeciency are high.In addition, the configuration of the dialogue of more wheels based on practical business process robot may be implemented in the application, and it is suitable for intelligent robot question and answer business scenario.

Description

Task configuration method and device for dialogue
Technical field
This application involves natural language understandings, dialogue robot field, in particular to a kind of task for dialogue Configuration method and device.
Background technique
Talk with robot, complete question and answer can be provided a user based on the relevant technologies such as natural language understandings and handed over Mutually, and accurate understanding user is intended to.
Inventors have found that need to carry out the operation such as intention assessment, entity extraction in backstage configuration dialog robot, but These operation visualizations are lower, if it is desired to build the programming personnel that relevant service logic needs to have relevant knowledge. Further, it can not directly configured from the background according to the flow nodes in practical business process.
For problem complex when building relevant service logic in the related technology, effective solution is not yet proposed at present Certainly scheme.
Summary of the invention
The main purpose of the application is to provide a kind of task configuration method and device for dialogue, to solve to build phase Complex problem when the service logic of pass.
To achieve the goals above, according to the one aspect of the application, a kind of task configuration side for dialogue is provided Method.
The task configuration method for dialogue according to the application includes: the inquiry content for being configured to obtain intention, and The specified information needed is obtained according to the answer in the inquiry content;According to the information of the specified needs, judge whether to need Change the inquiry content;If it is determined that needing to change the inquiry content, then execution is default jumps relational operation and configures The inquiry content of identical intention and the specified information needed.
Further, if it is determined that needing to change the inquiry content, then execution is default jumps relational operation and configures phase Include: with the inquiry content being intended to and the specified information needed
If needing to change the inquiry content by the judgement of different intentions, after the word slot of different intentions is shared, hold Row presets different intentions and jumps relational operation and configure the inquiry content and the specified information needed of identical intention;And/or if Need to change the inquiry content by word slot determined property, then after the word slot for generating different attribute, execution is default to jump pass System operates and configures the inquiry content and the specified information needed of identical intention;And/or if by judging to be intended to complete It needs to change the inquiry content, then after switching to association intention, executes default association and be intended to jump relational operation and configure phase With the inquiry content being intended to and the specified information needed.
Further, it is configured to obtain the inquiry content being intended to, and is referred to according to the answer acquisition in the inquiry content Surely the information needed includes: the inquiry content for being configured to obtain intention, and according to the answer in the inquiry content corresponding Business interface obtain the specified reply needed;And/or by extracting entity from corresponding business interface and obtaining entity normalizing Change as a result, and obtaining the specified business information for needing to handle according to the answer in the inquiry content;And/or by from corresponding Business interface fill word slot, and the specified business information for needing to handle is obtained according to the answer in the inquiry content.
Further, according to the information of the specified needs, judge whether that needing to change the inquiry content includes: basis The information of the specified needs determines the word slot for needing to reset configuration;According to preset task process, by the value weight in institute's predicate slot It sets.
Further, according to the information of the specified needs, judge whether that needing to change the inquiry content includes: basis The information of the specified needs determines the word slot for needing to splice configuration;According to preset task process, institute's predicate slot is spliced and protected It deposits into new word slot.
Further, according to the information of the specified needs, judge whether that needing to change the inquiry content includes: basis The information of the specified needs determines the word slot for needing to calculate configuration;According to preset task process, calculate in institute's predicate slot Value.
To achieve the goals above, according to the another aspect of the application, a kind of task configuration dress for dialogue is provided It sets.
Include: the first configuration module according to the task configuration device for dialogue of the application, is obtained for being configured to The inquiry content of intention, and the specified information needed is obtained according to the answer in the inquiry content;Judgment module is used for basis The information of the specified needs judges whether to need to change the inquiry content;Second configuration module is used for if it is determined that needing Change the inquiry content, then executes the default inquiry content for jumping relational operation and configuring identical intention and the specified letter needed Breath.
Further, the judgment module includes: the first determination unit, for the information according to the specified needs, really The fixed word slot for needing to reset configuration;Reset cell, for according to preset task process, the value in institute's predicate slot to be reset.
Further, the judgment module includes: the second determination unit, for the information according to the specified needs, really The fixed word slot for needing to splice configuration;Concatenation unit, for institute's predicate slot being spliced and is saved to new according to preset task process In word slot.
Further, the judgment module includes third determination unit, for the information according to the specified needs, is determined Need to calculate the word slot of configuration;Computing unit, for calculating the value in institute's predicate slot according to preset task process.
In the embodiment of the present application, the inquiry content being intended to using acquisition is configured to, and according in the inquiry content Answer obtain the mode of the specified information needed and judge whether to need to change institute by the information according to the specified needs Inquiry content is stated, has been reached if it is determined that needing to change the inquiry content, then execution is default jumps relational operation and configure phase With the purpose of the inquiry content being intended to and the specified information needed, to realize, configuration is simple, operating aspect, treatment effeciency are high Technical effect, and then solve technical problem complex when building relevant service logic.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present application, so that the application's is other Feature, objects and advantages become more apparent upon.The illustrative examples attached drawing and its explanation of the application is for explaining the application, not Constitute the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the task configuration method flow diagram for dialogue according to the application first embodiment;
Fig. 2 is the task configuration method flow diagram for dialogue according to the application second embodiment;
Fig. 3 is the task configuration method flow diagram for dialogue according to the application 3rd embodiment;
Fig. 4 is the task configuration method flow diagram for dialogue according to the application fourth embodiment;
Fig. 5 is the task configuration method flow diagram for dialogue according to the 5th embodiment of the application;
Fig. 6 is the task configuration method flow diagram for dialogue according to the application sixth embodiment;
Fig. 7 is the task configuration device structural schematic diagram for dialogue according to the application first embodiment;
Fig. 8 is the task configuration device structural schematic diagram for dialogue according to the application second embodiment;
Fig. 9 is the task configuration device structural schematic diagram for dialogue according to the application 3rd embodiment;
Figure 10 is the task for dialogue according to the application fourth embodiment with apparatus structure schematic diagram;
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
In this application, term " on ", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outside", " in ", "vertical", "horizontal", " transverse direction ", the orientation or positional relationship of the instructions such as " longitudinal direction " be orientation based on the figure or Positional relationship.These terms are not intended to limit indicated dress primarily to better describe the application and embodiment Set, element or component must have particular orientation, or constructed and operated with particular orientation.
Also, above-mentioned part term is other than it can be used to indicate that orientation or positional relationship, it is also possible to for indicating it His meaning, such as term " on " also are likely used for indicating certain relations of dependence or connection relationship in some cases.For ability For the those of ordinary skill of domain, the concrete meaning of these terms in this application can be understood as the case may be.
In addition, term " installation ", " setting ", " being equipped with ", " connection ", " connected ", " socket " shall be understood in a broad sense.For example, It may be a fixed connection, be detachably connected or monolithic construction;It can be mechanical connection, or electrical connection;It can be direct phase It even, or indirectly connected through an intermediary, or is two connections internal between device, element or component. For those of ordinary skills, the concrete meaning of above-mentioned term in this application can be understood as the case may be.
In this application using intention assessment, entity extract, dialogue controls and visual data processing method, realize The back-end data processing of more wheels dialogue robot of practical business process.By the way that the practical business process of the end demand B enterprise is used After flow chart shows, according to the difference of flow nodes, the dialog unit configuration component of different filling word slots is selected.And Condition is jumped according to certain, dialog unit is connected with visual flow nodes, completes the number that user task executes According to processing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
As shown in Figure 1, this method includes the following steps, namely S102 to step S106:
Step S102 is configured to obtain the inquiry content being intended to, and is referred to according to the answer acquisition in the inquiry content Surely the information needed;
It is pre-configured in background server after the inquiry content for being used on and obtaining and being intended to, according to according in inquiry content Corresponding answer obtain the specified information needed.For example, inquiry content is air ticket flight number is how many? corresponding answer obtains specified The information needed is the number of CAxxx.Does is for another example, phone number how many? corresponding answer obtains the specified information needed The number of 152xxx.
It should be noted that inquiry content can be carried out pre- due to by being configured in advance in background server Processing, so that the corpus of inquiry content meets the use under associated scenario.
Step S104 judges whether to need to change the inquiry content according to the information of the specified needs;
Background server judges whether the inquiry content before needs switching or change according to the specified information needed, than Such as, address name, cell-phone number etc. are inquired.The dialog unit next to be jumped can also be judged according to the information inquired.Again For example, user can be allowed to do questionnaire in the form of a dialog, the option according to user's selection is different, and next problem can not also Together.
Step S106, if it is determined that needing to change the inquiry content, then execution is default jumps relational operation and configures phase With the inquiry content being intended to and the specified information needed.
If judgement needs to change inquiry content in background server, needs to be implemented the preconfigured relationship that jumps and grasp Make the dialogue for then continuing next round by the inquiry content for configuring identical intention and the specified information needed.
Specifically, it when being configured in background server, needs to carry out asking for identical intention in the node of each key The configuration of content and the specified information needed is ask, while also needing to configure to preset and jumping relational operation.For example, there is identical intention When inquiry content, the specified information needed be can be different.For another example, it when having the inquiry content of identical intention, specifies and needs Information can be it is identical.And according to the judging result for judging whether to need to change inquiry content, continuation when execution jumps Configure inquiry content and the specified information needed.At the end of being intended to define, does not then need to change inquiry content again, not need Configure inquiry content and the specified information needed.
It should be noted that the art technology in the inquiry content and the specified information needed for configuring above-mentioned identical intention Personnel can configure according to practical business process, and configure and jump relationship accordingly.
It can be seen from the above description that the application realizes following technical effect:
In the embodiment of the present application, the inquiry content being intended to using acquisition is configured to, and according in the inquiry content Answer obtain the mode of the specified information needed and judge whether to need to change institute by the information according to the specified needs Inquiry content is stated, has been reached if it is determined that needing to change the inquiry content, then execution is default jumps relational operation and configure phase With the purpose of the inquiry content being intended to and the specified information needed, to realize, configuration is simple, operating aspect, treatment effeciency are high Technical effect, and then solve technical problem complex when building relevant service logic.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in Fig. 2, if it is determined that described in needing to change Inquiry content, then execute the default inquiry content for jumping relational operation and configuring identical intention and the specified information needed includes:
Step S202, if needing to change the inquiry content by the judgement of different intentions, by the word slot of different intentions After shared, execute and preset the different inquiry contents and the specified information needed for being intended to jump relational operation and configure identical intention;
In background server if execute be by different intention judge need to change the inquiry content when, It needs to use the schemes for being intended to shared word slot more, the corresponding word slot of different intentions be carried out after sharing, then execute default disagree Figure jumps relational operation and configures the inquiry content and the specified information needed of identical intention.
For example, then being needed after server judges to be intended to be switched to " inquiry air quality " intention from " inquiry weather condition " Associated " city " and " inquiry air quality " will be wherein intended to " inquiry weather condition " and be intended to the two of associated " date " A word slot is shared.
And/or optionally, further includes: step S204, if needing to change in the inquiry by word slot determined property Hold, then after the word slot for generating different attribute, execution is default to be jumped relational operation and configure the inquiry content of identical intention and refer to Surely the information needed;
If needing to change the inquiry content by word slot determined property in background server, need using generation not With the scheme of the word slot of attribute, the default inquiry content for jumping relational operation and configuring identical intention and the specified letter needed are executed Breath.The word slot scheme that dialogue generates different attribute is controlled according to word slot.
For example, being complained in scene when server judges to post in user, when the identity of user is " addressee ", passes through, hold The default inquiry content for jumping relational operation and configuring identical intention of row and the specified information needed, generate addressee and complain needs The information of offer.Conversely, passing through when the identity of user is " sender ", executes to preset to jump relational operation and configure and mutually agree to The inquiry content of figure and the specified information needed, generating sender's complaint needs information to be offered.
And/or optionally, further includes: step S206, if by judging to be intended to complete to need to change the inquiry Content after then switching to association intention, executes default association and is intended to the inquiry content for jumping relational operation and configuring identical intention With the information of specified needs.
In background server if when what is executed is by judging to be intended to complete to need to change the inquiry content, The scheme being intended to using association is switched to is needed, and is executed after switching to association and being intended to and default to be jumped relational operation and configure The inquiry content of identical intention and the specified information needed.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 3, being configured to obtain asking of being intended to Content is ask, and the specified information needed is obtained according to the answer in the inquiry content and includes:
Step S302 is configured to obtain the inquiry content being intended to, and according to the answer in the inquiry content corresponding Business interface obtain the specified reply needed;
Background server can generate the reply needed by associated business interface by configuring inquiry content.For example, User inquires departure place, destination, time, then searches the ticket which has can buy.But user can also directly provide Flight number does not just have to inquire again departure place, destination in the case where providing flight number.
And/or optionally, further includes: step S304 is returned by extracting entity from corresponding business interface and obtaining entity One changes as a result, and obtaining the specified business information for needing to handle according to the answer in the inquiry content;
Background server by from business interface extract entity after and normalized, can according in inquiry content return It answers and obtains the specified business information for needing to handle.For example, user's inquiry " help my father (cell-phone number) charge filling ", can pass through (father) The phone number of business interface is obtained after entity normalization.
And/or optionally, further includes: step S306, by filling word slot from corresponding business interface, and according to described Answer in inquiry content obtains the specified business information for needing to handle.
After background server is by filling word slot from business interface, it can be obtained and be referred to according to the answer in the inquiry content The business information for needing to handle calmly.Fly for example, the word slot on the plane ticket date that can be subscribed is revised as date No. 18 can subscribed Air ticket can directly be confirmed whether the plane ticket for needing reservation date to be No. 18 when receiving the answer in inquiry content.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 4, according to the letter of the specified needs Breath, judges whether that needing to change the inquiry content includes:
Step S402 determines the word slot for needing to reset configuration according to the information of the specified needs;
Step S404 resets the value in institute's predicate slot according to preset task process.
Specifically, the word slot for needing to reset configuration is determined using resetting mode, by selecting a word slot, can referred to it A fixed value, or delete the value that the inside has been got.It, can be to finger after a selected word slot when modifying a word slot A fixed value, or delete the value that the inside has been got.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 5, according to the letter of the specified needs Breath, judges whether that needing to change the inquiry content includes:
Step S502 determines the word slot for needing to splice configuration according to the information of the specified needs;
Institute's predicate slot is spliced and is saved into new word slot according to preset task process by step S504.
Specifically, the word slot for needing to splice configuration is determined using Splicing model, in flow of task, it is sometimes desirable to splice two The value of a word slot.It can be saved in a new word slot using Splicing model.It is reported for example, cell-phone number can be segmented by user Number.Multiple segmentations report number can be stitched together using Splicing model, and carry out subsequent judgement as complete cell-phone number is done.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in fig. 6, according to the letter of the specified needs Breath, judges whether that needing to change the inquiry content includes:
Step S602 determines the word slot for needing to calculate configuration according to the information of the specified needs;
Step S604 calculates the value in institute's predicate slot according to preset task process.
Specifically, the word slot for needing to calculate configuration is determined using the mode of calculating,
For example, in scene of game, for example when answer, as soon as user often answers questions topic, add one point.In task robot, It is exactly to the value+1 in some word slot.
In addition, can realize corresponding redirected link in above-mentioned steps, by configuring redirected link dialog unit, jump Link can be carried out judgement with the value in word-based slot and be jumped.After executing modification word slot, the dialogue configured in advance can be jumped to Unit.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not The sequence being same as herein executes shown or described step.
According to the embodiment of the present application, additionally provide a kind of for implementing the dress of the above-mentioned task configuration method for dialogue It sets, as shown in fig. 7, the device includes: the first configuration module 10, the inquiry content being intended to for being configured to acquisition, and according to Answer in the inquiry content obtains the specified information needed;Judgment module 20, for the information according to the specified needs, Judge whether to need to change the inquiry content;Second configuration module 30, for if it is determined that need to change the inquiry content, Then execute the default inquiry content for jumping relational operation and configuring identical intention and the specified information needed.
It is pre-configured with to be used in background server in first configuration module 10 of the embodiment of the present application and obtains intention After inquiry content, the specified information needed is obtained according to according to corresponding answer in inquiry content.For example, inquiry content is machine Does is ticket flight number how many? it is corresponding to answer the number for obtaining that the specified information needed is CAxxx.Does is for another example, phone number how many? It is corresponding to answer the number for obtaining that the specified information needed is 152xxx.
It should be noted that inquiry content can be carried out pre- due to by being configured in advance in background server Processing, so that the corpus of inquiry content meets the use under associated scenario.
Background server judges whether to need to cut according to the specified information needed in the judgment module 20 of the embodiment of the present application Inquiry content before changing or changing, for example, inquiry address name, cell-phone number etc..It can also be judged according to the information inquired Next the dialog unit to be jumped.For another example, user can be allowed to do questionnaire in the form of a dialog, the option selected according to user Difference, next problem can also be different.
If judgement needs to change inquiry content in background server in second configuration module 30 of the embodiment of the present application, Then need to be implemented the preconfigured letter for jumping relational operation and then the inquiry content by configuring identical intention and specified needs Breath continues the dialogue of next round.
Specifically, it when being configured in background server, needs to carry out asking for identical intention in the node of each key The configuration of content and the specified information needed is ask, while also needing to configure to preset and jumping relational operation.For example, there is identical intention When inquiry content, the specified information needed be can be different.For another example, it when having the inquiry content of identical intention, specifies and needs Information can be it is identical.And according to the judging result for judging whether to need to change inquiry content, continuation when execution jumps Configure inquiry content and the specified information needed.At the end of being intended to define, does not then need to change inquiry content again, not need Configure inquiry content and the specified information needed.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 8, the judgment module includes: first Determination unit 201 determines the word slot for needing to reset configuration for the information according to the specified needs;Reset cell 202 is used According to preset task process, the value in institute's predicate slot is reset.
In first determination unit 201 and reset cell 202 of the embodiment of the present application, need to reset using the determination of resetting mode The word slot of configuration can specify a value, or delete the value that the inside has been got by selecting a word slot to it.When A word slot is modified, can be to a specified value after a selected word slot, or delete the value that the inside has been got.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in figure 9, the judgment module includes: second Determination unit 203 determines the word slot for needing to splice configuration for the information according to the specified needs;Concatenation unit 204 is used According to preset task process, institute's predicate slot is spliced and is saved into new word slot.
In second determination unit 203 and concatenation unit 204 of the embodiment of the present application specifically, being determined using Splicing model is needed The word slot for splicing configuration, in flow of task, it is sometimes desirable to splice the value of two word slots.It can be saved in using Splicing model In one new word slot.For example, cell-phone number can be segmented report number by user.It can be by multiple segmentations report number using Splicing model It is stitched together, and carry out subsequent judgement as complete cell-phone number is done.
According to the embodiment of the present application, as preferred in the present embodiment, as shown in Figure 10, the judgment module includes: Three determination units 206 determine the word slot for needing to calculate configuration for the information according to the specified needs;Computing unit 207, For calculating the value in institute's predicate slot according to preset task process.
In the third determination unit 206 and computing unit 207 of the embodiment of the present application specifically, being determined using the mode of calculating is needed The word slot of configuration is calculated,
For example, in scene of game, for example when answer, as soon as user often answers questions topic, add one point.In task robot, It is exactly to the value+1 in some word slot.
In addition, can realize corresponding redirected link in above-mentioned steps, by configuring redirected link dialog unit, jump Link can be carried out judgement with the value in word-based slot and be jumped.After executing modification word slot, the dialogue configured in advance can be jumped to Unit.
According to the embodiment of the present application, as preferred in the present embodiment, second configuration module is also used to
If needing to change the inquiry content by the judgement of different intentions, after the word slot of different intentions is shared, hold Row presets different intentions and jumps relational operation and configure the inquiry content and the specified information needed of identical intention.
In background server if execute be by different intention judge need to change the inquiry content when, It needs to use the schemes for being intended to shared word slot more, the corresponding word slot of different intentions be carried out after sharing, then execute default disagree Figure jumps relational operation and configures the inquiry content and the specified information needed of identical intention.
For example, then being needed after server judges to be intended to be switched to " inquiry air quality " intention from " inquiry weather condition " Associated " city " and " inquiry air quality " will be wherein intended to " inquiry weather condition " and be intended to the two of associated " date " A word slot is shared.
And/or if needing to change the inquiry content by word slot determined property, in the word slot for generating different attribute Afterwards, the default inquiry content for jumping relational operation and configuring identical intention and the specified information needed are executed.
If needing to change the inquiry content by word slot determined property in background server, need using generation not With the scheme of the word slot of attribute, the default inquiry content for jumping relational operation and configuring identical intention and the specified letter needed are executed Breath.The word slot scheme that dialogue generates different attribute is controlled according to word slot.
For example, being complained in scene when server judges to post in user, when the identity of user is " addressee ", passes through, hold The default inquiry content for jumping relational operation and configuring identical intention of row and the specified information needed, generate addressee and complain needs The information of offer.Conversely, passing through when the identity of user is " sender ", executes to preset to jump relational operation and configure and mutually agree to The inquiry content of figure and the specified information needed, generating sender's complaint needs information to be offered.
And/or it if switches to association by judging to be intended to complete to need to change the inquiry content and is intended to Afterwards, default association is executed to be intended to jump relational operation and configure the inquiry content and the specified information needed of identical intention.
In background server if when what is executed is by judging to be intended to complete to need to change the inquiry content, The scheme being intended to using association is switched to is needed, and is executed after switching to association and being intended to and default to be jumped relational operation and configure The inquiry content of identical intention and the specified information needed.
According to the embodiment of the present application, as preferred in the present embodiment, first configuration module is also used to
It is configured to obtain the inquiry content being intended to, and according to the answer in the inquiry content in corresponding business interface Obtain the specified reply needed;
Background server can generate the reply needed by associated business interface by configuring inquiry content.For example, User inquires departure place, destination, time, then searches the ticket which has can buy.But user can also directly provide Flight number does not just have to inquire again departure place, destination in the case where providing flight number.
And/or by extracting entity from corresponding business interface and obtaining entity normalization as a result, and according to the inquiry Answer in content obtains the specified business information for needing to handle;
Background server by from business interface extract entity after and normalized, can according in inquiry content return It answers and obtains the specified business information for needing to handle.For example, user's inquiry " help my father (cell-phone number) charge filling ", can pass through (father) The phone number of business interface is obtained after entity normalization.
And/or by filling word slot from corresponding business interface, and is obtained and specified according to the answer in the inquiry content The business information for needing to handle.
After background server is by filling word slot from business interface, it can be obtained and be referred to according to the answer in the inquiry content The business information for needing to handle calmly.Fly for example, the word slot on the plane ticket date that can be subscribed is revised as date No. 18 can subscribed Air ticket can directly be confirmed whether the plane ticket for needing reservation date to be No. 18 when receiving the answer in inquiry content.
The realization principle of the application:
In this application using intention assessment, entity extract, dialogue controls and visual data processing method, realize The back-end data processing of more wheels dialogue robot of practical business process.By the way that the practical business process of the end demand B enterprise is used After flow chart shows, according to the difference of flow nodes, the dialog unit configuration component of different filling word slots is selected.And Condition is jumped according to certain, dialog unit is connected with visual flow nodes, completes the number that user task executes According to processing.
Specifically, the visualization dialog unit of the application can include but is not limited to following several:
Inquiry session unit, robot issue inquiry, and information is obtained from the reply of user and inserts word slot.Institute's use in need The information that family hair message can be just collected into robot, will use this unit.Robot can also be according to the letter inquired The breath judgement unit next to be jumped.
Message elements send messages to user, can send out a multiple messages.It is used in the beginning and knot of an intention Beam.A hair message elements can be placed, to user send welcome words when starting, at the end of wish etc..
API acquiring unit docks third-party api interface, obtains information from API and inserts word slot.
Nonessential information unit is collected, as soon as a word slot is bound, if the information that user refers to word slot needs is collected, no It will not be asked if mentioning.The word slot of this unit binding is treated as unit and is triggered once being collected into information, and following process is just It can go to jump by the condition that jumps that this unit configures.
Arithmetic element, there are three types of operation modes: resetting mode, calculates mode at Splicing model.Three models can be for single The word slot of selection in member carries out different arithmetic operations, including resetting word slot content, splice other word slot contents to current word slot, Four fundamental rules calculating is carried out to word slot content.
Collector unit can remain for a long time the word slot number evidence got in dialogue.For example, one for the purpose of filling in a form Task equipment people, after inquiring a series of problems, can the information preservation asked be database in one record.
Intention unit is jumped, jumps to another intention from current intention.
It should be noted that the visualization dialog unit of the application is not limited to above-mentioned dialog unit, those skilled in the art Member can be combined according to outdoor scene usage scenario, delete or increase.
Obviously, those skilled in the art should be understood that each module of above-mentioned the application or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the application be not limited to it is any specific Hardware and software combines.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.

Claims (10)

1. a kind of task configuration method for dialogue characterized by comprising
It is configured to obtain the inquiry content being intended to, and the specified information needed is obtained according to the answer in the inquiry content;
According to the information of the specified needs, judge whether to need to change the inquiry content;
If it is determined that needing to change the inquiry content, then execute in the default inquiry for jumping relational operation and configuring identical intention Hold and specify the information needed.
2. task configuration method according to claim 1, which is characterized in that if it is determined that needing to change in the inquiry Hold, then executes the default inquiry content for jumping relational operation and configuring identical intention and the specified information needed includes:
If needing to change the inquiry content by the judgement of different intentions, after the word slot of different intentions is shared, execute pre- If difference is intended to jump relational operation and configures the inquiry content and the specified information needed of identical intention;
And/or if needing to change the inquiry content by word slot determined property, after the word slot for generating different attribute, Execute the default inquiry content for jumping relational operation and configuring identical intention and the specified information needed;
And/or it if after switching to association intention, is held by judging to be intended to complete to need to change the inquiry content The default association of row is intended to jump relational operation and configures the inquiry content and the specified information needed of identical intention.
3. task configuration method according to claim 1, which is characterized in that it is configured to obtain the inquiry content being intended to, And the specified information needed is obtained according to the answer in the inquiry content and includes:
It is configured to obtain the inquiry content being intended to, and is obtained according to the answer in the inquiry content in corresponding business interface The specified reply needed;
And/or by extracting entity from corresponding business interface and obtaining entity normalization as a result, and according to the inquiry content In answer obtain the specified business information for needing to handle;
And/or by filling word slot from corresponding business interface, and specified needs are obtained according to the answer in the inquiry content The business information handled.
4. task configuration method according to claim 1, which is characterized in that according to the information of the specified needs, judgement Whether needing to change the inquiry content includes:
According to the information of the specified needs, the word slot for needing to reset configuration is determined;
According to preset task process, the value in institute's predicate slot is reset.
5. task configuration method according to claim 1, which is characterized in that according to the information of the specified needs, judgement Whether needing to change the inquiry content includes:
According to the information of the specified needs, the word slot for needing to splice configuration is determined;
According to preset task process, institute's predicate slot is spliced and is saved into new word slot.
6. task configuration method according to claim 1, which is characterized in that according to the information of the specified needs, judgement Whether needing to change the inquiry content includes:
According to the information of the specified needs, the word slot for needing to calculate configuration is determined;
According to preset task process, the value in institute's predicate slot is calculated.
7. a kind of task configuration device for dialogue characterized by comprising
First configuration module obtains the inquiry content being intended to for being configured to, and is obtained according to the answer in the inquiry content The information that fetching needs surely;
Judgment module judges whether to need to change the inquiry content for the information according to the specified needs;
Second configuration module, for if it is determined that needing to change the inquiry content, then execution is default to jump relational operation and match Set the inquiry content and the specified information needed of identical intention.
8. task configuration device according to claim 1, which is characterized in that the judgment module includes:
First determination unit determines the word slot for needing to reset configuration for the information according to the specified needs;
Reset cell, for according to preset task process, the value in institute's predicate slot to be reset.
9. task configuration device according to claim 1, which is characterized in that the judgment module includes:
Second determination unit determines the word slot for needing to splice configuration for the information according to the specified needs;
Concatenation unit, for institute's predicate slot being spliced and is saved into new word slot according to preset task process.
10. task configuration device according to claim 1, which is characterized in that the judgment module includes:
Third determination unit determines the word slot for needing to calculate configuration for the information according to the specified needs;
Computing unit, for calculating the value in institute's predicate slot according to preset task process.
CN201910107974.2A 2019-02-02 2019-02-02 Task configuration method and device for dialogue Pending CN109918546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910107974.2A CN109918546A (en) 2019-02-02 2019-02-02 Task configuration method and device for dialogue

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910107974.2A CN109918546A (en) 2019-02-02 2019-02-02 Task configuration method and device for dialogue

Publications (1)

Publication Number Publication Date
CN109918546A true CN109918546A (en) 2019-06-21

Family

ID=66961491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910107974.2A Pending CN109918546A (en) 2019-02-02 2019-02-02 Task configuration method and device for dialogue

Country Status (1)

Country Link
CN (1) CN109918546A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111639168A (en) * 2020-05-21 2020-09-08 北京百度网讯科技有限公司 Multi-turn conversation processing method and device, electronic equipment and storage medium
CN112148854A (en) * 2020-09-16 2020-12-29 出门问问(苏州)信息科技有限公司 Conversation management method and device
CN113537920A (en) * 2021-05-27 2021-10-22 郑州时空隧道信息技术有限公司 Intelligent personnel recruitment system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589848A (en) * 2015-12-28 2016-05-18 百度在线网络技术(北京)有限公司 Dialog management method and device
CN107590216A (en) * 2017-08-31 2018-01-16 北京百度网讯科技有限公司 Answer preparation method, device and computer equipment
JP2019003319A (en) * 2017-06-13 2019-01-10 株式会社野村総合研究所 Interactive business support system and interactive business support program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589848A (en) * 2015-12-28 2016-05-18 百度在线网络技术(北京)有限公司 Dialog management method and device
JP2019003319A (en) * 2017-06-13 2019-01-10 株式会社野村総合研究所 Interactive business support system and interactive business support program
CN107590216A (en) * 2017-08-31 2018-01-16 北京百度网讯科技有限公司 Answer preparation method, device and computer equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111639168A (en) * 2020-05-21 2020-09-08 北京百度网讯科技有限公司 Multi-turn conversation processing method and device, electronic equipment and storage medium
CN111639168B (en) * 2020-05-21 2023-06-09 北京百度网讯科技有限公司 Multi-round dialogue processing method and device, electronic equipment and storage medium
CN112148854A (en) * 2020-09-16 2020-12-29 出门问问(苏州)信息科技有限公司 Conversation management method and device
CN112148854B (en) * 2020-09-16 2024-01-26 出门问问创新科技有限公司 Dialogue management method and device
CN113537920A (en) * 2021-05-27 2021-10-22 郑州时空隧道信息技术有限公司 Intelligent personnel recruitment system

Similar Documents

Publication Publication Date Title
CN109918546A (en) Task configuration method and device for dialogue
CN100409710C (en) Method and system for checking configuration of nodes in telecommunications network
CN106126402B (en) The processing method and processing device of accelerator exception
CN109800258A (en) Data file dispositions method, device, computer equipment and storage medium
CN109697500A (en) Data processing method, device, electronic equipment and storage medium
CN110569507B (en) Semantic recognition method, device, equipment and storage medium
CN105224396A (en) A kind of business data processing method and device
US20080086545A1 (en) Network configuration using configuration parameter inheritance
CN109582289A (en) The processing method of regular flow, system, storage medium and processor in regulation engine
CN106020825A (en) Information display method and mobile terminal
CN112217655A (en) Network equipment configuration method and device in SD-WAN system and computer equipment
CN106453088B (en) A kind of static routing configuration method and terminal
CN114025000B (en) Method, device, equipment and storage medium for establishing network access relationship
CN102170618A (en) Short message processing method and equipment
CN108229907A (en) A kind of regular variation and system based on expression formula engine
CN111708693B (en) Multi-round session system testing method and device
CN106789695B (en) Message processing method and device
CN108833110A (en) Digital asset processing method and processing device
CN108595574A (en) Connection method, device, equipment and the storage medium of data-base cluster
CN111917592A (en) Centralized operation method and device for heterogeneous brand network equipment
CN110450151A (en) The configuration method and device of customized behavior for robot
CN114117024B (en) Platform construction method for multi-round conversation function scene
CN106959903A (en) Trap instruction Trap processing method and processing device
CN109068343A (en) Opening base station method, apparatus, computer storage medium and equipment
CN106301833A (en) A kind of transformer station schedule information method of testing

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
CB02 Change of applicant information

Address after: Room 138, building 3, 33 Leshan Road, Xuhui District, Shanghai 200030

Applicant after: Shanghai laiyibert Network Technology Co.,Ltd.

Address before: Room 138, building 3, 33 Leshan Road, Xuhui District, Shanghai 200030

Applicant before: SHANGHAI BENYING NETWORK TECHNOLOGY CO.,LTD.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20190621

RJ01 Rejection of invention patent application after publication