CN103942056B - A kind of man-machine interaction method and device based on scene - Google Patents

A kind of man-machine interaction method and device based on scene Download PDF

Info

Publication number
CN103942056B
CN103942056B CN201410185289.9A CN201410185289A CN103942056B CN 103942056 B CN103942056 B CN 103942056B CN 201410185289 A CN201410185289 A CN 201410185289A CN 103942056 B CN103942056 B CN 103942056B
Authority
CN
China
Prior art keywords
task
type
true
fact
relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410185289.9A
Other languages
Chinese (zh)
Other versions
CN103942056A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201410185289.9A priority Critical patent/CN103942056B/en
Publication of CN103942056A publication Critical patent/CN103942056A/en
Application granted granted Critical
Publication of CN103942056B publication Critical patent/CN103942056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

This application discloses a kind of man-machine interaction method based on scene, including:A, the association set up between task and task type, the association set up between true and true type;The graph of a relation set up between true type and task type, the relation of true and task is set up using the graph of a relation;The information that the information and tasks carrying that the fact is provided the user are produced;The task is, according to the true information provided, computer system performs sequence of operations and simultaneously returns to implementing result;B, using the graph of a relation between true type and task type, check whether required by task true enough;If so, according to performing corresponding task operating in the task type of the task;C, judge whether to exceed the time of specifying, the new information without this session is incoming, if so, terminate this flow, otherwise return to step B.Disclosed herein as well is a kind of human-computer interaction device based on scene.The various information that application scheme allows user to input is multiplexed in whole conversation procedure, and supports the session interaction process that repeatedly interaction could be completed.

Description

