Human-computer interaction methods and devices, computer-readable storage media and electronic devices
By combining knowledge graphs with computer question-and-answer technology to display the reasoning paths and entity relationships in the query process, the problem of poor interaction effects in the existing technology is solved, more efficient information acquisition and personalized recommendations are achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202010474979.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-09-24
AI Technical Summary
Existing computer question-and-answer technology has deficiencies in accuracy and flexibility, and the visualization of the interaction process is low, resulting in poor interaction effects.
By combining the knowledge graph with computer question and answer technology, it displays the reasoning path in the query process, uses directional markers to display entities and relationships in the knowledge graph subgraph, improves the visualization of interaction, and recommends objects based on user attributes and behavioral data.
It realizes the visualization of the query process, improves the interaction effect and screen utilization, enhances the efficiency of users in obtaining information, improves the display effect, and improves the user experience through personalized recommendations.
Smart Images

Figure CN111639169B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of computer question answering, and in particular to a human-computer interaction method, a human-computer interaction device, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the continuous development of computer question-answering technology, its application in practice has become increasingly mature. It has been successfully applied to human-computer interaction, bringing many conveniences to people's production, life and daily entertainment.
[0003] However, most existing question-answering systems have problems such as low accuracy and flexibility, low visualization of the interaction process, and poor interaction effects.
[0004] The information disclosed in the above background section is only for enhancing the understanding of the background of the present disclosure and therefore may contain information that does not constitute the prior art known to a person of ordinary skill in the art. Summary of the invention
[0005] The embodiments of the present disclosure provide a human-computer interaction method and device, an electronic device, and a computer-readable storage medium, which can display the reasoning process of obtaining the answer in a display area while returning the answer to the query, thereby realizing the visualization of machine reasoning during the human-computer interaction process, and thus improving the interaction effect.
[0006] According to a first aspect of the present disclosure, a human-computer interaction method is provided, comprising:
[0007] Receive input questions;
[0008] Extracting entities and relationships involved in the input question, and searching the knowledge graph for answers to the input question based on the entities and relationships;
[0009] A knowledge graph subgraph is displayed, wherein the knowledge graph subgraph includes entities involved in the input question and the answer, and a directional identifier, and the directional identifier is configured to identify a reasoning path corresponding to the query process.
[0010] In an exemplary embodiment of the present disclosure, the directional identifier is configured to connect entities that the query process passes through in sequence.
[0011] In an exemplary embodiment of the present disclosure, in the case where the input question is a multi-order reasoning question, the directional identifier includes a multi-level directional identifier to distinguish the corresponding order reasoning paths in sequence during the query process;
[0012] Any two of the multi-level directional markers have at least one of different colors, sizes, and shapes.
[0013] In an exemplary embodiment of the present disclosure, the directional mark is a directional arrow.
[0014] In an exemplary embodiment of the present disclosure, the directional identification is represented by a plurality of entities with different attributes that are sequentially passed through by the query process, and the attribute includes at least one of color, size, and shape.
[0015] In an exemplary embodiment of the present disclosure, for a situation where the input question is greater than or equal to the second round of question-answering interaction, the displaying of the knowledge graph subgraph includes:
[0016] Determining whether the input question and the answer involve new entities compared with the input question and the answer in the previous round of interaction;
[0017] If yes, then update the new entity and the corresponding directional identifier to the knowledge graph subgraph obtained in the previous round of interaction, and display the updated knowledge graph subgraph;
[0018] If not, the knowledge graph subgraph obtained in the previous round of interaction is used as the knowledge graph subgraph and the directionality identifier is updated.
[0019] In an exemplary embodiment of the present disclosure, the method further includes:
[0020] The reasoning paths corresponding to different input questions are distinguished and displayed based on the directional identifier.
[0021] In an exemplary embodiment of the present disclosure, when displaying the knowledge graph subgraph, the method further includes:
[0022] Acquire at least one of user attribute data, user behavior data and operation data, wherein the user attribute data includes at least one of the user's age, gender and purchasing power, and the user behavior data includes historical search data;
[0023] Obtaining a recommended object based on at least one of the user attribute data, the user behavior data, and the operation data;
[0024] The recommended object is displayed distinctively relative to the entity in the knowledge graph subgraph.
[0025] In an exemplary embodiment of the present disclosure, the displaying the recommended object in the knowledge graph subgraph with respect to the entity in a distinctive manner includes:
[0026] In the knowledge graph subgraph, a target entity is displayed distinctively by color filling or symbol marking, wherein the target entity is an entity connected to the recommended object through a relationship;
[0027] A control operation acting on the target entity is received, and the recommended object is displayed according to the control operation.
[0028] In an exemplary embodiment of the present disclosure, the displaying the recommended object in the knowledge graph subgraph with respect to the entity in a distinctive manner includes:
[0029] The recommended object and the relationship connected to the recommended object are displayed with dotted lines, wherein the recommended object is displayed in the form of an entity in the knowledge graph subgraph; or
[0030] A message prompt window pops up, and the recommended object is displayed in the message prompt window.
[0031] In an exemplary embodiment of the present disclosure, the displaying of the knowledge graph subgraph includes:
[0032] Selecting the entities involved in the input question and the answer according to a preset screening rule;
[0033] The knowledge graph subgraph is displayed, wherein the knowledge graph subgraph includes the selected entity and the directional identifier.
[0034] In an exemplary embodiment of the present disclosure, selecting the entity involved in the input question and the answer according to a preset screening rule includes:
[0035] In response to a control operation of a user, selecting a display state of the entity and its related entities according to the control operation;
[0036] The selecting the display status of the entity and its related entities according to the control operation includes:
[0037] In response to a selection operation on an entity, a branch centered on the entity is hidden and a hidden icon is displayed, wherein the branch includes all entities, relationships and directional identifiers connected to the entity; or,
[0038] In response to a selection operation on a said relationship, all said entities connected to said relationship are hidden and a hide icon is displayed.
[0039] According to a second aspect of the present disclosure, a human-computer interaction device is provided, comprising:
[0040] an input device configured to receive an input question;
[0041] A processor configured to extract entities and relationships involved in the input question, and query the answer to the input question in the knowledge graph based on the entities and the relationships;
[0042] A display is configured to display a knowledge graph subgraph, wherein the knowledge graph subgraph includes entities involved in the input question and the answer, and a directional identifier, and the directional identifier is configured to identify a reasoning path corresponding to the query process.
[0043] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the above methods is implemented.
[0044] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:
[0045] processor;
[0046] A memory for storing executable instructions of the processor; wherein the processor is configured to perform any one of the above methods by executing the executable instructions.
[0047] The exemplary embodiments of the present disclosure may have some or all of the following beneficial effects:
[0048] In the human-computer interaction method provided in the example implementation of the present disclosure, an input question is received, and the entities and relationships involved in the input question are extracted. The answer to the input question is queried in the knowledge graph based on the extracted entities and relationships, and a knowledge graph subgraph is displayed. The knowledge graph subgraph contains the entities involved in the above-mentioned input question and answer, and a directional identifier, and the directional identifier is configured to identify the reasoning path corresponding to the query process. On the one hand, in the human-computer interaction method provided in the example implementation, since the directional identifier is configured, it is possible to identify the reasoning path corresponding to the above-mentioned query process, and then, the user can intuitively see the process of querying the input question, thereby improving the effect of human-computer interaction. On the other hand, the method also displays the entities involved in the above-mentioned input question and answer, as well as the directional identifier in the form of a knowledge graph subgraph, thereby helping users obtain effective information, improving screen utilization, and improving display effects.
[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0051] Figure 1A schematic diagram showing an exemplary system architecture of a human-computer interaction method and device to which the embodiments of the present disclosure can be applied;
[0052] Figure 2 A schematic diagram showing the structure of a computer system suitable for implementing an electronic device of an embodiment of the present disclosure is shown;
[0053] Figure 3 A flowchart schematically shows a process of a human-computer interaction method according to an embodiment of the present disclosure;
[0054] Figure 4 A flowchart schematically illustrates a process of updating a knowledge graph subgraph according to an embodiment of the present disclosure;
[0055] Figure 5 Schematically illustrates a method for obtaining a knowledge graph sub-map according to an embodiment of the present disclosure. Figure 1 Schematic diagram of
[0056] Figure 6 Schematically illustrates a method for obtaining a knowledge graph sub-map according to an embodiment of the present disclosure. Figure 1 Schematic diagram of
[0057] Figure 7 Schematically illustrates a method for obtaining a knowledge graph sub-map according to an embodiment of the present disclosure. Figure 2 Schematic diagram of
[0058] Figure 8 A schematic diagram of obtaining a reasoning path corresponding to input question 1 according to an embodiment of the present disclosure is schematically shown;
[0059] Fig. 9 A schematic diagram of obtaining a reasoning path corresponding to input question 2 according to an embodiment of the present disclosure is schematically shown;
[0060] Fig.10 A schematic diagram of obtaining a reasoning path corresponding to input question 2 according to an embodiment of the present disclosure is schematically shown;
[0061] Fig.11 A schematic diagram of obtaining a reasoning path corresponding to input question 2 according to an embodiment of the present disclosure is schematically shown;
[0062] Fig.12 A schematic diagram of obtaining a reasoning path corresponding to input question 2 according to an embodiment of the present disclosure is schematically shown;
[0063] Fig.13 A schematic diagram of obtaining a reasoning path corresponding to input question 3 according to an embodiment of the present disclosure is schematically shown;
[0064] Fig.14A schematic diagram of obtaining a reasoning path corresponding to input question 1 according to an embodiment of the present disclosure is schematically shown;
[0065] Fig.15 A schematic diagram of obtaining a reasoning path corresponding to input question 1 according to an embodiment of the present disclosure is schematically shown;
[0066] Fig.16 A schematic diagram of obtaining a reasoning path corresponding to input question 1 according to an embodiment of the present disclosure is schematically shown;
[0067] Fig.17 A schematic diagram schematically shows a schematic diagram of distinctively displaying recommended objects according to an embodiment of the present disclosure;
[0068] Fig.18 A schematic diagram schematically shows a schematic diagram of distinctively displaying recommended objects according to an embodiment of the present disclosure;
[0069] Fig.19 A schematic diagram of displaying a knowledge graph subgraph containing a selected entity according to an embodiment of the present disclosure is schematically shown;
[0070] Fig. 20 A schematic diagram of displaying a knowledge graph subgraph containing a selected entity according to an embodiment of the present disclosure is schematically shown;
[0071] Fig.21 A schematic diagram of displaying a knowledge graph subgraph containing a selected entity according to an embodiment of the present disclosure is schematically shown;
[0072] Fig. 22 A schematic diagram of displaying a knowledge graph subgraph containing a selected entity according to an embodiment of the present disclosure is schematically shown;
[0073] Fig.23 A block diagram of a human-computer interaction device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0074] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0075] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0076] Figure 1 A schematic diagram of a system architecture of an exemplary application environment in which a human-computer interaction method and apparatus according to an embodiment of the present disclosure can be applied is shown.
[0077] like Figure 1 As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The terminal devices 101, 102, 103 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, tablet computers, etc. It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.
[0078] The human-computer interaction method provided in the embodiment of the present disclosure can be executed by the terminal devices 101, 102, and 103, and accordingly, the human-computer interaction device can be set in the terminal devices 101, 102, and 103. The human-computer interaction method provided in the embodiment of the present disclosure can also be executed by the server 105, and accordingly, the human-computer interaction device can be set in the server 105. The human-computer interaction method provided in the embodiment of the present disclosure can also be jointly executed by the terminal devices 101, 102, 103 and the server 105, and accordingly, the human-computer interaction device can be set in the terminal devices 101, 102, 103 and the server 105, which is not particularly limited in this exemplary embodiment.
[0079] For example, in this example implementation, a user can input a question through terminal devices 101, 102, and 103. After obtaining the input question, terminal devices 101, 102, and 103 extract the entities and relationships involved in the input question and send them to server 105 through network 104; after receiving the above entities and relationships, server 105 searches for the answer to the above input question in the knowledge graph based on the entities and relationships. At the same time, a knowledge graph subgraph is obtained, which contains the entities involved in the above input question and answer and a directional identifier, and the directional identifier is configured to identify the reasoning path corresponding to the query process. Finally, the obtained knowledge graph subgraph is sent to terminal devices 101, 102, and 103 through network 104, and terminal devices 101, 102, and 103 receive and display the knowledge graph subgraph.
[0080] Figure 2 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present disclosure is shown.
[0081] It should be noted that Figure 2 The computer system 200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0082] like Figure 2 As shown, the computer system 200 includes a central processing unit (CPU) 201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 202 or a program loaded from a storage part 208 into a random access memory (RAM) 203. Various programs and data required for system operation are also stored in the RAM 203. The CPU 201, the ROM 202, and the RAM 203 are connected to each other via a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.
[0083] The following components are connected to the I / O interface 205: an input section 206 including a keyboard, a mouse, etc.; an output section 207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 208 including a hard disk, etc.; and a communication section 209 including a network interface card such as a LAN card, a modem, etc. The communication section 209 performs communication processing via a network such as the Internet. A drive 210 is also connected to the I / O interface 205 as needed. A removable medium 211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 210 as needed, so that a computer program read therefrom is installed into the storage section 208 as needed.
[0084] With the continuous development of computer question-answering technology, its application in practice has become increasingly mature. It has been successfully applied to human-computer interaction, bringing many conveniences to people's production, life and daily entertainment.
[0085] However, most existing Q&A systems have problems such as low accuracy and flexibility, low visualization of the interaction process, and poor interaction effects. In order to solve the above problems, the inventors tried to combine knowledge graphs with computer Q&A technology and proposed a method to complete the human-computer interaction process based on a graph knowledge base.
[0086] Although automatic question answering based on knowledge graphs solves the problems of low accuracy and flexibility in the question-answering process, users can only get answers to input questions, but cannot obtain the reasoning path to the answer. The visualization of the interaction process is still low, and the interaction effect is also affected to a certain extent. At the same time, as the conversation progresses, the number of entities involved increases. If the knowledge graph containing all entities is displayed in the display area, it will cause poor display effects and users will not be able to quickly obtain important information. In addition, how to make relevant recommendations based on input questions and user-related information is also very important for practical applications.
[0087] In order to solve the above problems, in this exemplary embodiment, the inventor proposes a new technical solution, and the technical solution of the embodiment of the present disclosure is described in detail below:
[0088] This exemplary embodiment first provides a human-computer interaction method. Figure 3 As shown, the specific steps include:
[0089] Step S310: receiving an input question;
[0090] Step S320: extracting entities and relationships involved in the input question, and searching the knowledge graph for an answer to the input question based on the entities and the relationships;
[0091] Step S330: Display a knowledge graph subgraph, wherein the knowledge graph subgraph includes entities involved in the input question and the answer, and a directional identifier, and the directional identifier is configured to identify a reasoning path corresponding to the query process.
[0092] In the human-computer interaction method provided in the exemplary embodiment of the present disclosure, on the one hand, in the human-computer interaction method provided in the exemplary embodiment, due to the configuration of the directional identification, it is possible to identify the reasoning path corresponding to the above query process, and then, the user can intuitively see the process of query input questions, thereby improving the effect of human-computer interaction. On the other hand, the method also displays the entities involved in the above input questions and answers, as well as the directional identification, in the form of a knowledge graph subgraph, thereby helping users to obtain effective information, improve screen utilization, and improve display effects.
[0093] Next, in another embodiment, the above steps are described in more detail.
[0094] In step S310, an input question is received.
[0095] In this example implementation, the user inputs an input question into the human-computer interaction system through a terminal device, and the input question is a question that the user wants to query the answer to. For example, it can be a first-order question, such as "In which year was painter A born", or a second-order question, such as "Who else is a painter from the same country as painter A", and in addition, the input question can also be a higher-order question. It should be noted that the input questions listed above are only an exemplary description and do not limit the scope of protection of this example implementation. The input question can also be any other question that the user wants to know. The above-mentioned terminal device can be a smart phone, a tablet computer, or other terminals such as a notebook, and this example implementation does not make special restrictions on this.
[0096] In this example implementation, the knowledge related to the above input question is stored in a knowledge graph in the form of entities. The knowledge graph is a structured semantic knowledge base that provides a way of storing and querying knowledge. And the semantic knowledge base stores entities and the relationships connected to entities. Taking triples as an example, its basic component unit can be a storage method such as (entity, relationship, entity). For example, "Painter A's nationality is country B" can be expressed as (painter A, nationality, country B) in the semantic database, where "painter A" is an entity, "nationality" is a relationship, and "country B" is another entity connected to the entity "painter A" through the relationship of "nationality". It should be noted that the above scenario is only an exemplary description and does not limit the scope of protection of this example implementation.
[0097] In this example implementation, the structured semantic knowledge base of the knowledge graph can be a graph database that stores data in the form of triples, and the graph database can be any open source graph database or commercial graph database. For example, the database can be Neo4j, Apache Jena, or Gstore, and this example implementation does not make special requirements for this.
[0098] In step S320, entities and relationships involved in the input question are extracted, and the answer to the input question is queried in the knowledge graph based on the entities and the relationships.
[0099] In this example implementation, after receiving the input question from the user, the terminal device needs to extract the entities and relationships involved in the input question, and then query the answer to the input question in the above knowledge graph. Among them, the above entities can be extracted through the data dictionary, and the above relationships can be finally extracted through the steps of entity replacement, generalization problem, and intention recognition model processing.
[0100] In addition, depending on the input question, the combination of entities and relationships extracted will also be different. For example, it can be a single entity and a single relationship, a single entity and multiple relationships, multiple entities and a single relationship, or multiple entities and multiple relationships. For example, the input question "When was painter A born?" extracts the entity "Painter A" and the extracted relationship is "Year of Birth", which is a combination of a single entity and a single relationship. For another example, the input question "Who are the other painters in the same country as painter A?" is a second-order question. The entities and relationships involved in the input question can be stored in the knowledge graph database in the form of (painter A, nationality, country B), (country B, painter, painter C), where painter C may be multiple, that is, the entities extracted by the input question include painter A, the country to which painter A belongs, other painters in the same country, and multiple entities, and the relationship is nationality, painter, then the input question corresponds to a combination of multiple entities and multiple relationships. Similarly, the input question may also be a combination of single entity and multiple relationships or multiple entities and a single relationship, which all belong to the protection scope of this example implementation, and the above examples are only an exemplary description, and this example implementation is not limited to this.
[0101] In this example implementation, after extracting the entities and relationships involved in the above input question, the entities related to the above input question can be queried in the above knowledge graph based on the extracted entities and relationships, and organized into an answer output. Taking "In which year was painter A born" as an example, the specific implementation can be to extract the entity "painter A" and the relationship "year of birth" corresponding to the input question, and the basic composition of the entity and relationship (painter A, year of birth, 1953) can be obtained in the graph database of the knowledge graph, so the answer to the input question can be 1953. Further organize it to get the answer, which can be "Painter A's year of birth is 1953". It should be noted that the above scenario is only an exemplary description, and the protection scope of this example implementation is not limited to this.
[0102] In step S330, a knowledge graph subgraph is displayed, wherein the knowledge graph subgraph includes entities involved in the input question and the answer, and a directional identifier, and the directional identifier is configured to identify a reasoning path corresponding to the query process.
[0103] In this example implementation, the knowledge graph subgraph corresponding to the input question may be further obtained from the graph database of the knowledge graph and displayed.
[0104] The knowledge graph subgraph may include the entities and directional identifiers involved in the above-mentioned input question and answer. The implementation of displaying the entities in the above-mentioned knowledge graph is as follows:
[0105] When the question and answer is a single-round dialogue or the first round of question and answer interaction in a multi-round dialogue, the implementation process of obtaining the knowledge graph subgraph is: extracting the entity involved in the input question and displaying the knowledge graph subgraph containing the entity.
[0106] When the question and answer is a multi-round dialogue, and the above-mentioned input question is the second round or above of question and answer interaction in the multi-round dialogue, the implementation process of obtaining the knowledge graph subgraph in the graph database of the knowledge graph and displaying it can be as follows: determine whether the input question and answer of this interaction involve new entities compared with the input question and answer of the previous round of interaction; if so, update the new entity and the corresponding directional identification to the knowledge graph subgraph obtained in the previous round of interaction, and display the updated knowledge graph subgraph; if not, use the knowledge graph subgraph obtained in the previous round of interaction as the knowledge graph subgraph and update the directional identification.
[0107] The following is a three-round dialogue as an example to further explain the update process of the above knowledge graph subgraph. The input questions corresponding to the three-round dialogue are: Input question 1 "When was painter A born?"; Input question 2 "Who are the other painters from the same country as painter A?"; Input question 3 "What are the representative works of painter A?" The update process is as follows: Figure 4As shown, the following steps are included:
[0108] In step S410, input question 1 is received, and entities and relationships contained in input question 1 and answer 1 are extracted.
[0109] In this step, input question 1 is received: "When was painter A born?" Input question 1 is extracted to obtain that the entity involved is "painter A" and the relationship involved is "year of birth".
[0110] In step S420, a knowledge graph subgraph is obtained based on entities and relationships.
[0111] In this step, the entities "Painter A", "1953" and the relationship "Year of Birth" involved in the input question 1 and the answer 1 are extracted from the above step S410, and the knowledge graph subgraph containing the entities "Painter A", "1953" and the relationship "Year of Birth" is obtained in the graph database of the above knowledge graph, such as Figure 5 In addition, optionally, the knowledge graph may also include other relationships connected to the entities involved in the input question 1, such as Figure 6 As shown in the figure, the knowledge graph Figure 1 It may also include other relationships "nationality", "school" and "representative works" connected to the entity "painter A", and other entities connected to the above relationships, such as "country B", "1953", "painting X" and "Impressionism". For the convenience of explanation, in this example implementation, the subsequent steps will be as follows Figure 6 The knowledge graph subgraph shown is used as the knowledge graph subgraph Figure 1 .
[0112] In step S430, input question 2 is received, and entities and relationships included in input question 2 and answer 2 are extracted.
[0113] In this step, input question 2 "Who are the other painters from the same country as painter A?" is received, and entities and relationships are extracted based on input question 2 and its corresponding answers, obtaining entities "painter A", "country B", "painter H", "painter L", and relationships "nationality", "painter".
[0114] In step S440, it is determined whether there are any newly added entities and relationships.
[0115] In this step, it is determined whether the input question 2 involves new entities and relationships. If so, the process jumps to step S450. Otherwise, the current knowledge graph subgraph remains unchanged. Figure 6 The knowledge graph shown Figure 1 In comparison, input question 2 and corresponding answer 2 have added entities "Painter H" and "Painter L" and a new relationship "Painter", so jump to step S450.
[0116] In step S450, the knowledge graph subgraph is updated.
[0117] In this step, the newly added entities and relationships are updated to the knowledge graph subgraph. In step S440, it is determined that the input question 2 and answer 2 have added entities "Painter H" and "Painter L", and a new relationship "Painter". The updated knowledge graph subgraph Figure 2 ,like Figure 7 As shown, in the atom Figure 1 On this basis, a new relationship "Painter" connected to the entity "Country B" and the entities "Painter L" and "Painter H" connected to this relationship were added.
[0118] In step S460, input question 3 is received, and entities and relationships included in input question 3 and answer 3 are extracted.
[0119] In this step, input question 3 "What are the representative works of painter A" is received, and entities and relationships are extracted based on input question 2 and its corresponding answers, obtaining the entities "painter A", "painting X" and the relationship "representative works".
[0120] After obtaining the entities contained in the input question 3 and the answer, jump to step S440 and perform the same judgment and update process as the input question 2. In this scenario, since the input question 3 and the answer 3 are judged to be the same as the input question 2, Figure 6 The knowledge graph shown Figure 1 Compared with the previous example, no new entities and relationships are involved, so the knowledge graph sub- Figure 2 constant.
[0121] It should be noted that the above scenario is only an exemplary description, and the protection scope of this example implementation is not limited to this. The above process is also applicable to more than three rounds of interaction. For higher-order input questions, the knowledge graph update process is the same. In addition, the above input question can also be any other question that the user wants to query, and this example implementation does not make special restrictions on this.
[0122] In this example implementation, the above-mentioned knowledge graph subgraph also includes a directional mark, which connects the entities passed through in sequence during the query answer process, and is used to identify the reasoning path corresponding to the above-mentioned query process. The directional mark, for example, can be a directional arrow, or it can be represented by multiple entities with different attributes passed through in sequence during the query process, where the attributes include at least one of color, size and shape. In addition, the directional mark can also be in any form that meets the above definition, and this example implementation does not specifically limit this.
[0123] Through the above directional markings, users can intuitively see the process of query input questions, that is, the reasoning path. Taking the above directional marking as a directional arrow as an example, the implementation of marking the reasoning path can be as follows:
[0124] When the question-answering is a single-round dialogue or the first round of question-answering interaction in a multi-round dialogue, take the input question 1 "When was painter A born?" as an example. Figure 8 As shown in the figure, the corresponding entity extracted is "Painter A", and the relationship is "Year of Birth". Based on the entity and relationship, the entity corresponding to the answer should be the entity "1953" connected to the above relationship "Year of Birth". In the above acquired knowledge graph, the entity "Painter A" is connected to the entity "1953" with a directional arrow. The path connected by the directional arrow starting from "Painter A" and ending at "1953" is the reasoning path corresponding to the input question.
[0125] When the question and answer is a multi-round dialogue, and the above input question is the second or higher round of question and answer interaction in the multi-round dialogue, the implementation process of identifying the reasoning path can be as follows: query the answer to the input question, and connect the entities passed by the query process in sequence with directional arrows in the updated knowledge graph subgraph to obtain the reasoning path corresponding to the query process.
[0126] Based on input question 1, let’s continue to query the above input question 2 “Who are the other painters from the same country as painter A?” as an example. The corresponding input question 2 is the updated knowledge graph sub- Figure 2 This input question is a second-order question, which means that it takes two inferences to find the corresponding answer. Fig. 9 As shown in the figure, first, based on the entity "Painter A" and the relationship "Nationality", we get the country B to which Painter A belongs, and connect the entity "Painter A" and the entity "Country B" obtained by the query with a directional arrow. Then, based on the entity "Country B" and the relationship "Painter", we get the answers to the second-order question "Painter L" and "Painter H", and continue to connect the entities "Country B" and "Painter L", and the entities "Country B" and "Painter L" with directional arrows. The paths starting from "Painter A" and ending at "Painter L", and the paths starting from "Painter A" and ending at "Painter H" connected by directional arrows are all the reasoning paths corresponding to the query process of input question 2.
[0127] Preferably, as shown in the above-mentioned input question 2, when the answer to the input question needs to be obtained through multi-order reasoning, and is a second-order or higher question, when the above-mentioned identification reasoning process is performed, different orders of reasoning can be distinguished and displayed, and its specific implementation can be: the above-mentioned directional identification includes multi-level directional identification to distinguish the corresponding order reasoning paths in the query process; wherein the multi-level directional identification has at least one of different colors, sizes, and shapes.
[0128] Taking the above input question 2 as an example, the question "Who are the other painters from the same country as painter A?" includes a two-order reasoning process. As mentioned above, first, obtain the country B to which painter A belongs. This process is a first-order reasoning process and can be identified by a first-level directional mark; then, obtain other painters corresponding to country B, painter L and painter H. The process from country B to painter L and from country B to painter H are both second-order reasoning processes and can be identified by a first-level directional mark. For example, the first-level directional mark and the second-level directional mark can be directional marks of different colors, such as Fig.10 As shown in the figure, the primary directional mark is a gray arrow, and the secondary directional mark is a black arrow; it can also be a directional mark of different sizes, such as Fig.11 As shown, the secondary directional mark is a directional arrow whose size is larger than that of the primary directional mark; it can also be a directional mark with a different shape, such as Fig.12 As shown, the first-level directional mark is a solid arrow, and the second-level directional mark is a dotted arrow. In addition, it can also be other colors, sizes and shapes, or any combination of colors, sizes and shapes, which is not specifically limited in this exemplary implementation.
[0129] It should be noted that the above scenarios are only exemplary descriptions, and higher-order reasoning processes and their corresponding multi-level directional identification also fall within the protection scope of this example implementation.
[0130] When we continue to query the answer to question 3, "What are the representative works of painter A?", since there are no new entities and relationships, we directly search for the answer in the knowledge graph sub-item. Figure 2 The reasoning path corresponding to the input question 3 is marked in Fig.13 As shown, based on the same logic, the path connected by directional arrows starting from "Painter A" and ending at "Painting X" is the reasoning path corresponding to input question 3.
[0131] In this example implementation, the directional identification of the identification reasoning path may also be represented by a plurality of entities with different attributes that are sequentially passed through during the query process, wherein the attribute includes at least one of color, size, and shape.
[0132] Take input question 1 "When was painter A born?" as an example. The entities passed by input question 1 include "painter A" and "1953". In the reasoning process, if Fig.14 As shown, the directional mark can be the entity "Painter A" and the entity "1953" that are progressive by color depth; or it can be as shown in Fig.15 As shown, the entities "Painter A" and "1953" are of different sizes; Fig.16As shown, there are entities "Painter A" and "1953" with different shapes. In addition, there may be multiple entities that meet the above definition, and this exemplary embodiment does not make any special limitation on this.
[0133] At this point, the reasoning paths corresponding to input questions 1 to 3 have been marked in the knowledge graph subgraph. In this example implementation, in order to facilitate users to distinguish the reasoning paths of various input questions, the reasoning paths corresponding to different input questions can be distinguished and displayed based on the above-mentioned directional identification. Taking the directional identification as a directional arrow as an example, the reasoning paths corresponding to different input questions can also be marked with arrows of different colors. For example, the reasoning path of input question 1 is marked with a red arrow, the reasoning path of input question 2 is marked with a green arrow, and the reasoning path of input question 3 is marked with a blue arrow. In addition, the reasoning paths corresponding to different input questions can also be distinguished and displayed by features such as the thickness and reality of the arrows, and this example implementation does not make any special limitations on this.
[0134] It should be noted that the above scenario is only an exemplary description, and the protection scope of this example implementation is not limited to this. The above process is also applicable to more than three rounds of interaction and higher-order input problems. The process of marking the reasoning path through directional identification is the same. In addition, the above input question can also be any other question that the user wants to query, and this example implementation does not make special restrictions on this.
[0135] In this example implementation, after the answer to the input question is found, the found answer is output to the user. For example, the answer can be played to the user by voice output, or displayed in a display area for the user, or fed back to the user by other interactive methods that can achieve the same effect, which is not particularly limited in this example implementation.
[0136] In addition, while outputting the queried answer, this exemplary embodiment can also obtain objects of interest to the user based on the input question, the queried answer, user attributes, behavior and other factors and recommend them to the user. The specific implementation of this process can be: obtaining user attribute data and user behavior data; obtaining recommended objects based on the obtained user attribute data and user behavior data; and displaying the recommended objects in the display area in a distinctive manner.
[0137] In the above process, user attribute data may include attribute information such as user's age, gender and purchasing power, and user behavior data may include behavior information such as user's historical search data and user operation data. Recommended objects may be objects that users may be interested in based on search data, or related products recommended to users based on operational goals, or current hot topics obtained based on big data analysis, or other objects recommended to users, all of which fall within the scope of protection of this example implementation.
[0138] Take the input question "What are the representative works of painter A" as an example, and the answer to the input question is painting X. Next, the user attribute data and user behavior data are obtained. Based on the user attribute data, it is found that the user's age group is a young group. Based on the user behavior data, it is found that the user has searched for backpacks. Then, backpacks with the theme of painting X can be recommended to the user.
[0139] In addition, based on the input question being related to art paintings, it is possible to prioritize recommending electronic picture frame products to users based on operational objectives, and to determine that electronic picture frame I is suitable for playing art paintings. Therefore, electronic picture frame I can be recommended to users.
[0140] In addition, paintings related to the physical painting X can also be extended according to the content of the physical painting X. For example, if the theme of the painting X is flowers and the genre is impressionism, paintings S with the same theme and similar genre can be recommended to the user.
[0141] It should be noted that the above scenario is only an exemplary description and does not limit the protection scope of this example implementation.
[0142] In this example implementation, in the above process, after the recommended object is obtained, the obtained recommended object can also be displayed in the above display area in a distinctive manner to distinguish the recommended object entity and relationship from the question and answer entity and relationship. For example, the distinctive display can be achieved by the following methods: (1) Distinctively displaying entities related to the recommended object; receiving a control operation acting on the entity, and displaying the recommended object according to the control operation; (2) Displaying the recommended object and the relationship connected to the recommended object with a dotted line, wherein the recommended object is displayed in the form of an entity in the knowledge graph subgraph; (3) Popping up a message prompt window, and displaying the recommended object in the message prompt window. In addition, other technical means that can achieve the distinctive display effect can also be adopted, and this example implementation does not specifically limit this.
[0143] Taking the above scenario of obtaining recommended objects as an example, the obtained recommended objects include a backpack with the theme of painting X, an electronic picture frame I, and a painting S. Fig.17As shown, entities "Painting X" 1710 and "Impressionism" 1720 with recommended objects can be displayed differently. Taking "Painting X" as an example, the box of the entity "Painting X" is filled with different colors to prompt the user that there are recommended objects related to the entity; a control operation acting on the entity is received, and the recommended object is displayed according to the control operation. For example, in response to a click operation on the entity "Painting X", the details of the recommended object are displayed. In addition, the user can display the recommended objects related to the entity "Painting X" through voice control.
[0144] In addition, the recommended objects can be displayed in entity form, and in order to distinguish the entities and relationships between the recommended objects and the questions and answers, the recommended objects and the relationships connected to the recommended objects are displayed with dotted lines, such as Fig.18 As shown, the relationships "display products", "derivative products" and "similar works" connected to painting X, and the entities "backpack with painting X as the theme", "electronic picture frame I" and "painting S" connected to the relationships are shown with dotted lines. And the relationship "representative works" connected to "Impressionism" and the entities "painting R" and "painting C" connected to the relationship "representative works" are shown.
[0145] In addition, a message prompt window may be popped up to display the recommended object in the message prompt window. For example, in response to the user clicking on the entity "painting X", a message prompt window may be popped up to display the product details of "electronic picture frame I" in the window.
[0146] After obtaining the recommended object as described above, in this example implementation, the user can also perform subsequent operations such as purchasing or collecting the recommended object. For example, the collection and purchase of the product can be controlled according to the user's voice command. When the voice input of "help me collect painting X" is detected, the corresponding collection operation is performed. When the purchase control operation is detected, the payment interface can be displayed on the system interface, and the payment is determined according to the user's voice. When paying, the system authenticates the user's identity based on voiceprint recognition or facial recognition, and then pays, completing the purchase process.
[0147] It should be noted that the above scenario is only an exemplary description and does not limit the protection scope of this example implementation.
[0148] In this example implementation, in addition to recommending products and other recommended objects to users, questions that users are interested in can also be recommended to promote multiple rounds of dialogue and improve interaction efficiency. This process can be implemented by: obtaining entities and relationships related to questions and answers, and obtaining multiple recommended questions based on the obtained entities and relationships; sorting the obtained recommended questions, and outputting the top-ranked recommended questions. It can be displayed in the display area, and can also be played to the user by voice, which is not specifically limited in this example implementation.
[0149] While feeding back the above answers to the user, the acquired knowledge graph subgraph and reasoning path must also be displayed in the above display area. However, as the conversation progresses, the number of input questions increases, and the number of entities involved also increases. If all entities are displayed in the display area, it will cause problems such as confusing interface, poor display effect and user inability to quickly obtain important information. Therefore, in order to solve the above problems, the human-computer interaction method provided in this example implementation method displays the selected knowledge graph subgraph, and the specific implementation can be as follows: select entities according to preset screening rules; display the knowledge graph subgraph containing the selected entity in the display area.
[0150] Specifically, the above-mentioned selection of entities according to the preset screening rules can be: sorting the entities based on the recommendation algorithm, and obtaining the sorted entities. For example, the content that the user is interested in can be obtained based on the user attribute information and user behavior, the obtained content can be sorted based on the recommendation algorithm, and the entities with the highest sorting can be selected. In addition, entities can also be selected based on other factors, for example, based on operational goals, product features or system pre-stored information; it can also be based on big data analysis to recommend current hot content, for example, filtering entities based on weather or geographic location, which all fall within the protection scope of this example implementation.
[0151] Take the current input question "What are the attractions in country B?" as an example. Fig.19 As shown, based on the user's search history input questions 1 to 3, it can be determined that the user is interested in art paintings. When displaying the knowledge graph subgraph corresponding to the current input question, only the art attraction entity is displayed, and other attraction entities are hidden. At the same time, a hidden icon 1910 can be displayed at the hidden entity or relationship to prompt the user that there is a hidden entity 1920 here. When the user clicks the hidden icon, the corresponding hidden entity is displayed. It should be noted that the above scenario is only an exemplary description and does not limit the protection scope of this example implementation.
[0152] In this example implementation, entities displayed in the knowledge graph subgraph can also be selected based on user control operations. This implementation can be as follows: in response to a selection operation acting on an entity, a branch centered on the entity is hidden and a hide icon is displayed, wherein the branch includes all entities, relationships, and directional identifiers connected to the entity. Fig. 20 As shown, since there are many entities connected to country B, the user can click on a certain entity to hide the branch centered on the entity, that is, hide all entities, relationships, and reasoning path arrows connected to the entity. A hidden icon 2010 is displayed on the entity to remind the user that there is a hidden entity. When the user clicks on the entity again, the hidden entity, relationship, and reasoning path arrow are displayed.
[0153] In addition, the above process can also be implemented by the following method: in response to a selection operation acting on a relationship, all entities connected to the relationship are hidden and a hidden icon is displayed. Fig.21 As shown, by selecting the relationship "attractions", entities of the same type are hidden, and a hide icon 2110 is displayed at the relationship.
[0154] The above process can also be achieved by controlling the display area, which can be specifically as follows: receiving a control operation on the display area, and adjusting the position of the entity in the knowledge graph subgraph according to the control operation, wherein the control operation is a click or move operation. Fig. 22 As shown, the user selects an entity and rearranges the subgraph with the entity as the center, or the user drags the entity to adjust the relative positions of the entities in the subgraph.
[0155] It should be noted that the above scenario is only an exemplary description and does not limit the present example implementation. Other methods for selecting entities displayed in the knowledge graph subgraph based on user control operations also fall within the protection scope of the present example implementation.
[0156] In this example implementation, in addition to the above-mentioned recommendation algorithm for sorting and selecting entities and selecting entities displayed in the knowledge graph subgraph based on user control operations, another rule for selecting entities is provided. The specific implementation can be as follows: detect the degree of correlation between the current input question and the previous dialogue entity, and determine whether to delete the previous subgraph based on the degree of correlation. If it is not relevant, delete the original knowledge graph subgraph, obtain and display the new knowledge graph subgraph corresponding to the current input question; if it is relevant, continue to add entities and relationships to the original knowledge graph subgraph.
[0157] It should be noted that the above scenario is only an exemplary description and does not limit the present example implementation. Other methods of selecting entities also fall within the protection scope of the present example implementation.
[0158] Preferably, in this example implementation, the corresponding system function can also be started based on the answer to the queried input question. For example, when it is determined that the input question is in the field of art, the user can be automatically asked whether to play the relevant paintings. Taking the input question "Which country is painter A from?" as an example, after the query obtains the answer, the answer "Country B" is automatically played by voice, and the above-obtained knowledge graph subgraph and reasoning path are displayed in the display area, and the user is automatically asked "Do you want to see Mona Lisa's painting?". If the user confirms to play, it switches to the corresponding painting. The display method of the painting can be superimposed with the above-mentioned knowledge graph subgraph, and the subgraph is transparently displayed floating above the painting to avoid affecting the appreciation of the painting; the knowledge graph subgraph and the painting can also be displayed in different areas, and other display methods can also be adopted, which all belong to the protection scope of this example implementation.
[0159] Correspondingly, this exemplary embodiment provides a human-computer interaction device. Fig.23 As shown, the human-computer interaction apparatus 2300 may include an input device 2310 , a processor 2320 and a display 2330 .
[0160] in:
[0161] Input device 2310 is configured to receive input questions;
[0162] The processor 2320 is configured to extract entities and relationships involved in the input question, and query the answer to the input question in the knowledge graph based on the entities and the relationships;
[0163] Display 2330 is configured to display a knowledge graph subgraph, wherein the knowledge graph subgraph includes entities involved in the input question and the answer, and a directional identifier, and the directional identifier is configured to identify a reasoning path corresponding to the query process.
[0164] Among them, the above-mentioned input device can be a touch screen or a button; the processor can be a cloud server; the display can be an LCD, OLED, etc., and this example implementation does not make any special limitations on this.
[0165] The specific details of each sub-circuit or unit in the above-mentioned human-computer interaction device have been described in detail in the corresponding human-computer interaction method, so they will not be repeated here.
[0166] It should be noted that, although several subcircuits or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more subcircuits or units described above can be embodied in one subcircuit or unit. Conversely, the features and functions of one subcircuit or unit described above can be further divided into multiple subcircuits or units to be embodied.
[0167] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment. For example, the electronic device may implement Figure 3 to Figure 22 The various steps shown, etc.
[0168] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0169] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A human-computer interaction method, wherein: include: Receive input questions; Extracting entities and relationships involved in the input question, and querying and organizing entities in the knowledge graph based on the entities and the relationships to obtain an answer to the input question; Selecting the entities involved in the input question and the answer according to a preset screening rule; Displaying a knowledge graph subgraph including the selected entity and a directional identifier; the directional identifier is configured to connect the entities passed through in sequence during the query process to identify the reasoning path corresponding to the query process; In response to a control operation of a user, hiding the entity and its related entities according to the control operation; Wherein, when the input question is greater than or equal to the second round of question-answer interaction, based on whether the input question and the answer involve new entities compared with the input question and the answer of the previous round of interaction, the knowledge graph subgraph is updated and displayed; The method further comprises: Acquire entities and relationships related to the input question and the answer to the input question, obtain a plurality of recommended questions based on the acquired related entities and relationships, sort the recommended questions, and output the recommended questions according to the sorting results; When displaying the knowledge graph subgraph, it also includes: Detect the degree of correlation between the current input question and the previous dialogue entity, and determine whether to delete the previous knowledge graph subgraph based on the degree of correlation; if it is not relevant, delete the previous knowledge graph subgraph, obtain and display the new knowledge graph subgraph corresponding to the current input question; if it is relevant, continue to add new entities and relationships to the previous knowledge graph subgraph.
2. The human-computer interaction method according to claim 1, wherein: In the case where the input question is a multi-order reasoning question, the directional identifier includes a multi-level directional identifier to distinguish the corresponding order reasoning paths in the query process; Any two of the multi-level directional markers have at least one of different colors, sizes, and shapes.
3. The human-computer interaction method according to claim 1 or 2, wherein: The directional mark is a directional arrow.
4. The human-computer interaction method according to claim 1, wherein: The directional identification is represented by a plurality of entities with different attributes that are sequentially passed through during the query process, and the attributes include at least one of color, size, and shape.
5. The human-computer interaction method according to claim 1 or 2, wherein: Based on whether the input question and the answer involve new entities compared with the input question and the answer of the previous round of interaction, the knowledge graph subgraph is updated and displayed, including: If the input question and the answer involve new entities compared with the input question and the answer in the previous round of interaction, the new entity and the corresponding directional identifier are updated to the knowledge graph subgraph obtained in the previous round of interaction, and the updated knowledge graph subgraph is displayed; If the input question and the answer do not involve new entities compared to the input question and the answer in the previous round of interaction, the knowledge graph subgraph obtained in the previous round of interaction is used as the knowledge graph subgraph and the directionality identifier is updated.
6. The human-computer interaction method according to claim 5, wherein: The method further comprises: The reasoning paths corresponding to different input questions are distinguished and displayed based on the directional identifier.
7. The human-computer interaction method according to claim 1 or 2, wherein: When displaying the knowledge graph subgraph, the method further includes: Acquire at least one of user attribute data, user behavior data and operation data, wherein the user attribute data includes at least one of the user's age, gender and purchasing power, and the user behavior data includes historical search data; Obtaining a recommended object based on at least one of the user attribute data, the user behavior data, and the operation data; The recommended object is displayed distinctively relative to the entity in the knowledge graph subgraph.
8. The human-computer interaction method according to claim 7, wherein: The displaying the recommended object in the knowledge graph subgraph in a distinctive manner relative to the entity comprises: In the knowledge graph subgraph, a target entity is displayed distinctively by color filling or symbol marking, wherein the target entity is an entity connected to the recommended object through a relationship; A control operation acting on the target entity is received, and the recommended object is displayed according to the control operation.
9. The human-computer interaction method according to claim 7, wherein: The displaying the recommended object in the knowledge graph subgraph in a distinctive manner relative to the entity comprises: The recommended object and the relationship connected to the recommended object are displayed with dotted lines, wherein the recommended object is displayed in the form of an entity in the knowledge graph subgraph; or A message prompt window pops up, and the recommended object is displayed in the message prompt window.
10. The human-computer interaction method according to claim 1, wherein: The step of responding to a control operation of a user and hiding the entity and its related entities according to the control operation includes: In response to a selection operation on an entity, a branch centered on the entity is hidden and a hidden icon is displayed, wherein the branch includes all entities, relationships and directional identifiers connected to the entity; or, In response to a selection operation on a said relationship, all said entities connected to said relationship are hidden and a hide icon is displayed.
11. A human-computer interaction device, wherein: include: an input device configured to receive an input question; A processor configured to extract entities and relationships involved in the input question, and query entities in a knowledge graph and organize them according to the entities and the relationships to obtain an answer to the input question; Selecting the entities involved in the input question and the answer according to a preset screening rule; A display, configured to display a knowledge graph subgraph including the selected entity and a directional identifier; the directional identifier is configured to connect the entities passed sequentially during the query process to identify the reasoning path corresponding to the query process; The display is further configured to respond to a user's control operation and hide the entity and its related entities according to the control operation; the processor is further configured to update the knowledge graph subgraph based on whether the input question and the answer involve new entities compared with the input question and the answer of the previous round of interaction when the input question is greater than or equal to the second round of question-answering interaction; The display is also configured to display the updated knowledge graph subgraph; The processor is further configured to perform: Acquire entities and relationships related to the input question and the answer to the input question, obtain a plurality of recommended questions based on the acquired related entities and relationships, sort the recommended questions, and output the recommended questions according to the sorting results; as well as When displaying the knowledge graph subgraph, detect the degree of correlation between the current input question and the previous dialogue entity, and determine whether to delete the previous knowledge graph subgraph based on the degree of correlation; if it is not relevant, delete the previous knowledge graph subgraph, and obtain and display the new knowledge graph subgraph corresponding to the current input question; if it is relevant, continue to add new entities and relationships to the previous knowledge graph subgraph.
12. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
13. An electronic device, wherein: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1-10 by executing the executable instructions.
