CN112084315B - Question-answer interaction method, device, storage medium and equipment - Google Patents

Question-answer interaction method, device, storage medium and equipment Download PDF

Info

Publication number
CN112084315B
CN112084315B CN202010928045.0A CN202010928045A CN112084315B CN 112084315 B CN112084315 B CN 112084315B CN 202010928045 A CN202010928045 A CN 202010928045A CN 112084315 B CN112084315 B CN 112084315B
Authority
CN
China
Prior art keywords
node
question
configuration
answer
interaction
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
CN202010928045.0A
Other languages
Chinese (zh)
Other versions
CN112084315A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010928045.0A priority Critical patent/CN112084315B/en
Publication of CN112084315A publication Critical patent/CN112084315A/en
Application granted granted Critical
Publication of CN112084315B publication Critical patent/CN112084315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a question-answer interaction method, a question-answer interaction device, a storage medium and equipment. Wherein the method comprises the following steps: responding to the question-answer task configuration request, and displaying at least two interactive nodes associated with the question-answer task configuration flow in the page; determining a current processing node based on triggering operation of the interaction node in the page; the following processing is performed on the current processing node: displaying a node window corresponding to a current processing node and a configuration dialog box in a page, wherein the node window comprises a prompt control and node configuration information corresponding to the prompt control, the configuration dialog box comprises an input control and custom configuration information corresponding to the input control, the node configuration information is used for indicating a current interaction node of a question-answer task configuration flow, and the custom configuration information is used for indicating configuration content required by the current interaction node; receiving a triggering operation of an input control; and updating the display content of the prompt control according to the triggering operation. The invention reduces the difficulty of multi-round question-answering configuration in different scenes.

Description