A kind of man-machine interaction method and device based on scene
Technical field
The application is related to human-computer interaction technology, more particularly to a kind of man-machine interaction method and device based on scene.
Background technology
Man-machine interaction (HCI, Human-Computer Interaction), it is right using certain between people and computer to refer to Conversational language, with certain interactive mode, to complete the information exchanging process between the people of determination task and computer.At present extensively Use based on classification, search etc. technology natural language answering system, be natural language carry out man-machine interaction by way of, I.e. user inputs information by natural language to computer system, and computer system parses its semanteme according to input information, according to The database classification of retrieval needed for semanteme is determined, and the database of respective classes is retrieved, by retrieval result with natural language Speech form will accordingly return to user.
In interactive process, some problems that user proposes may be relevant with the content of question and answer before, such issues that it is fixed Justice is scene problem.For example, user inputs a trade name for the first time, the essential information of this commodity of system answer is then used Family inputs the attribute-name of a commodity, and system needs the trade name inputted according to last user, inquires about commodity correspondence attribute Property value.The trade name of user's input just belongs to scene problem.
The existing natural language answering system based on technologies such as classification, search, saving scenario information, can only not handle one One is asked the problem of answer.Due to no scene, it can not be carried out for much name Entity recognition and semantic tagger based on scene.It is right The session flow realized in some multiple question and answer of needs, it is also desirable to which scene preserves contextual information.Some uncurrent scene pipes In reason, information can not fully be shared so that user needs to repeatedly input identical information.
The content of the invention
This application provides a kind of man-machine interaction method and device based on scene so that the various information of user's input can To be multiplexed in whole conversation procedure, and support the session interaction process that repeatedly interaction could be completed.
The embodiment of the present application provides a kind of man-machine interaction method based on scene, including:
A, the association set up between task and task type, the association set up between true and true type;Set up true Graph of a relation between type and task type, the relation of true and task is set up using the graph of a relation;It is described true for user The information that the information and tasks carrying of offer are produced;The task is the information provided according to the fact, computer system execution Sequence of operations simultaneously returns to implementing result;
B, using the graph of a relation between true type and task type, check whether required by task true enough;If so, root Corresponding task operating is performed in task type according to the task;
C, judge whether to exceed the time of specifying, the new information without this session is incoming, if so, terminate this flow, no Then return to step B.
It is preferred that the relation of the true and task includes:Dependence between true type, the even first true class Type then records the reference of the second true type dependent on the second true type in the dependency attribute of the first true type;
Relation between task and subtask, even one task includes subtask, then, it is necessary to call during the tasks carrying At least one subtask;
And
Use relation between task type and true type, the task of even first task type needs to use the first thing The operation of progress, then record the first thing in the required fact attribute of first task type required for the fact that real type completes The reference of real type and required quantity.
It is preferred that further comprising before step B:
Session mark, task and the fact for needing to perform are received, according to session mark, corresponding session is found;If not yet Find, then create a new session;
In the fact that all facts of reception are inserted into session queue, its affiliated thing is recorded in true type attribute The reference of real type;
According to true qualified relation is found, the dependence between all facts received is set;
Task to be dealt with is inserted into the task stack of session, its affiliated task is recorded in the type attribute of task The reference of type;
According to the fact that recorded in the required fact attribute of the task type recorded in the type attribute of task type, find Associated all true types and requirement;Found according to these true types and all in this session belong to above-mentioned thing The fact that real type;
The fact that will be found, sorts according to the backward for the time for adding session, according to number needed for every kind of true type These true references are added to this by the dependence between amount, the fact, the fact that choose respective amount from the new to the old In the required fact attribute of business.
It is preferred that step B includes:
If having task in the task stack of B1, current sessions, take the task of stack top as current task, check as predecessor It is true whether enough needed for business;If enough, performing step B2;If not enough, performing step B4;
B2, judge in current task implementation procedure, if need to perform other tasks as subtask, if so, will be described Other tasks are used as current task, return to step B1;Otherwise, step B3 is continued executing with;
The perform script or class recorded in the task type recorded in B3, the type attribute according to current task, is performed Task operating, if task operating performs completion, current task is popped from task stack, and end step B;
B4, according to the fact that lack fact type, return to true not enough prompting, and end step B.
It is preferred that whether the fact needed for the inspection current task includes enough:
According to the fact that recorded in the required fact attribute of the task type recorded in the type attribute of current task type, Determine whether to meet following two conditions:
The fact that each true type, has;
Quantity all meets the requirements;
It is, otherwise inadequate the fact that required by task if above-mentioned two all meet the fact that required by task enough.
The embodiment of the present application additionally provides a kind of human-computer interaction device based on scene, including:
Relation sets up module, for setting up the association between task and task type, sets up between true and true type Association;The graph of a relation set up between true type and task type, the relation of true and task is set up using the graph of a relation; The information that the information and tasks carrying that the fact is provided the user are produced;The task for according to the information that provides of the fact, Computer system performs sequence of operations and returns to implementing result;
Performing module, for using the graph of a relation between true type and task type, whether checking the required by task fact Enough;If so, according to performing corresponding task operating in the task type of the task;
Judge module, for judging whether to exceed the time of specifying, the new information without this session is incoming, if so, going Enable the judge module.
It is preferred that the relation of the true and task includes:Dependence between true type, the even first true class Type then records the reference of the second true type dependent on the second true type in the dependency attribute of the first true type;
Relation between task and subtask, even one task includes subtask, then, it is necessary to call during the tasks carrying At least one subtask;
And
Use relation between task type and true type, the task of even first task type needs to use the first thing The operation of progress, then record the first thing in the required fact attribute of first task type required for the fact that real type completes The reference of real type and required quantity.
It is preferred that the device further comprises:
Session management module, for receiving the session mark, task and the fact that need to perform, according to session mark, finds Corresponding session;If do not found, a new session is created;
True management module, the fact that for all facts of reception to be inserted into session in queue, in true type The reference of true type belonging to it is recorded in attribute;According to the qualified relation for finding the fact, between all facts that setting is received Dependence;
Task management module, for task to be dealt with to be inserted into the task stack of session, belongs in the type of task The reference of its affiliated task type is recorded in property;According to the required fact attribute of the task type recorded in the type attribute of task The fact that middle record type, find associated all true types and requirement;Found according to these true types at this It is all the fact that belong to above-mentioned true type in individual session;The fact that will be found, arranges according to the backward for the time for adding session Sequence, according to every kind of true type requirement, it is true between dependence, the fact that choose respective amount from the new to the old, These true references are added in the required fact attribute of this task.
It is preferred that performing module includes:
Whether there is task in current task determining unit, the task stack for judging current sessions, if so, then taking stack top Task is as current task, and whether the fact needed for checking current task is enough;If enough, judging current task implementation procedure In, if need to perform other tasks as subtask, if so, regarding other described tasks as current task;If not enough, made Can failure Tip element;
Current task execution unit, for holding for being recorded in the task type that is recorded in the type attribute according to current task Travel far and wide this or class, perform task operating, if task operating performs completion, current task is popped from task stack
Failure Tip element, for according to the fact that lack fact type, returning to true not enough prompting.
It is preferred that whether the fact needed for the inspection current task includes enough:
According to the fact that recorded in the required fact attribute of the task type recorded in the type attribute of current task type, Determine whether to meet following two conditions:
The fact that each true type, has;
Quantity all meets the requirements;
It is, otherwise inadequate the fact that required by task if above-mentioned two all meet the fact that required by task enough.
As can be seen from the above technical solutions, the application side provides a kind of general scene information rwan management solution RWAN, In repeatedly interactive system so that key message is multiplexed in whole conversation procedure, and the not enough inspection of the information provided Look into mechanism;The exploitation of man-machine conversation's system is simplified, the efficiency of exploitation is improved.
Brief description of the drawings
The initialization procedure schematic diagram for the man-machine interaction method based on scene that Fig. 1 provides for the embodiment of the present application;
Pass between the fact that Fig. 2 provides for the embodiment of the present application type (FactType) and task type (TaskType) System's figure;
The execution schematic flow sheet for the man-machine interaction method based on scene that Fig. 3 provides for the embodiment of the present application.
Embodiment
Before technical scheme is introduced, the technical term being related to first to the program is briefly introduced:
True (Fact):The information that the information and tasks carrying that user provides are produced;
Task (Task):The information provided according to true (Fact), computer system performs sequence of operations and returned and holds Row result;
Session (Context):A series of interactions of the one-time continuous of one user and computer system;One session The fact that during middle recording interactive (Fact) and task (Task)
Session can be also used for isolating the task (Task) and the fact (Fact) of different users;
Task stack (TaskStack):The task (Task) being not carried out in a session (Context) is preserved, newly Task (Task) is in stack top, and old task (Task) is at stack bottom;Task stack (TaskStack) supports the intersection of task to perform and go through The execution again of history task;
True queue (FactList):According to the sequencing of the time of addition, the institute in a session (Context) is preserved Have true (Fact);The effect of true queue (FactList) is the new and old of record true (Fact) so that can be according to the fact (Fact) select facts (Fact);
Task type (TaskType):The general information of logger task (Task), including with true type (FactType) First relation, specifically perform task (Task) class or script;
True type (FactType):The general information of record true (Fact), including with task type (TaskType) First relation, and interdependent first relation between true type (FactType);Using between true type (FactType) Relation, can prevent expired true (Fact) to be used by mistake.
Example one:Querying commodity information
User:Input a trade name or commodity id or goods links;
Machine:Identify the commodity;
User:How much;
Machine:Inquire about the price of commodity;
User:CPU is much;
Machine:Inquire about the CPU information of commodity.
In this simple interaction, price, CPU are that price under the true type of price is true, the true class of attribute respectively CPU under type is true, and does not need user to input trade name (id) every time in interaction, is the thing preserved by session Real (commodity id is true), come what is realized, this is a non-combined task type.Above-mentioned continuous interactive process constitutes a group session.
Example two:Commodity shopping guide
User:I wants to buy notebook;
Machine:It please input the notebook brand that you want to buy;
User:Apple;
Machine:It please input the Price Range of your receiving;
User:2000—4000;
Machine:Recommend qualified commodity.
This interaction is combined task type, contains recommendation task, attribute query task dispatching, recommends task to need The facts such as brand, price, size, when user inputs the fact that point out, attribute query task is also relied on these facts, when required When the fact that want is enough, each subtask is also completed, and then whole combined task is finished.
The man-machine interaction method based on scene that the application is provided, its fundamental design idea includes:
The graph of a relation set up between true type (FactType) and task type (TaskType), utilizes this graph of a relation Set up the relation of true (Fact) and task (Task);
Using the graph of a relation between true type (FactType) and task type (TaskType), task (Task) is checked Whether the required fact (Fact) is enough;If so, corresponding according to being performed in the task type (TaskType) of this task (Task) Task operating.
To make the technical principle, feature and technique effect of technical scheme clearer, below in conjunction with specific reality Example is applied technical scheme is described in detail.
The initialization procedure for the man-machine interaction method based on scene that the embodiment of the present application is provided is as shown in figure 1, including such as Lower step:
Step 101:The graph of a relation set up between task type (TaskType) and true type (FactType).For tight Anxious and often changing for task and operation, while writing task type (TaskType) perform script, data storage is arrived in storage In system.
Graph of a relation between the fact that the embodiment of the present application is provided type (FactType) and task type (TaskType) As shown in Figure 2.Wherein, session is made up of a series of tasks and the fact, and each task belongs to specific task type, each thing The fact that fall within specific in fact type.Task type (TaskType) includes combined task type (CompositeTaskType) With internal task type (InnerTaskType).Combined task type can be decomposed into several subtask types to realize jointly; Internal task type does not include subtask type then, can directly be performed.
Action type (OperationType) and true type (FactType) belong to metadata layer.Metadata layer is used for Whole task and the true relation of required by task, and the operation performed by all tasks are described.For fixed task, with class Form realize each specific task type (TaskType), action type (OperationType) and true type (FactType).For task that is urgent and often changing, by these task type (TaskType), action types (OperationType) stored in graph form in graphic data base with true type (FactType), can also be with object Form, be stored in internal memory, an object is by a node in corresponding diagram, the side in association corresponding diagram between object. Operation in task type (TaskType), action type (OperationType) is stored in the form of script.
Step 102:Dependence is set up between true type (FactType).If i.e. true type (FactType) A depends on fact type (FactType) B, will remember in true type (FactType) A dependence (dependence) attribute Copyist's real type (FactType) B reference.So when true type (FactType) B is not used, true type (FactType) A can not be used again.
Step 103:Set up between task type (TaskType) and true type (FactType) and use relation.I.e. such as The fact that really task (Task) of a task type (TaskType) needs to use fact type (FactType) (Fact) come the operation of progress required for completing, then at required true (neededFact) of this task type (TaskType) The reference of the fact that being recorded in attribute type (FactType) and required quantity.
Step 104:Write the class of the correlative code of task type (TaskType).
The execution flow of the man-machine interaction method based on scene that another embodiment of the application is provided as shown in figure 3, including:
Step 301:Session mark (SessionID), task (Task) and the fact (Fact) for needing to perform are received, according to Session mark (SessionID), finds corresponding session (Context).If it is not, creating a new session (Context)。
Step 302:The fact that all true (Fact) of reception are inserted into session (Context) queue (FactList) In, the reference of true type (FactType) belonging to it is recorded in type (type) attribute of true (Fact).
Step 303:Dependence between all facts received is set.
For example, the dependency attribute in the fact that recorded in the fact (Fact) A type attribute type (FactType) A Middle record fact type (FactType) B, it is true type to find type (type) attribute in current sessions (Context) (FactType) B it is newest the fact (Fact) B (i.e. near true queue tail);If the fact (Fact) B is present, The fact (Fact) B reference is recorded in the fact (Fact) A dependence (dependence) attribute;If being deposited without the fact (Fact) B In the prompting that the fact that export fact type (FactType) B (Fact) B is not enough.
Step 304:Task to be dealt with (Task) is inserted into session (Context) task stack (TaskStack) In, the reference of its affiliated task type (TaskType) is recorded in task (Task) type (type) attribute.
Step 305:According to the required fact of the task type (TaskType) recorded in task (Task) type attribute (neededFact) the fact that recorded in attribute type (FactType), finds associated all true types (FactType) And requirement;It is that these are true to be found all in this session (Context) according to these true types (FactType) The fact that type (FactType) (Fact) (according to the type attribute of true (Fact)).
Step 306:The fact that will be found, sorts according to the backward for the time for adding session (Context), according to every The dependence between true type (FactType) requirement, true (Fact) is planted (that is, if necessary to a fact (Fact) the fact that the fact that the fact that A is relied on (Fact) B type (FactType) (Fact), then need the fact first (Fact) B is added in required true (neededFact) attribute of task (Task), the fact (Fact) A could be added into task (Task) in required true (neededFact) attribute), the fact that choose respective amount from the new to the old (Fact), by these things The reference of real (Fact) is added in required true (neededFact) attribute of this task (Task).
Step 307:If having task (Task) in the task stack (TaskStack) of current sessions (Context), stack is taken The task (Task) on top is as current task, and whether true (Fact) be enough needed for checking current task (Task);If enough, Perform step 308;If not enough, performing step 311.
Shown in inspection method is specific as follows:
According to the required thing of the task type (TaskType) recorded in current task (Task) type (type) attribute The fact that recorded in real (neededFact) attribute type (FactType), it is determined whether meet following two conditions:
The Fact of each true type (FactType) has;
Quantity all meets the requirements;
If above-mentioned two all meet, task is enough, otherwise it is assumed that not enough.
Step 308:Judge in current task (Task) implementation procedure, if need to perform other tasks (Task) as son Task, if so, regarding other described tasks (Task) as current task, return to step 307;Otherwise, step 309 is continued executing with.
Step 309:According to the task type (TaskType) recorded in current task (Task) type (type) attribute The perform script or class of middle record, perform task operating, if task (Task) operation perform completion, by current task from Popped in stack.
Step 310:Judge whether to exceed the time of specifying, the new information without this session (Context) is incoming, if It is to terminate this flow, otherwise return to step 307.
Step 311:According to the fact that lack true (Fact) type (FactType), true not enough prompting is returned, and Terminate this flow.
The embodiment of the present application additionally provides a kind of human-computer interaction device based on scene, including:
Relation sets up module, for setting up the association between task and task type, sets up between true and true type Association;The graph of a relation set up between true type and task type, the relation of true and task is set up using the graph of a relation; The information that the information and tasks carrying that the fact is provided the user are produced;The task for according to the information that provides of the fact, Computer system performs sequence of operations and returns to implementing result;
Performing module, for using the graph of a relation between true type and task type, whether checking the required by task fact Enough;If so, according to performing corresponding task operating in the task type of the task;
Judge module, for judging whether to exceed the time of specifying, the new information without this session is incoming, if so, going Enable the judge module.
It is preferred that the relation of the true and task includes:Dependence between true type, the even first true class Type then records the reference of the second true type dependent on the second true type in the dependency attribute of the first true type;
Relation between task and subtask, even one task includes subtask, then, it is necessary to call during the tasks carrying At least one subtask;
And
Use relation between task type and true type, the task of even first task type needs to use the first thing The operation of progress, then record the first thing in the required fact attribute of first task type required for the fact that real type completes The reference of real type and required quantity.
It is preferred that the device further comprises:
Session management module, for receiving the session mark, task and the fact that need to perform, according to session mark, finds Corresponding session;If do not found, a new session is created;
True management module, the fact that for all facts of reception to be inserted into session in queue, in true type The reference of true type belonging to it is recorded in attribute;According to the qualified relation for finding the fact, between all facts that setting is received Dependence;
Task management module, for task to be dealt with to be inserted into the task stack of session, belongs in the type of task The reference of its affiliated task type is recorded in property;According to the required fact attribute of the task type recorded in the type attribute of task The fact that middle record type, find associated all true types and requirement;Found according to these true types at this It is all the fact that belong to above-mentioned true type in individual session;The fact that will be found, arranges according to the backward for the time for adding session Sequence, according to every kind of true type requirement, it is true between dependence, the fact that choose respective amount from the new to the old, These true references are added in the required fact attribute of this task.
It is preferred that performing module includes:
Whether there is task in current task determining unit, the task stack for judging current sessions, if so, then taking stack top Task is as current task, and whether the fact needed for checking current task is enough;If enough, judging current task implementation procedure In, if need to perform other tasks as subtask, if so, regarding other described tasks as current task;If not enough, made Can failure Tip element;
Current task execution unit, for holding for being recorded in the task type that is recorded in the type attribute according to current task Travel far and wide this or class, perform task operating, if task operating performs completion, current task is popped from task stack
Failure Tip element, for according to the fact that lack fact type, returning to true not enough prompting.
It is preferred that whether the fact needed for the inspection current task includes enough:
According to the fact that recorded in the required fact attribute of the task type recorded in the type attribute of current task type, Determine whether to meet following two conditions:
The fact that each true type, has;
Quantity all meets the requirements;
If above-mentioned two all meet, otherwise it is assumed that not enough the fact that required by task enough.
The man-machine interaction method based on scene that the application is provided can realize following advantageous effects:Repeatedly interacting During so that information can be multiplexed in whole conversation procedure;And the checking mechanism of the information deficiency provided;Simplify The exploitation of man-machine conversation's system, improves the efficiency of exploitation.
The foregoing is only the preferred embodiment of the application, not to limit the protection domain of the application, it is all Within the spirit and principle of technical scheme, any modification, equivalent substitution and improvements done etc. should be included in this Shen Within the scope of please protecting.