Question-answer interaction method, device, storage medium and equipment
Technical Field
The invention relates to the technical field of natural language processing, in particular to a question-answer interaction method, a question-answer interaction device, a storage medium and question-answer interaction equipment.
Background
Multiple rounds of interactions based on contextual dialog scenarios are important functions and huge challenges in intelligent questions and answers. In practical applications, the problem that the intelligent question-answering system needs to solve is likely to be a complex flow-type knowledge, rather than a simple question-answer form.
At present, based on an intelligent question-answering multi-round interaction scheme of a visual flow chart, by means of graphically managing flow knowledge and directly applying the flow knowledge to question-answering processing, the method comprises the steps of formalized representation and storage of nodes and edges in the visual flow chart and automatic addition of semantic understanding constraint conditions and flow guiding speech on the nodes and edges, so that an intelligent question-answering system can automatically answer consultations of users based on a complex flow chart. When the reply faces multiple choices, multiple guiding conditions can be actively proposed to the user; when the user replies a abbreviated response, constraint conditions can be automatically added when the semantics are understood, and the problem of default context is solved. However, the editing part of the flow chart has the defects of too complex function, insufficient abstraction, low availability and unfriendly to users. The concrete implementation is as follows: (1) The configuration of the flow chart response type node involves more complex semantic grammar configuration, and the learning cost is higher for a user; (2) The most core natural language understanding of the question-answering system is based on semantic grammar configuration of users in the system, and the application range of the question-answering system is extremely limited.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a question-answer interaction method, a question-answer interaction device, a storage medium and a question-answer interaction device, which are used for at least solving the technical problem of complex question-answer configuration.
According to one aspect of the embodiment of the invention, a question-answer interaction method is provided, which comprises the following steps:
responding to the question-answer task configuration request, and displaying at least two interactive nodes associated with the question-answer task configuration flow in the page;
determining a current processing node based on triggering operation of the interaction node in the page;
The current processing node is processed as follows:
Displaying a node window corresponding to a current processing node and a configuration dialog box in a page, wherein the node window comprises a prompt control and node configuration information corresponding to the prompt control, the configuration dialog box comprises an input control and custom configuration information corresponding to the input control, the node configuration information is used for indicating a current interaction node of a question-answer task configuration flow, and the custom configuration information is used for indicating configuration content required by the current interaction node;
receiving a triggering operation of the input control;
And updating the display content of the prompt control according to the triggering operation.
According to another aspect of the embodiment of the present invention, there is also provided a question-answer interaction device, including:
The display unit is used for responding to the question-answer task configuration request and displaying at least two interactive nodes associated with the question-answer task configuration flow in the page;
the determining unit is used for determining the current processing node according to the triggering operation of the interactive node in the page; ;
a processing unit, configured to perform the following processing on the current processing node: displaying a node window corresponding to a current processing node and a configuration dialog box in a page, wherein the node window comprises a prompt control and node configuration information corresponding to the prompt control, the configuration dialog box comprises an input control and custom configuration information corresponding to the input control, the node configuration information is used for indicating a current interaction node of a question-answer task configuration flow, and the custom configuration information is used for indicating configuration content required by the current interaction node; receiving a triggering operation of the input control; and updating the display content of the prompt control according to the triggering operation.
According to another aspect of the embodiments of the present invention, there is also provided a computer readable storage medium, where at least one instruction or at least one program is stored, where the at least one instruction or at least one program is loaded and executed by a processor to implement the question-answer interaction method described above.
According to another aspect of the embodiment of the present invention, there is also provided a computer device, where the computer device includes a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to execute the question-answer interaction method described above.
In the embodiment of the invention, the interactive nodes associated with the configuration flow of the question-answering task are acquired and displayed; determining a current processing node according to the triggering operation of the user on the interaction node; the processing of the current processing node includes: displaying a node window and a configuration dialog box corresponding to a current processing node in a page, wherein the node window comprises a prompt control and node configuration information corresponding to the prompt control, the configuration dialog box comprises an input control and custom configuration information corresponding to the input control, the node configuration information is used for indicating a current interaction node of a question-answer task configuration flow, and the custom configuration information is used for indicating configuration content required by the current interaction node; receiving a triggering operation of an input control; and updating the display content of the prompt control according to the triggering operation. The embodiment of the invention abstracts the visual configuration part, displays the node window and the configuration dialog box corresponding to the interactive node on the page, presents configuration link information and contents to be configured in natural language, and can create complete scene questions and answers by simple configuration, thereby reducing the learning threshold of the user and solving the technical problem of complex question and answer configuration.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic diagram of a hardware environment of a question-answer interaction method according to an embodiment of the present invention;
FIG. 2 is a data sharing system according to an embodiment of the present invention;
FIG. 3 is a flow chart of an alternative question-answer interaction method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a configuration interface corresponding to an alternative interaction node in accordance with an embodiment of the present invention;
FIG. 5 is a schematic diagram of a configuration interface corresponding to an alternative switching interaction node according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative question-answer configuration flow in accordance with embodiments of the invention;
FIG. 7 is a schematic diagram of a configuration interface of an alternative problem node according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a configuration interface of an alternative query node according to an embodiment of the invention;
FIG. 9 is a schematic diagram of a configuration interface of an alternative determination node according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a configuration interface of an alternative answer node according to an embodiment of the invention;
FIG. 11 is an example of a question and answer task flow diagram according to an embodiment of the invention;
FIG. 12 is a block diagram of a scenic question-answering configuration system according to an embodiment of the present invention;
FIG. 13 is a flow chart of a front end user operation process according to an embodiment of the present invention;
FIG. 14 is a flowchart of back-end data processing corresponding to a front-end user operational procedure in accordance with an embodiment of the present invention;
FIG. 15 is a timing diagram of use after a contextualized question-answer configuration in accordance with an embodiment of the invention;
FIG. 16 is a flow chart of a method of question-answer interaction according to an embodiment of the invention;
FIG. 17 is a schematic diagram of a question-answer interactive interface according to an embodiment of the invention;
FIG. 18 is a schematic diagram of a question-answering interaction device according to an embodiment of the present invention;
Fig. 19 is a block diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention provides a question-answer interaction method. Firstly, the embodiment of the invention discloses an implementation environment of a question-answer interaction method in a feasible embodiment.
Referring to fig. 1, the implementation environment includes: client 01, server 03.
The client 01 may include: the smart phone, tablet computer, notebook computer, digital assistant, intelligent wearable device, vehicle terminal and other type of physical device can also include software running in the physical device. The Client 01 may be communicatively connected to the Server 03 based on Browser/Server (B/S) or Client/Server (C/S) mode.
The server 03 may comprise a server running independently, or a distributed server, or a server cluster consisting of a plurality of servers.
The client 01 may send a request for configuring a question-answer task to the server 03, the client 01 sends the request for configuring the question-answer task to the server, the server 03 obtains data of a configuration flow of the question-answer task, the client 01 displays at least two interaction nodes associated with the configuration flow of the question-answer task in a page, obtains triggering operation of a user on the interaction nodes in the page, and determines a current processing node based on the triggering operation. For each current processing node, a node window and a configuration dialog box corresponding to the current processing node are displayed in a page of a client 01, wherein the node window comprises a prompt control and node configuration information corresponding to the prompt control, the configuration dialog box comprises an input control and custom configuration information corresponding to the input control, the node configuration information is used for indicating a current interaction node of a question-answer task configuration flow, and the custom configuration information is used for indicating configuration content required by the current interaction node; the server 03 receives the triggering operation of the client 01 on the input control, and updates the display content of the prompt control according to the triggering operation. And each interactive node is displayed through the node window and the configuration dialog box, the user does not need to learn the special concept and the complex semantic grammar configuration in the natural language processing field, the configuration content presented to the user through the client page is simple and easy to understand, and the configuration difficulty of the question-answering task is reduced.
The server in the scenario of the question-answer interaction method according to the embodiment of the present invention may be a data sharing system formed by connecting a plurality of nodes (access to any form of computing devices in the network, such as servers and clients) through a network communication.
Referring to the data sharing system shown in fig. 2, the data sharing system 400 refers to a system for performing data sharing between nodes, and the data sharing system may include a plurality of nodes 101, and the plurality of nodes 101 may be respective clients in the data sharing system. Each node 101 may receive input information while operating normally and maintain shared data within the data sharing system based on the received input information. In order to ensure the information intercommunication in the data sharing system, information connection can exist between each node in the data sharing system, and the nodes can transmit information through the information connection. For example, when any node in the data sharing system receives input information, other nodes in the data sharing system acquire the input information according to a consensus algorithm, and store the input information as data in the shared data, so that the data stored on all nodes in the data sharing system are consistent.
Each node in the data sharing system has a node identifier corresponding to the node identifier, and each node in the data sharing system can store the node identifiers of other nodes in the data sharing system, so that the generated block can be broadcast to other nodes in the data sharing system according to the node identifiers of other nodes. Each node can maintain a node identification list shown in the following table, and the node names and the node identifications are correspondingly stored in the node identification list. The node identifier may be an IP (Internet Protocol, protocol interconnecting between networks) address, or any other information that can be used to identify the node.
Referring to fig. 3, a flowchart of an alternative question-answer interaction method is shown, which may be implemented by using a client in the implementation environment shown in fig. 1 as an execution body, and the method may include the following steps.
Step S301: and responding to the question-answer task configuration request, and displaying at least two interactive nodes associated with the question-answer task configuration flow in the page.
Specifically, the system can pre-configure a plurality of problem scenes, such as scenes of tax payment, identity card handling and the like related to government affairs, scenes of course information query, school information query and the like related to education, scenes of scenic spot position query, scenic spot charging query and the like related to travel, construct a question-answer task configuration flow corresponding to each scene according to the regularity of question-answer in each scene, and establish a mapping relation between the question-answer task configuration flow and each problem scene. When a server receives a question-answer task configuration request sent by a client, matching a question-answer task configuration flow corresponding to the request according to a question scene carried by the question-answer task configuration request, and returning associated data of the question-answer task configuration flow obtained by matching to the client so that the client can display pages based on the associated data of the question-answer task configuration flow, and specifically, displaying at least two interactive nodes associated with the question-answer task configuration flow in the pages. The at least two interaction nodes related to the question-answer task configuration flow comprise a question node, an inquiry node, a judgment node and an answer node.
In one possible embodiment, the problem scene may be determined according to the keyword carried by the question-answering task configuration request, and the system obtains the configuration flow of the question-answering task corresponding to the problem scene according to the problem scene determined by the user. Specifically, the user may input keywords, the system may determine the problem scene by matching the keywords with pre-stored problem scenes, or may provide the pre-stored problem scenes to the user for the user to select, and determine the problem scene according to the user selection.
Step S303: and determining the current processing node based on the triggering operation of the interaction node in the page.
In one possible embodiment, a method of determining a current processing node may include: acquiring triggering operation of an interaction node in a page; when the triggering operation is the first triggering operation on the interaction node, determining the problem node as a current processing node; and when the triggering operation is not the first triggering operation of the interaction node, the interaction node corresponding to the triggering operation is used as the current processing node. Specifically, in each interaction node associated with the question-answer task configuration flow, the question node corresponds to a start link of the question-answer task configuration flow, the answer node corresponds to an end link of the question-answer task configuration flow, and the query node and the judgment node correspond to intermediate links of the question-answer task configuration flow.
Step S305: and processing the current processing node.
In one possible embodiment, the processing of the current node may include the steps of:
step S3051: the method comprises the steps that a node window corresponding to a current processing node and a configuration dialog box are displayed in a page, the node window comprises a prompt control and node configuration information corresponding to the prompt control, the configuration dialog box comprises an input control and custom configuration information corresponding to the input control, the node configuration information is used for indicating a current interaction node of a question-answer task configuration flow, and the custom configuration information is used for indicating configuration content required by the current interaction node.
Specifically, the page may include a layout area and an edit area, a node window of the current processing node is displayed in the layout area of the page, and a configuration dialog box is displayed in the edit area of the page.
FIG. 4 shows an optional configuration interface corresponding to an interaction node, where, as shown in FIG. 4, the configuration interface includes a layout area 41 and an editing area 43, when a stream is transferred to the interaction node, a node window 45 corresponding to the interaction node is displayed in the layout area 41 of the configuration interface, a configuration dialog box corresponding to the interaction node is displayed in the editing area 43, the node window 45 may be set to include node configuration information 451 and a prompt control 453, and the node configuration information is used to indicate relevant information of a current interaction node, for example, when the current node is a problem configuration node, the node configuration information may be "user problem"; the configuration dialog box may include custom configuration information 471 and input control 473, where the custom configuration information is used to indicate the configuration content required by the current interaction node, and is embodied as preset information associated with the interaction node, for example, for a problem configuration node, problem information needs to be configured, and the custom configuration information may include a configuration standard problem, a configuration similar problem, and a configuration of a next interaction node.
For the configuration of the next interactive node, the page may be presented in a drop down list. The drop-down list information may be a necessary element in a problem scene corresponding to the configured problem, for example, the configured problem is "i think about travel," the corresponding problem scene is a travel scene, the necessary element includes time and place, and the information in the drop-down list may include the query time and the query place, the user selects a next node from the list, and when the current node is configured, the current node jumps to the next interaction node selected by the user.
Step S3053: and receiving a triggering operation of the input control.
Optionally, the user may trigger an input control in the configuration interface. When the terminal is a mobile terminal such as a mobile phone, a tablet computer and the like, a user can touch, select and wake up an input box for an input control in an interface, and input characters in the input box. When the terminal is a desktop computer or a portable laptop computer, a user can wake up an input box and input characters by completing the selection of the input control through the input of external equipment, for example: the user can click the input control through a mouse, and can trigger the input control in a shortcut key input mode through a keyboard.
Step S3055: and updating the display content of the prompt control according to the triggering operation.
Multiple input controls are available in the configuration dialog, and multiple pieces of input information may be obtained through the input controls, in one possible embodiment, the most recent input information associated with the current processing node is used to update the prompt control. For example, in the question configuration node, an input control corresponding to a standard question and an input control corresponding to a similar question may be set, and the display control of the question configuration node may display input content corresponding to the standard question.
Further, after updating the display content of the prompt control according to the triggering operation in step S3055, the method may further include: closing a configuration dialog box of the current processing node in response to the selection operation of the next interaction node, and displaying a node window corresponding to the next interaction node of the current processing node in a layout area of the page; and responding to the selection operation of the node window corresponding to the next interaction node, and displaying a configuration dialog box corresponding to the next interaction node in the editing area of the page. According to the invention, four configuration nodes are abstracted according to the question-answer configuration flow under different question scenes, namely a question node, an inquiry node, a judgment node and an answer node, the configuration sequence and the number of the inquiry node and the judgment node can be adjusted according to the needs except that the configuration sequence of the question node and the answer node is fixed, for example, any number of inquiry nodes and/or judgment nodes can be configured between the question node and the answer node, and the configuration sequence between the judgment node and the inquiry node is not limited.
Fig. 5 is a schematic diagram of a configuration interface corresponding to an alternative switching interaction node according to an embodiment of the present invention. As shown in fig. 5, a closing control is set on the configuration dialog box, when a user triggers the closing control, the background responds to the triggering operation to close the configuration dialog box and jumps to the next interaction node, optionally, the layout area displays a node window corresponding to the next interaction node, and also can display the association relationship of two node windows. In one possible embodiment, the layout area and the editing area may be two display areas that do not overlap each other. In another embodiment, the editing area may be a display area superimposed on the layout area, that is, during the configuration of the question-answering task, the editing area may be flexibly adjusted according to the layout manner of the node window in the layout area, and the configuration dialog box may be displayed on the layout area in a floating layer manner.
Fig. 5 shows a process of jumping from the configuration of a question node to the configuration of an inquiring node in a travel-related problem scene, in fig. 5, a user inputs a standard question of 'i want to go to travel' in a question node configuration page, and selects a jumping node 'inquiring time', when the user triggers a closing control of a configuration dialog box in the question node configuration page, a node window corresponding to the inquiring time node (i.e. a new node window) is displayed in a layout area, the content of a node which needs to be configured at present is clear, when the user clicks a display control corresponding to the new node window, a configuration dialog box corresponding to the new node is generated in an editing area, and a connection line between the display control of the new node and the configuration dialog box can be displayed to represent the association relationship between the display control and the configuration dialog box. And the configuration of the corresponding information of each interaction node in the configuration flow can be completed by the same way.
Further, when receiving a closing operation of a configuration dialog box corresponding to an interaction node (answer node) at the tail position of the configuration sequence, closing the configuration dialog box of the interaction node; and displaying a question-answer task processing flow chart consisting of node windows of all the interactive nodes in the page, wherein all the node windows in the question-answer task processing flow chart are associated and displayed according to the processing sequence. In one possible embodiment, each node window association display may be to associate a connection line between node windows corresponding to adjacent interaction nodes.
The embodiment of the invention abstracts the visual configuration part, displays the node window and the configuration dialog box corresponding to the interactive node on the page, presents configuration link information and contents to be configured in natural language, and can generate multiple rounds of questions and answers covering specific scenes by simply configuring the user according to prompts, thereby reducing the learning threshold of the user and solving the technical problem of complex question and answer configuration.
The embodiment of the invention provides a question-answer interaction method, which comprises the following steps: responding to the question-answer task configuration request, and displaying at least two interactive nodes associated with the question-answer task configuration flow in the page; and determining the current processing node based on the triggering operation of the interaction node in the page.
The configuration flow of the question-answer task is shown in fig. 6, and the interaction node includes a question node, an inquiry node, a judgment node and an answer node, where the question node is a start node of the question-answer configuration flow, the answer node is an end node of the question-answer configuration flow, the inquiry node and the judgment node belong to intermediate nodes, and a user can select configuration according to needs. Of course, as shown in fig. 6, the question node, the query node, the judgment node, and the answer node may be sequentially configured.
In connection with the configuration flow shown in fig. 6, the question-answer task configuration process may include the following steps:
S601: displaying a problem node window and a problem configuration dialog box corresponding to the problem node, wherein custom configuration information in the problem configuration dialog box is used for indicating to configure the problem; responding to the triggering operation of an input control in the question configuration dialog box, and acquiring a question corresponding to the triggering operation; and updating the display content of the prompt control of the problem node window according to the problem.
FIG. 7 is a diagram illustrating a configuration interface of a user question node for configuring a question that triggers the question-answering task, where a standard question may be configured, and a similar question may be configured, where both the standard question and the similar question may trigger the question-answering task. When the problems configured by the user are enough, the background algorithm model can generalize the problems, and similar question methods are automatically generated when the user inputs standard problems, so that the user can respond to various question methods of the user.
The next node of the question node is the query node, for how to query, the necessary parameters that must be provided by the user from the question to the answer can be determined first, and the query can be performed based on these necessary parameters, so in one possible embodiment, a query node corresponding configuration interface can be displayed, in which the user can configure query data corresponding to all the necessary parameters, in another possible embodiment, multiple query nodes can also be set based on the necessary parameters, as shown in fig. 7, after the question "i want to travel" is obtained, the necessary parameters "time" and "place" corresponding to travel are determined, and then the node of the query time and the node of the query place can be generated based on the necessary parameters, and the user determines the sequence of the query nodes related to configuring the necessary parameters by configuring the next node of the jump.
S603: displaying an inquiry node window and an inquiry configuration dialog box corresponding to the inquiry node, wherein the custom configuration information in the inquiry configuration dialog box is used for indicating necessary parameters which are necessary to be contained in the problem and configuring inquiry dialogs when the problem lacks the necessary parameters; responding to the triggering operation of an input control in the inquiry configuration dialog box, acquiring necessary parameters and inquiry dialogs corresponding to the triggering operation, and establishing a corresponding relation between the necessary parameters and the problem scene; and updating the display content of the prompt control of the query node window according to the necessary parameters and the query operation.
In the configuration interface corresponding to the query node, a query operation of parameters can be configured, for example, in a scene of buying wine, sweetness and year of the wine can be used as necessary parameters, and when a user does not provide relevant parameters, the query node can be configured to acquire the parameters. For each necessary parameter, a dictionary corresponding to the parameter needs to be set, the dictionary records the value corresponding to the parameter, the dictionary is referenced to limit the value range of the parameter, for example, a dictionary can be built for the sweetness of the wine, namely, the sweetness is built, the dictionary comprises full sweetness, half sweet, half dry and the like, and when the value in the dictionary is given by a user, the necessary parameter corresponding to the dictionary is determined to be provided. The user may create a personalized dictionary for his/her own scenario, and the system may also provide some commonly used system dictionaries, such as a dictionary of "sys. Dates" for travel times, a dictionary of "sys. Tourist attractions" for tourist sites. In addition, the number of times of asking for the necessary parameters may be set, and if the number of times of asking for the necessary parameters is not obtained, the user may be replied with a response answer without obtaining the necessary parameters.
According to fig. 7, the user determines the node to jump to the inquiry time next in the configuration interface of the problem node, and generates the configuration interface of the node of the inquiry time as shown in fig. 8. The necessary parameter for the query node in fig. 8 is time, configure query to "when you want to go? The user selects the parameter to be acquired as the travel time, and the system automatically matches the dictionary "sys. Date" according to the parameter. In addition, a processing strategy of failure in acquiring the table parameters is also configured, the number of times of the overtaking of the necessary parameters is set to 2, the overtaking operation of the overtaking of the two times and the response answer without acquiring the necessary parameters are respectively set, and if the overtaking operation is carried out for two times and the necessary parameters are not acquired, the user can be replied by the response answer without acquiring the necessary parameters.
S605: displaying a judging node window and a conditional configuration dialog box corresponding to the judging node, wherein the custom configuration information in the conditional configuration dialog box is used for indicating the configuration of the parameter value of the necessary parameter; responding to the triggering operation of the input control in the condition configuration dialog box, acquiring a parameter value corresponding to a necessary parameter in the triggering operation, determining a judging branch according to the parameter value, and establishing a corresponding relation between the judging branch and the parameter value; and updating the display content of the prompt control in the judging node window according to the parameter value.
Fig. 9 shows a configuration interface corresponding to a determination node, where the configuration interface may be configured by performing conditional determination according to parameter values of necessary parameters provided by a user, so as to generate different determination branches, where each determination branch may give different replies. When configuring the parameter values of the necessary parameters, the system calls a dictionary configured by the query node, the input control presents the values within the dictionary in the form of a drop-down list, and the user determines the parameter values of the necessary parameters by selecting the values from the dictionary. In fig. 9, the user sets three sets of parameter values, where each set of parameter values includes a parameter value corresponding to travel time and a parameter value corresponding to a travel location, and each set of parameter values corresponds to a judgment branch, and the parameter values are judgment conditions of the judgment branch; correspondingly, three judgment branches and judgment conditions corresponding to each judgment branch are displayed in the node window.
S607: displaying an answer node window and an answer configuration dialog box corresponding to the answer node, wherein the custom configuration information in the answer configuration dialog box is used for indicating to configure answers corresponding to the parameter values, and the answer node window corresponds to the judging branches one by one; responding to the triggering operation of an input control in the answer configuration dialog box, acquiring the answer of the question corresponding to each judgment branch in the triggering operation, and establishing the corresponding relation between the parameter value corresponding to the judgment branch and the answer of the question; and updating the display content of the prompt control in the answer node window corresponding to the judging branch according to the question answer of the judging branch.
Fig. 10 shows a configuration interface corresponding to answer nodes, where node windows corresponding to answer nodes correspond to judging branches one by one, and how many judging branches are corresponding to how many answer node windows are, and an answer configuration dialog box corresponding to answer node windows can be displayed by selecting any answer node window, and a user can input replies corresponding to judging branches through input controls, and the replies can be simple texts or rich text data such as links, pictures, videos and the like.
Step S607 is completed to complete the data configuration of each interaction node in the question-answering task configuration flow, and a question-answering task flow chart shown in fig. 11 is obtained, where the flow chart presents the configuration content of each interaction node, and shows the complete flow of the question-answering task. In practical application, a question of a user triggers a question-answering task; after the robot judges that the problem of the user lacks parameters, the robot inquires the user by using a configured speaking technique; when the robot collects all necessary parameters, judging according to the values of the parameters, and jumping to the corresponding answer node. The question and answer task showing flow chart can facilitate the user to check the configuration data, and if the configuration content needs to be modified, the user can call out the configuration dialog box to update the configuration data by clicking a prompt control in the node window.
The following describes the scheme of the embodiment of the present invention from the system point of view.
Fig. 12 is an overall block diagram of a question-answering system according to the present invention, the system comprising: semantic understanding NLU (Natural Language Understanding)), dialog management DM (Dialog Management), which includes intent recognition, entity extraction, feature expression, etc., and language generation NLG (Natural Language Generation), which includes forms of dialog state tracking, dialog activity decision, etc., including task replies, QA matches, etc. Compared with the traditional question-answering system, the main improvement of the question-answering system is that a language generating part is provided with a middle layer for protocol butt joint for configuration data of a user in the language generating part, the traditional dialogue system is connected with the scene question-answering through the protocol butt joint layer, and a user-friendly scene question-answering configuration interface is provided for the user to configure the scene question-answering data. The scenery question and answer means: in a specific scenario, the intelligent robot makes a number of rounds of questions and answers with the user.
When the user provides question-answer data (such as a question-answer task flowchart shown in fig. 11) through the scene question-answer configuration page, the front end converts the question-answer data into JSON (JavaScript Object Notation, JS object numbered musical notation) data understandable by the background server. JSON is a lightweight data exchange format, which is based on a subset of ECMAScript (js specification formulated by european computer association), stores and represents data in a text format completely independent of programming language, has a concise and clear hierarchical structure, is easy to read and write by people, is easy to parse and generate by machines, effectively improves network transmission efficiency, and is an ideal data exchange language.
The actual generation process of JSON corresponds to the operation process of the user, fig. 13 shows the operation process of the user, and fig. 14 shows the JSON generation process corresponding to the operation process of the user in fig. 13. When the front end executes the step S131 to create a scene question and answer, the background server correspondingly executes the step S141, including creating a classification, a domain and an intention corresponding to the problem scene according to the front end input. When the front end performs step S133 and the user configures the page content, the background server correspondingly performs step S143, and edits the scenerified question-answer data based on the input operation of the user through the configuration page. When the front end performs step S135 to check whether the data passes, the background server correspondingly performs step S145 to check whether the node data of the interaction node passes, whether the check graph forms a ring after the node data passes, and when the node data check fails or the check graph does not form a ring, step S147 is performed, and when the node data check fails and the check graph forms a ring, step S149 is performed, wherein, whether the check node data passes or not can be obtained by checking whether the necessary filling data corresponding to each interaction node, if not obtained, it is determined that the check node fails, if obtained, it is determined that the check node passes, whether the check graph forms a ring can be checked whether configuration logic between the front node and the rear node accords with a preset rule, if so, it is determined that the check graph forms a ring, if not accords, it is determined that the graph does not form a ring, specifically, a node where the front node of each node is allowed to appear can be preset, for example, a problem node and a judging node can appear before the query node, but an answer node should not appear, and if the answer node appears before the query node, the check result of the check graph is a non-ring. When the verification data passes, the front end jumps to step S137 to complete the question and answer configuration data editing of the current page, and the background server correspondingly executes step S147, including processing the user corpus, processing the query parameters, saving the scene question and answer data, and saving the canvas data. When the verification data does not pass, the front end jumps to step S139, saves the configuration data corresponding to the node as a draft and returns to step S133, and the background server correspondingly executes step S149, saves the scene question-answer data and saves the canvas data, and jumps to step S143.
The visual scene question-answering configuration system provided by the embodiment of the invention shields the special concept of the complex natural language processing field for the user, completes the connection between the traditional dialogue system and the scene question-answering through one protocol docking layer, simultaneously provides a user-friendly interface for the user to configure the scene question-answering, shields the fussy configuration file writing process, obviously reduces the thresholds of intelligent customer service multi-round question-answering configuration of different scenes, and realizes low-cost access on the premise of ensuring high coverage of the scene question-answering. Compared with the existing scheme, the JSON protocol is high in expandability, basically can cover all scenes, can cover enough branches for each scene, is strong enough based on the existing mature question-answering system, and can remarkably improve the scene coverage rate and the intelligent question-answering system of the whole system.
Fig. 15 is a use timing chart after a scene question-answer configuration according to an embodiment of the present invention, please refer to fig. 15, a front-end customer service terminal obtains a user question "i buy white wine", sends the user question to a semantic understanding unit NLU for semantic analysis, identifies an intention, a domain and an entity corresponding to the user question, sends a semantic analysis result to a dialogue management unit DM, the dialogue management unit obtains scene question-answer configuration data in a scene corresponding to the user question from a database DB through a protocol interfacing layer according to the domain, the intention and a context of the user question, returns a query statement to the dialogue management unit DM when the protocol interfacing layer determines that the user question lacks necessary parameters, sends the query statement to the customer service terminal by the dialogue management unit DM, presents the query statement through a page of the customer service terminal, further receives a response of the query statement from the user, and after the response content is analyzed by the semantic understanding unit NLU, the dialogue management unit DM distributes a session according to the domain, the intention and context corresponding to the response content, and the protocol interfacing layer matches the answer according to the parameters, and returns the question answer from the dialogue management unit DM to the customer service terminal.
In the embodiment of the invention, on the question-answering task configuration interface, a user can establish a complete scene question-answering only by prompting the information of the configuration question, parameters, reply words and the like, and behind the complete scene question-answering, the front end shields concepts such as fields, intentions, slots, corpora, entity libraries, entities and the like, and the concepts which are easy to understand such as the user question, the query parameters, the additional questions, conditions, dictionaries, vocabulary entries and the like are exposed to the user, so that the difficulty of scene question-answering configuration is reduced.
The embodiment of the invention also provides a method for carrying out question-answer interaction based on the question-answer task configuration data, as shown in fig. 16, the method can comprise the following steps:
S1601: the input controls are presented on the access page.
S1603: when the input control is triggered, acquiring an inquiry sentence corresponding to the triggering operation; determining a problem scene corresponding to the inquiry statement; and determining a missing parameter set according to the necessary parameters corresponding to the question scene and the query statement, wherein the missing parameters in the missing parameter set are the necessary parameters which are missing in the query statement and are used for triggering to obtain the question answer.
In one possible embodiment, a method of determining a problem scenario may include: extracting sentence elements corresponding to each necessary parameter from the query data according to the necessary parameters corresponding to the problem scene, and taking the sentence elements obtained by extraction as parameter values of the query data; the obtaining the response answer corresponding to the parameter value of the query data according to the corresponding relation between the parameter value of the judging branch and the question answer comprises the following steps: and matching the parameter value of the query data with the parameter value of the judging branch, and taking the question answer corresponding to the judging branch matched with the parameter value of the query data as the response answer.
In one possible embodiment, the missing parameter set may be determined by: carrying out semantic analysis on the query statement, and determining a problem scene corresponding to the query statement according to a semantic analysis result; inquiring necessary parameters preset in the problem scene to obtain a first parameter set; determining parameters of each sentence element in the inquiry sentence to obtain a second parameter set; comparing the first parameter set with the second parameter set, and if all necessary parameters in the first parameter set exist in the second parameter set, determining that the missing parameter set is empty; if the second parameter set does not contain all necessary parameters in the first parameter set, taking the necessary parameters which exist in the first parameter set and are not in the second parameter set as missing parameters, and constructing the missing parameter set according to the missing parameters.
S1605: whether the missing parameter set is empty is determined, if the missing parameter set is empty, step S1607 is executed, and if the missing parameter set is not empty, step S1609 is executed.
S1607: and determining inquiry data according to the inquiry statement.
S1609: generating a return query sentence according to the missing parameters in the missing parameter set and a preset query operation; displaying the return statement on the access page, and acquiring reply information aiming at the return statement through the input control; and determining query data according to the reply information and the query statement.
S1611: and determining parameter values of the query data based on the query data and necessary parameters corresponding to the problem scene.
S1613: and acquiring a response answer corresponding to the parameter value of the query data according to the corresponding relation between the parameter value of the judging branch and the question answer, and displaying the response answer on the access page.
Fig. 17 is a schematic diagram of a question-answer interactive interface according to an embodiment of the present invention, referring to fig. 17, a user inputs a question to be asked through a client, and a robot responds to the user question according to preset question-answer configuration data to generate a question-answer dialogue flow shown in the figure.
The embodiment of the invention also discloses a question-answer interaction device, as shown in fig. 18, which comprises a display unit 1810, a determining unit 1820 and a processing unit 1830.
And the display unit 1810 is configured to respond to the question-answer task configuration request and display at least two interaction nodes associated with the question-answer task configuration flow in the page.
A determining unit 1820, configured to determine a current processing node according to a trigger operation on the interaction node in the page.
A processing unit 1830, configured to perform the following processing on the current processing node: displaying a node window corresponding to a current processing node and a configuration dialog box in a page, wherein the node window comprises a prompt control and node configuration information corresponding to the prompt control, the configuration dialog box comprises an input control and custom configuration information corresponding to the input control, the node configuration information is used for indicating a current interaction node of a question-answer task configuration flow, and the custom configuration information is used for indicating configuration content required by the current interaction node; receiving a triggering operation of the input control; and updating the display content of the prompt control according to the triggering operation.
Further, the question-answer interaction device according to the embodiment of the present invention may further include:
The input control display unit is used for displaying the input control on the access page;
the problem scene determining unit is used for acquiring an inquiry statement corresponding to the triggering operation when the input control is triggered; determining a problem scene corresponding to the inquiry statement; determining a missing parameter set according to the necessary parameters corresponding to the question scene and the query statement, wherein the missing parameters in the missing parameter set are the necessary parameters which are missing in the query statement and are used for triggering to obtain a question answer;
The inquiry data determining unit is used for determining inquiry data according to the inquiry statement when the missing parameter set is empty; when the missing parameter set is non-empty, generating a return query statement according to the missing parameters in the missing parameter set and a preset query language; displaying the return statement on the access page, and acquiring reply information aiming at the return statement through the input control; determining inquiry data according to the reply information and the inquiry statement;
a parameter value determining unit configured to determine a parameter value of the query data based on the query data and a necessary parameter corresponding to the problem scene;
and the answer determining unit is used for acquiring a response answer corresponding to the parameter value of the query data according to the corresponding relation between the parameter value of the judging branch and the question answer, and displaying the response answer on the access page.
The question-answer method interaction device and the question-answer method interaction method are based on the same invention conception. Please refer to the method embodiment for details, which will not be described herein.
The embodiment of the invention provides electronic equipment, which comprises a processor and a memory, wherein at least one instruction and at least one section of program are stored in the memory, and the at least one instruction or the at least one section of program is loaded and executed by the processor to realize a question-answer interaction method corresponding to the method shown in figures 3-17.
The memory may be used to store software programs and modules that the processor executes to perform various functional applications and data processing by executing the software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to the use of the device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide access to the memory by the processor.
Embodiments of the present invention also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the computer device to perform the question-answer interaction method provided in the various alternative implementations described above.
Further, fig. 19 shows a schematic diagram of a hardware structure of an apparatus for implementing the method provided by the embodiment of the present invention, where the apparatus may participate in forming or including the device or the system provided by the embodiment of the present invention. As shown in fig. 19, the apparatus 10 may include one or more processors 102 (shown as 102a, 102b, … …,102n in the figures) which may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 12 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the device 10 may also include more or fewer components than shown in fig. 19, or have a different configuration than shown in fig. 19.
It should be noted that the one or more processors 102 and/or other data processing circuits described above may be referred to generally herein as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Further, the data processing circuitry may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the device 10 (or mobile device). As referred to in embodiments of the application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination connected to the interface).
The memory 104 may be used to store software programs and modules of application software, and the processor 102 executes the software programs and modules stored in the memory 104 to perform various functional applications and data processing, i.e., implement a question-answer interaction method as described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which may be connected to device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communications provider of device 10. In one example, the transmission device 106 includes a network adapter (NetworkInterfaceController, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a radio frequency (RadioFrequency, RF) module for communicating wirelessly with the internet.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the device 10 (or mobile device).
It should be noted that: the sequence of the embodiments of the present invention is only for description, and does not represent the advantages and disadvantages of the embodiments. And the foregoing description has been directed to specific embodiments of this specification. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device and server embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and references to the parts of the description of the method embodiments are only required.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (10)

1. The question-answer interaction method is characterized by comprising the following steps of:
Responding to the question-answer task configuration request, and displaying at least two interactive nodes associated with the question-answer task configuration flow in the page; the at least two interaction nodes related to the question-answer task configuration flow comprise a question node, an inquiry node, a judgment node and an answer node;
determining a current processing node based on triggering operation of the interaction node in the page; the determining the current processing node based on the triggering operation of the interaction node in the page comprises the following steps:
Acquiring triggering operation of an interaction node in a page;
When the triggering operation is the first triggering operation on the interaction node, determining the problem node as a current processing node;
When the triggering operation is not the first triggering operation of the interaction node, the interaction node corresponding to the triggering operation is used as the current processing node;
The current processing node is processed as follows:
displaying a node window corresponding to a current processing node and a configuration dialog box in a page, wherein the node window comprises a prompt control and node configuration information corresponding to the prompt control, the configuration dialog box comprises an input control and custom configuration information corresponding to the input control, the node configuration information is used for indicating a current interaction node of a question-answer task configuration flow, the custom configuration information is used for indicating configuration content required by the current interaction node, and the custom configuration information is preset information associated with the current interaction node; the custom configuration information comprises the configuration of the next interaction node; the number of the input controls is multiple, the multiple input controls are used for acquiring multiple pieces of input information, and the multiple pieces of input information are used for updating the display content of the prompt control;
receiving a triggering operation of the input control;
updating the display content of the prompt control according to the triggering operation;
Closing a configuration dialog box corresponding to the answer node in response to closing operation of the configuration dialog box corresponding to the answer node;
A question-answer task processing flow chart composed of node windows of all interactive nodes is displayed in the page, and all the node windows in the question-answer task processing flow chart are associated and displayed according to the processing sequence; the question-answering task processing flow chart is used for checking the configuration data of each interactive node;
The verifying the configuration data of each interactive node comprises the following steps:
Performing node data verification on the node data of each interaction node to obtain a data verification result; the data verification result is used for determining whether the necessary filling data corresponding to each interaction node are obtained or not;
Under the condition that the data verification result indicates that verification passes, carrying out configuration logic verification on each interaction node to obtain a logic verification result; the configuration logic check is used for determining whether the configuration logic among the interaction nodes accords with a preset rule;
And determining that the question-answering task flow chart is looped under the condition that the logic check result indicates that the check is passed.
2. The method according to claim 1, wherein the displaying the node window and the configuration dialog box corresponding to the current processing node in the page includes:
and displaying a node window of the current processing node in the layout area of the page, and displaying a configuration dialog box in the editing area of the page.
3. The method of claim 1, wherein after updating the display content of the reminder control according to the trigger operation, further comprising:
Closing a configuration dialog box of the current processing node in response to the selection operation of the next interaction node, and displaying a node window corresponding to the next interaction node of the current processing node in a layout area of the page;
And responding to the selection operation of the node window corresponding to the next interaction node, and displaying a configuration dialog box corresponding to the next interaction node in the editing area of the page.
4. The method of claim 1, wherein the question node corresponds to a beginning link of the quiz task configuration flow and the answer node corresponds to an ending link of the quiz task configuration flow.
5. The method of claim 1, wherein the step of determining the position of the substrate comprises,
When the current processing node is a problem node, the processing performed on the current processing node includes:
Displaying a problem node window and a problem configuration dialog box corresponding to the problem node, wherein custom configuration information in the problem configuration dialog box is used for indicating to configure the problem; responding to the triggering operation of an input control in the question configuration dialog box, and acquiring a question corresponding to the triggering operation; updating the display content of the prompt control of the problem node window according to the problem;
When the current processing node is an inquiring node, the processing performed on the current processing node includes:
Displaying an inquiry node window and an inquiry configuration dialog box corresponding to the inquiry node, wherein the custom configuration information in the inquiry configuration dialog box is used for indicating necessary parameters which are necessary to be contained in the problem and configuring inquiry dialogs when the problem lacks the necessary parameters; responding to the triggering operation of an input control in the inquiry configuration dialog box, acquiring necessary parameters and inquiry dialogs corresponding to the triggering operation, and establishing a corresponding relation between the necessary parameters and a problem scene; updating the display content of the prompt control of the query node window according to the necessary parameters and the query operation;
When the current processing node is a judging node, the processing executed on the current processing node comprises:
Displaying a judging node window and a conditional configuration dialog box corresponding to the judging node, wherein the custom configuration information in the conditional configuration dialog box is used for indicating the configuration of the parameter value of the necessary parameter; responding to the triggering operation of the input control in the condition configuration dialog box, acquiring a parameter value corresponding to a necessary parameter in the triggering operation, determining a judging branch according to the parameter value, and establishing a corresponding relation between the judging branch and the parameter value; updating the display content of the prompt control in the judging node window according to the parameter value;
when the current processing node is an answer node, the processing performed on the current processing node includes:
Displaying an answer node window and an answer configuration dialog box corresponding to the answer node, wherein the custom configuration information in the answer configuration dialog box is used for indicating to configure answers corresponding to the parameter values, and the answer node window corresponds to the judging branches one by one; responding to the triggering operation of an input control in the answer configuration dialog box, acquiring the answer of the question corresponding to each judgment branch in the triggering operation, and establishing the corresponding relation between the parameter value corresponding to the judgment branch and the answer of the question; and updating the display content of the prompt control in the answer node window corresponding to the judging branch according to the question answer of the judging branch.
6. The method of claim 5, wherein the method further comprises:
Displaying an input control on the access page;
When the input control is triggered, acquiring an inquiry sentence corresponding to the triggering operation; determining a problem scene corresponding to the inquiry statement; determining a missing parameter set according to the necessary parameters corresponding to the question scene and the query statement, wherein the missing parameters in the missing parameter set are the necessary parameters which are missing in the query statement and are used for triggering to obtain a question answer;
when the missing parameter set is empty, determining query data according to the query statement; when the missing parameter set is non-empty, generating a return query statement according to the missing parameters in the missing parameter set and a preset query language; displaying the return statement on the access page, and acquiring reply information aiming at the return statement through the input control; determining inquiry data according to the reply information and the inquiry statement;
Determining parameter values of the query data based on the query data and necessary parameters corresponding to the problem scene;
And acquiring a response answer corresponding to the parameter value of the query data according to the corresponding relation between the parameter value of the judging branch and the question answer, and displaying the response answer on the access page.
7. A question-answering interaction device, comprising:
The display unit is used for responding to the question-answer task configuration request and displaying at least two interactive nodes associated with the question-answer task configuration flow in the page; the at least two interaction nodes related to the question-answer task configuration flow comprise a question node, an inquiry node, a judgment node and an answer node;
The determining unit is used for determining the current processing node according to the triggering operation of the interactive node in the page; the determining the current processing node according to the triggering operation of the interaction node in the page comprises the following steps:
Acquiring triggering operation of an interaction node in a page;
When the triggering operation is the first triggering operation on the interaction node, determining the problem node as a current processing node;
When the triggering operation is not the first triggering operation of the interaction node, the interaction node corresponding to the triggering operation is used as the current processing node;
A processing unit, configured to perform the following processing on the current processing node: displaying a node window corresponding to a current processing node and a configuration dialog box in a page, wherein the node window comprises a prompt control and node configuration information corresponding to the prompt control, the configuration dialog box comprises an input control and custom configuration information corresponding to the input control, the node configuration information is used for indicating a current interaction node of a question-answer task configuration flow, the custom configuration information is used for indicating configuration content required by the current interaction node, and the custom configuration information is preset information associated with the current interaction node; the custom configuration information comprises the configuration of the next interaction node; the number of the input controls is multiple, the multiple input controls are used for acquiring multiple pieces of input information, and the multiple pieces of input information are used for updating the display content of the prompt control; receiving a triggering operation of the input control; updating the display content of the prompt control according to the triggering operation; closing a configuration dialog box corresponding to the answer node in response to closing operation of the configuration dialog box corresponding to the answer node;
A question-answer task processing flow chart composed of node windows of all interactive nodes is displayed in the page, and all the node windows in the question-answer task processing flow chart are associated and displayed according to the processing sequence; the question-answering task processing flow chart is used for checking the configuration data of each interactive node;
The verifying the configuration data of each interactive node comprises the following steps:
Performing node data verification on the node data of each interaction node to obtain a data verification result; the data verification result is used for determining whether the necessary filling data corresponding to each interaction node are obtained or not;
Under the condition that the data verification result indicates that verification passes, carrying out configuration logic verification on each interaction node to obtain a logic verification result; the configuration logic check is used for determining whether the configuration logic among the interaction nodes accords with a preset rule;
And determining that the question-answering task flow chart is looped under the condition that the logic check result indicates that the check is passed.
8. The question-answering interaction device according to claim 7, further comprising:
The input control display unit is used for displaying the input control on the access page;
the problem scene determining unit is used for acquiring an inquiry statement corresponding to the triggering operation when the input control is triggered; determining a problem scene corresponding to the inquiry statement; determining a missing parameter set according to the necessary parameters corresponding to the question scene and the query statement, wherein the missing parameters in the missing parameter set are the necessary parameters which are missing in the query statement and are used for triggering to obtain a question answer;
The inquiry data determining unit is used for determining inquiry data according to the inquiry statement when the missing parameter set is empty; when the missing parameter set is non-empty, generating a return query statement according to the missing parameters in the missing parameter set and a preset query language; displaying the return statement on the access page, and acquiring reply information aiming at the return statement through the input control; determining inquiry data according to the reply information and the inquiry statement;
a parameter value determining unit configured to determine a parameter value of the query data based on the query data and a necessary parameter corresponding to the problem scene;
and the answer determining unit is used for acquiring a response answer corresponding to the parameter value of the query data according to the corresponding relation between the parameter value of the judging branch and the question answer, and displaying the response answer on the access page.
9. A computer readable storage medium having stored therein at least one instruction or at least one program loaded and executed by a processor to implement a question-answer interaction method according to any one of claims 1 to 6.
10. A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the question-answer interaction method of any one of claims 1 to 6.
CN202010928045.0A 2020-09-07 2020-09-07 Question-answer interaction method, device, storage medium and equipment Active CN112084315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010928045.0A CN112084315B (en) 2020-09-07 2020-09-07 Question-answer interaction method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010928045.0A CN112084315B (en) 2020-09-07 2020-09-07 Question-answer interaction method, device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN112084315A CN112084315A (en) 2020-12-15
CN112084315B true CN112084315B (en) 2024-06-11

Family

ID=73731616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010928045.0A Active CN112084315B (en) 2020-09-07 2020-09-07 Question-answer interaction method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN112084315B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296906B (en) * 2021-03-31 2023-11-28 阿里巴巴新加坡控股有限公司 Task configuration method and device
CN114936272A (en) * 2021-04-27 2022-08-23 华为技术有限公司 Question answering method and system
CN113282728A (en) * 2021-06-07 2021-08-20 平安国际智慧城市科技股份有限公司 Dialogue data processing method, device, computer equipment and storage medium
CN115543285A (en) * 2021-06-29 2022-12-30 北京字跳网络技术有限公司 Interactive window display method, device, equipment and storage medium
CN114035725B (en) * 2021-08-26 2024-06-25 武汉联影医疗科技有限公司 Teaching method and device of ultrasonic equipment, ultrasonic imaging equipment and storage medium
CN114356178B (en) * 2022-01-12 2024-01-19 平安科技(深圳)有限公司 Interactive content configuration method and device, terminal equipment and storage medium
CN117076651A (en) * 2023-10-16 2023-11-17 彩讯科技股份有限公司 Method, device, equipment and computer readable storage medium for processing interaction information

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804643A (en) * 2018-06-05 2018-11-13 北京玄科技有限公司 Flow dispensing unit, method and the intelligent robot interactive system of more wheel sessions
CN111311186A (en) * 2020-02-19 2020-06-19 杭州朗和科技有限公司 Work order creating method, medium, device and computing equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110070370A (en) * 2019-04-29 2019-07-30 上海智臻智能网络科技股份有限公司 Pay a return visit providing method, device, computer equipment and the storage medium of service
CN110275948B (en) * 2019-05-30 2024-06-25 平安科技(深圳)有限公司 Free jump method, device and medium for self-service
CN110263144A (en) * 2019-06-27 2019-09-20 深圳前海微众银行股份有限公司 A kind of answer acquisition methods and device
CN111416839B (en) * 2020-02-26 2022-09-23 平安科技(深圳)有限公司 Cluster environment timing task processing method, system, device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804643A (en) * 2018-06-05 2018-11-13 北京玄科技有限公司 Flow dispensing unit, method and the intelligent robot interactive system of more wheel sessions
CN111311186A (en) * 2020-02-19 2020-06-19 杭州朗和科技有限公司 Work order creating method, medium, device and computing equipment

Also Published As

Publication number Publication date
CN112084315A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN112084315B (en) Question-answer interaction method, device, storage medium and equipment
CN108090177B (en) Multi-round question-answering system generation method, equipment, medium and multi-round question-answering system
CN110442701B (en) Voice conversation processing method and device
US20200301954A1 (en) Reply information obtaining method and apparatus
US20210173548A1 (en) Virtual assistant acquisitions and training
CN108446286B (en) Method, device and server for generating natural language question answers
WO2020253064A1 (en) Speech recognition method and apparatus, and computer device and storage medium
CN111737411A (en) Response method in man-machine conversation, conversation system and storage medium
CN109614474A (en) Multi-round conversation process configuration unit and method and intelligent robot interaction system
US20080160487A1 (en) Modularized computer-aided language learning method and system
CN109271503A (en) Intelligent answer method, apparatus, equipment and storage medium
CN108306813B (en) Session message processing method, server and client
CN114490975A (en) User question labeling method and device
CN111651989A (en) Named entity recognition method and device, storage medium and electronic device
CN111553138A (en) Auxiliary writing method and device for standardizing content structure document
CN112784024B (en) Man-machine conversation method, device, equipment and storage medium
CN112148844A (en) Information reply method and device for robot
CN110427470A (en) Question and answer processing method, device and electronic equipment
CN112559718B (en) Method, device, electronic equipment and storage medium for dialogue processing
CN111933118B (en) Method and device for optimizing voice recognition and intelligent voice dialogue system applying same
CN112837683A (en) Voice service method and device
JP7071514B2 (en) Audio information processing methods, devices, storage media and electronic devices
CN109960489B (en) Method, device, equipment, medium and question-answering system for generating intelligent question-answering system
CN114255750B (en) Data set construction and task-based dialogue method, electronic device and storage medium
CN110647314B (en) Skill generation method and device and electronic equipment

Legal Events

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