Claims (8)

1. a kind of man-machine interaction method based on scene, it is characterised in that including:
A, the association set up between task and task type, the association set up between true and true type;Set up true type Graph of a relation between task type, the relation of true and task is set up using the graph of a relation;The fact is provided the user Information and tasks carrying produce information;The task is, according to the true information provided, computer system performs one and is Row operate and return to implementing result;
Session mark, task and the fact for needing to perform are received, according to session mark, corresponding session is found;If do not looked for Arrive, then create a new session;
In the fact that all facts of reception are inserted into session queue, true class belonging to it is recorded in true type attribute The reference of type;
According to true qualified relation is found, the dependence between all facts received is set;
Task to be dealt with is inserted into the task stack of session, its affiliated task type is recorded in the type attribute of task Reference;
According to the fact that recorded in the required fact attribute of the task type recorded in the type attribute of task type, find and closed All true types and requirement of connection;Found according to these true types and all in this session belong to above-mentioned true class The fact that type;
The fact that will be found, sorts according to the backward for the time for adding session, according to every kind of true type requirement, thing These true references are added to this task by the dependence between reality, the fact that choose respective amount from the new to the old In required fact attribute;
B, using the graph of a relation between true type and task type, check whether required by task true enough;If so, according to institute Corresponding task operating is performed in the task type for stating task;
C, judge whether to exceed the time of specifying, the new information without this session is incoming, if so, terminating this flow, otherwise returns Return step B.
2. according to the method described in claim 1, it is characterised in that the relation of the true and task includes:True type it Between dependence, the even first true type is dependent on the second true type, then in the dependency attribute of the first true type The reference of the true type of record second;
Relation between task and subtask, even one task includes subtask, then, it is necessary to call at least during the tasks carrying One subtask;
And
Use relation between task type and true type, the task of even first task type needs to use the first true class The operation of progress required for the fact that type completes, then record the first true class in the required fact attribute of first task type The reference of type and required quantity.
3. according to the method described in claim 1, it is characterised in that step B includes:
If having task in the task stack of B1, current sessions, take the task of stack top as current task, check current task Whether the required fact is enough;If enough, performing step B2;If not enough, performing step B4;
B2, judge in current task implementation procedure, if need to perform other tasks as subtask, if so, will it is described other Task is used as current task, return to step B1;Otherwise, step B3 is continued executing with;
The perform script or class recorded in the task type recorded in B3, the type attribute according to current task, performs task Operation, if task operating performs completion, current task is popped from task stack, and end step B;
B4, according to the fact that lack fact type, return to true not enough prompting, and end step B.
4. method according to claim 3, it is characterised in that true needed for the inspection current task whether to wrap enough Include:
According to the fact that recorded in the required fact attribute of the task type recorded in the type attribute of current task type, it is determined that Whether following two condition is met:
The fact that each true type, has;
Quantity all meets the requirements;
It is, otherwise inadequate the fact that required by task if above-mentioned two all meet the fact that required by task enough.
5. a kind of human-computer interaction device based on scene, it is characterised in that including:
Relation sets up module, for setting up the association between task and task type, the pass set up between true and true type Connection;The graph of a relation set up between true type and task type, the relation of true and task is set up using the graph of a relation;It is described The information that the information and tasks carrying that the fact is provided the user are produced;The task is the information provided according to the fact, is calculated Machine system performs sequence of operations and returns to implementing result;
Session management module, for receiving the session mark, task and the fact that need to perform, according to session mark, finds correspondence Session;If do not found, a new session is created;
True management module, the fact that for all facts of reception to be inserted into session in queue, in true type attribute The middle reference for recording true type belonging to it;According to true qualified relation is found, between setting receive all true according to The relation of relying;
Task management module, for task to be dealt with to be inserted into the task stack of session, in the type attribute of task Record the reference of its affiliated task type;Remember according in the required fact attribute of the task type recorded in the type attribute of task The fact that record type, find associated all true types and requirement;Found according to these true types in this meeting It is all the fact that belong to above-mentioned true type in words;The fact that will be found, sorts according to the backward for the time for adding session, root According to every kind of true type requirement, it is true between dependence, the fact that choose respective amount from the new to the old, by these True reference is added in the required fact attribute of this task;
Performing module, for using the graph of a relation between true type and task type, checking whether required by task is true enough; If so, according to performing corresponding task operating in the task type of the task;
Judge module, for judging whether to exceed the time of specifying, the new information without this session is incoming, if so, going to enable The judge module.
6. device according to claim 5, it is characterised in that the relation of the true and task includes:True type it Between dependence, the even first true type is dependent on the second true type, then in the dependency attribute of the first true type The reference of the true type of record second;
Relation between task and subtask, even one task includes subtask, then, it is necessary to call at least during the tasks carrying One subtask;
And
Use relation between task type and true type, the task of even first task type needs to use the first true class The operation of progress required for the fact that type completes, then record the first true class in the required fact attribute of first task type The reference of type and required quantity.
7. device according to claim 5, it is characterised in that performing module includes:
Whether there is task in current task determining unit, the task stack for judging current sessions, if so, then taking the task of stack top As current task, whether the fact needed for checking current task is enough;If enough, judging in current task implementation procedure, being It is no to need to perform other tasks as subtask, if so, regarding other described tasks as current task;Lost if not enough, enabled Lose Tip element;
Current task execution unit, for the execution pin recorded in the task type that is recorded in the type attribute according to current task Sheet or class, perform task operating, if task operating performs completion, current task are popped from task stack;
Failure Tip element, for according to the fact that lack fact type, returning to true not enough prompting.
8. device according to claim 7, it is characterised in that true needed for the inspection current task whether to wrap enough Include:
According to the fact that recorded in the required fact attribute of the task type recorded in the type attribute of current task type, it is determined that Whether following two condition is met:
The fact that each true type, has;
Quantity all meets the requirements;
It is, otherwise inadequate the fact that required by task if above-mentioned two all meet the fact that required by task enough.
CN201410185289.9A 2014-05-05 2014-05-05 A kind of man-machine interaction method and device based on scene Active CN103942056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410185289.9A CN103942056B (en) 2014-05-05 2014-05-05 A kind of man-machine interaction method and device based on scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410185289.9A CN103942056B (en) 2014-05-05 2014-05-05 A kind of man-machine interaction method and device based on scene

Publications (2)

Publication Number Publication Date
CN103942056A CN103942056A (en) 2014-07-23
CN103942056B true CN103942056B (en) 2017-07-28

Family

ID=51189733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410185289.9A Active CN103942056B (en) 2014-05-05 2014-05-05 A kind of man-machine interaction method and device based on scene

Country Status (1)

Country Link
CN (1) CN103942056B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180037B (en) * 2016-03-09 2020-09-01 北京京东尚科信息技术有限公司 Man-machine interaction method and device
CN106843814B (en) * 2016-12-28 2018-11-23 北京智能管家科技有限公司 Multiple instructions processing method and processing device for robot system interaction
CN111382237B (en) * 2018-12-27 2024-02-06 北京搜狗科技发展有限公司 Data processing method, device and task dialogue system
CN110400564A (en) * 2019-08-21 2019-11-01 科大国创软件股份有限公司 A kind of chat robots dialogue management method based on stack

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368246A (en) * 2011-09-15 2012-03-07 张德长 Automatic-answer robot system
CN102902664A (en) * 2012-08-15 2013-01-30 中山大学 Artificial intelligence natural language operation system on intelligent terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716056B2 (en) * 2004-09-27 2010-05-11 Robert Bosch Corporation Method and system for interactive conversational dialogue for cognitively overloaded device users

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368246A (en) * 2011-09-15 2012-03-07 张德长 Automatic-answer robot system
CN102902664A (en) * 2012-08-15 2013-01-30 中山大学 Artificial intelligence natural language operation system on intelligent terminal

Also Published As

Publication number Publication date
CN103942056A (en) 2014-07-23

Similar Documents

Publication Publication Date Title
US9972014B2 (en) System and method for intelligent sales engagement
Khan et al. An analysis of the barriers to the proliferation of M-Commerce in Qatar: A relationship modeling approach
US11501232B2 (en) System and method for intelligent sales engagement
CN107111725A (en) Private information is protected in input understanding system
US8612532B2 (en) System and method for optimizing response handling time and customer satisfaction scores
CN102223363B (en) System and method for generating persistent sessions in a graphical interface for managing communication sessions
CN105117387B (en) A kind of intelligent robot interactive system
CN110383297A (en) It cooperative trains and/or using individual input neural network model and response neural network model for the determining response for being directed to electronic communication
CN103942056B (en) A kind of man-machine interaction method and device based on scene
CN107644286A (en) Workflow processing method and device
US11620444B2 (en) Providing action associated with event detected within communication
CN102810057A (en) Log recording method
CN108537644A (en) A kind of method and apparatus of customer service recommended products
US20150074043A1 (en) Distributed and open schema interactions management system and method
CN101202792B (en) Method and apparatus for processing messages based on relationship between sender and recipient
CN110046806A (en) Method, apparatus and calculating equipment for customer service worksheet processing
US20230418879A1 (en) System and method of data transformation
Ogunleye et al. Exploring the success, failure and factors influencing m-Government implementation in developing countries
CN110516164A (en) A kind of information recommendation method, device, equipment and storage medium
CN117314139A (en) Modeling method and device for business process, terminal equipment and storage medium
CN111522840A (en) Label configuration method, device, equipment and computer readable storage medium
US20180061258A1 (en) Data driven feature discovery
Karagiannis et al. Model driven design for e-applications: The meta model approach
CN107404426A (en) The method, apparatus and electronic equipment of batch addition good friend in immediate communication tool
CN108156273A (en) A kind of anonymous ID generation methods, device and electronic equipment

Legal Events

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