Information display method, apparatus, device, and medium
By displaying loading status information in the interactive interface of the intelligent system, the uncertainty experienced by users while waiting for data responses is resolved, the user experience is improved, and more intuitive data generation progress prompts are provided.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING BAIDU NETCOM SCI & TECH CO LTD
- Filing Date
- 2023-03-15
- Publication Date
- 2026-07-24
AI Technical Summary
When existing intelligent systems generate response data, users have to wait a long time and cannot know the progress of data generation in a timely manner, resulting in a poor user experience.
The interactive interface displays loading state information corresponding to the user's input intent to prompt the user's intent and show that response data is being generated. Different loading state information indicates different user intents.
It improves the user experience while waiting for data responses, allows users to understand the data generation progress, creates an atmosphere of conversation with a real person, and increases user satisfaction with the interactive interface.
Smart Images

Figure CN116361547B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of artificial intelligence technology, specifically to the fields of image user interface and deep learning, and particularly to an information display method, information display device, electronic device, computer-readable storage medium and computer program product. Background Technology
[0002] Artificial intelligence (AI) is the study of enabling computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, and planning). It encompasses both hardware and software technologies. AI hardware technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, and big data processing. AI software technologies mainly include computer vision, speech recognition, natural language processing, machine learning / deep learning, big data processing, and knowledge graph technologies.
[0003] The intelligent system can generate corresponding responses based on user input and supports a wide range of human-computer interaction operations.
[0004] The methods described in this section are not necessarily methods that had been previously conceived or adopted. Unless otherwise specified, no method described in this section should be assumed to be prior art simply because it is included in this section. Similarly, unless otherwise specified, the issues mentioned in this section should not be considered to be accepted in any prior art. Summary of the Invention
[0005] This disclosure provides an information display method, an information display device, an electronic device, a computer-readable storage medium, and a computer program product.
[0006] According to one aspect of this disclosure, an information display method is provided. The method includes: receiving input data from a user; and before displaying response data for the input data, displaying loading state information in an interactive interface corresponding to the user's intent regarding the input data, the loading state information serving to indicate the user's intent and to indicate that response data is being generated, wherein different user intents correspond to different loading state information.
[0007] According to one aspect of this disclosure, an information display apparatus is provided. The apparatus includes: a receiving unit configured to receive input data from a user; and a display unit configured to display loading state information corresponding to the user's intent regarding the input data in an interactive interface before displaying response data for the input data, wherein the loading state information is used to indicate the user's intent to the user and to indicate to the user that response data is being generated.
[0008] According to another aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods described above.
[0009] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause a computer to perform the above-described method.
[0010] According to another aspect of this disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the above-described method when executed by a processor.
[0011] According to one or more embodiments of this disclosure, by displaying loading state information corresponding to the user's input intent in the interactive interface before displaying response data for the user's input data, the user can know the user intent corresponding to the user input based on the loading state information while waiting for the response data, and can know that the response data is being generated, thereby improving the user experience.
[0012] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0013] The accompanying drawings exemplify embodiments and form part of the specification, serving together with the textual description to explain exemplary implementations of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0014] Figure 1 A schematic diagram of an exemplary system in which the various methods described herein may be implemented according to embodiments of the present disclosure is shown;
[0015] Figure 2 A flowchart of an information display method according to an exemplary embodiment of the present disclosure is shown;
[0016] Figure 3 A schematic diagram illustrating the dynamic change process of loading state information corresponding to sensibility-related content according to an exemplary embodiment of this disclosure is shown;
[0017] Figure 4 A schematic diagram illustrating the dynamic change process of loading state information corresponding to rational content according to an exemplary embodiment of this disclosure;
[0018] Figure 5 A schematic diagram illustrating the dynamic change process of loading state information corresponding to a positive sentiment assessment of historically generated data, according to an exemplary embodiment of this disclosure;
[0019] Figure 6 A schematic diagram illustrating the dynamic change process of loading state information corresponding to a negative sentiment assessment of historically generated data, according to an exemplary embodiment of this disclosure;
[0020] Figure 7 A schematic diagram is shown illustrating loading status information in an area of an interactive interface for displaying response data, according to an exemplary embodiment of the present disclosure.
[0021] Figure 8 A schematic diagram is shown showing loading status information in an area of an interactive interface corresponding to an interactive element for user to submit input data, according to an exemplary embodiment of the present disclosure.
[0022] Figure 9 A schematic diagram is shown illustrating the display of loading status information in an avatar in an interactive interface, used to indicate the source of the generated response data, according to an exemplary embodiment of the present disclosure.
[0023] Figure 10 A flowchart of an information display method according to an exemplary embodiment of the present disclosure is shown;
[0024] Figure 11 A schematic diagram illustrating the display of response data according to an exemplary embodiment of the present disclosure is shown;
[0025] Figure 12 A flowchart of an information display method according to an exemplary embodiment of the present disclosure is shown;
[0026] Figure 13 A flowchart of an information display method according to an exemplary embodiment of the present disclosure is shown;
[0027] Figure 14 A flowchart of an information display method according to an exemplary embodiment of the present disclosure is shown;
[0028] Figure 15 A schematic diagram illustrating the background of displaying response data according to an exemplary embodiment of the present disclosure;
[0029] Figure 16 A structural block diagram of an information display device according to an exemplary embodiment of the present disclosure is shown; and
[0030] Figure 17 A structural block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure is shown. Detailed Implementation
[0031] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0032] In this disclosure, unless otherwise stated, the use of terms such as "first," "second," etc., to describe various elements is not intended to limit the positional, temporal, or importance relationships of these elements; such terms are merely used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of that element, while in other cases, based on the context, they may refer to different instances.
[0033] The terminology used in the description of the various examples described in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context explicitly indicates otherwise, an element may be one or more unless the number of elements is specifically limited. Furthermore, the term "and / or" as used in this disclosure covers any one of the listed items and all possible combinations thereof.
[0034] In related technologies, intelligent systems require a long time to generate or obtain response data based on user input data, during which time users can only wait monotonously for the generation to complete.
[0035] To address the aforementioned issues, this disclosure displays loading state information corresponding to the user's input intent in the interactive interface before displaying the response data for the user's input data. This allows the user to understand the user intent corresponding to their input based on the loading state information while waiting for the response data, and to know that the response data is being generated, thereby improving the user experience.
[0036] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.
[0037] Figure 1 A schematic diagram of an exemplary system 100 in which the various methods and apparatus described herein can be implemented according to embodiments of this disclosure is shown. Reference Figure 1 The system 100 includes one or more client devices 101, 102, 103, 104, 105 and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105 and 106 can be configured to execute one or more applications.
[0038] In embodiments of this disclosure, server 120 may run one or more services or software applications that enable the execution of information display methods.
[0039] In some embodiments, server 120 may also provide other services or software applications that may include non-virtual and virtual environments. In some embodiments, these services may be provided as web-based services or cloud services, such as to users of client devices 101, 102, 103, 104, 105 and / or 106 under a Software as a Service (SaaS) network.
[0040] exist Figure 1 In the configuration shown, server 120 may include one or more components that implement the functions performed by server 120. These components may include software components, hardware components, or combinations thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 can sequentially interact with server 120 using one or more client applications to utilize the services provided by these components. It should be understood that various different system configurations are possible and may differ from system 100. Therefore, Figure 1 This is an example of a system used to implement the various methods described herein, and is not intended to be limiting.
[0041] Users can use client devices 101, 102, 103, 104, 105, and / or 106 for human-computer interaction. The client devices provide interfaces that enable users to interact with them. The client devices can also output information to the user through these interfaces. Although... Figure 1 Only six client devices are described, but those skilled in the art will understand that this disclosure can support any number of client devices.
[0042] Client devices 101, 102, 103, 104, 105, and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptops), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, gaming systems, thin clients, various messaging devices, sensors, or other sensing devices. These computer devices can run various types and versions of software applications and operating systems, such as Microsoft Windows, Apple iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as Google Chrome OS); or include various mobile operating systems, such as Microsoft Windows Mobile OS, iOS, Windows Phone, and Android. Portable handheld devices may include cellular phones, smartphones, tablets, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Gaming systems may include various handheld gaming devices, internet-enabled gaming devices, etc. Client devices are capable of executing various applications, such as various internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and can use various communication protocols.
[0043] Network 110 can be any type of network well known to those skilled in the art, and can use any of a variety of available protocols (including but not limited to TCP / IP, SNA, IPX, etc.) to support data communication. By way of example only, one or more networks 110 can be a local area network (LAN), an Ethernet-based network, a token ring network, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.
[0044] Server 120 may include one or more general-purpose computers, special-purpose server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running a virtual operating system, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that can be virtualized to maintain virtual storage devices for servers). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.
[0045] The computing unit in server 120 can run one or more operating systems, including any of the aforementioned operating systems and any commercially available server operating system. Server 120 can also run any of a variety of additional server applications and / or middleware applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.
[0046] In some implementations, server 120 may include one or more applications to analyze and merge data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.
[0047] In some implementations, server 120 can be a server for a distributed system or a server integrated with blockchain. Server 120 can also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in the cloud computing service system, designed to address the shortcomings of traditional physical hosts and Virtual Private Server (VPS) services, such as high management difficulty and weak business scalability.
[0048] System 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. Databases 130 may reside in various locations. For example, a data repository used by server 120 may be local to server 120, or it may be located away from server 120 and may communicate with server 120 via a network-based or dedicated connection. Databases 130 may be of different types. In some embodiments, the database used by server 120 may be a database, such as a relational database. One or more of these databases may store, update, and retrieve data from and from the database in response to commands.
[0049] In some embodiments, one or more of the databases 130 may also be used by an application to store application data. The databases used by the application may be of different types, such as key-value stores, object stores, or regular stores supported by a file system.
[0050] Figure 1The system 100 can be configured and operated in various ways to enable the application of the various methods and apparatus described in this disclosure.
[0051] According to one aspect of this disclosure, an information display method is provided. For example... Figure 2 As shown, the information display method includes: step S201, receiving input data from the user; and step S202, before displaying response data for the input data, displaying loading state information corresponding to the user's intent in the interactive interface, the loading state information being used to prompt the user's intent and to indicate that response data is being generated, wherein different user intents correspond to different loading state information.
[0052] Therefore, by displaying loading state information corresponding to the user's input intent in the interactive interface before displaying the response data for the user's input data, the user can understand the user intent corresponding to the user input based on the loading state information while waiting for the response data, and can also know that the response data is being generated, thus improving the user experience.
[0053] The method disclosed herein can be used in intelligent systems with dialogue capabilities. In some embodiments, users can input data via text, voice, images, video, etc. The intelligent system may deploy a response data generation model to generate corresponding response data based on the user's input data. The intelligent system may also utilize an external response data generation model to generate corresponding response data. Typically, the time required for an intelligent system to generate or acquire response data for the input data is relatively long, while the time required to acquire the user's intent regarding the input data is very short. Therefore, in response to determining that the user's intent regarding the input data has been acquired before acquiring the response data, loading state information corresponding to the user's intent regarding the input data can be displayed in the interactive interface.
[0054] In some embodiments, user intent may include at least one of the following: casual conversation, emotionally relevant content generation, rationally relevant content generation, memory-related content generation, factual question and answer, evaluation of historically generated data, and regular dialogue. Loading state information corresponding to the evaluation of historically generated data can be used to prompt the user with the emotional tendency of the input data.
[0055] The meaning of "casual conversation" can be that the intelligent system or response data generation model needs to generate casual responses corresponding to the user's input data. The meaning of "emotionally relevant content generation" can be that the intelligent system or response data generation model needs to create content, such as generating novels, essays, poems, or paintings. The meaning of "rationally relevant content generation" can be that the intelligent system or response data generation model needs to perform reasoning calculations, write code, etc. The meaning of "recollection-related content generation" can be that the intelligent system or response data generation model needs to generate content, perform reasoning calculations, or perform specific tasks based on the user's dialogue interaction history with the intelligent system. The meaning of "factual answer" can be that the intelligent system or response data generation model needs to answer the user's factual questions. The meaning of "evaluation of historically generated data" can be that the user's input data contains a sentimental tendency towards the response data previously generated by the intelligent system or model (e.g., response data obtained or generated in the previous round). The meaning of "regular conversation" can be a regular intention that does not belong to any of the above intentions.
[0056] It is understandable that these different user intents can each correspond to different loading state information. In one exemplary embodiment, Figure 3 (a)-(i) in the diagram illustrate the dynamic changes in the loaded state information corresponding to the sensory content. Through processes such as rotation, deformation, fusion, and reproduction between multiple points, a creative mode of change is demonstrated. Figure 4 (a)-(i) in the diagram illustrate the dynamic changes in the loading state information corresponding to rational content. By simulating the rotation of three points in space, a logically consistent pattern of change is demonstrated. Figure 5 (a)-(c) in the figure show the dynamic change process of the loading state information corresponding to the evaluation of historical generated data with a positive sentiment tendency. Through the overall swing change of multiple points, a state of satisfaction and ease is conveyed, reflecting a positive sentiment tendency. Figure 6 (a)-(e) in the figure show the dynamic changes in the loading state information corresponding to the evaluation of historical generated data with a negative sentiment tendency. By dragging a specific point between different points, a state of regret and heaviness is conveyed, reflecting the negative sentiment tendency.
[0057] As can be seen from the above method, different loading state information corresponding to different user intentions can prompt the user with the corresponding user intentions. This allows the user to know the user intention of the input data as perceived by the intelligent system while waiting for the response data to be generated. Furthermore, for some user intentions, the content category of the response data that the intelligent system will display in advance can be known in advance (e.g., emotional content, rational content, etc.).
[0058] It is understood that the specific presentation methods of the various user intents and corresponding loading state information described above are merely exemplary. When implementing the methods disclosed herein, different presentation methods of user intents and loading state information may also be used, and no limitation is made here.
[0059] According to some embodiments, loading status information can be displayed in the area of the interactive interface used to display response data. For example... Figure 7 As shown, in the interactive interface 700, loading status information 706 can be displayed in the answer card 704 used to display response data for user input data 702.
[0060] Therefore, by displaying loading status information in the response area (e.g., answer card) associated with the user's input data, it is possible to more intuitively prompt the user's intent regarding the input data and to indicate to the user that the response data to be displayed in the response area is being generated, thereby improving the user experience.
[0061] According to some embodiments, loading status information can be displayed in the area of the interactive interface corresponding to the interactive element used for user input data submission. The interactive element can be, for example, a button, a case, an icon, or other type of element. Figure 8 As shown in (a) of the diagram, in the interactive interface 800, there is a send button 804 in the lower right corner of the user input area 802 for the user to submit input data. Figure 8 As shown in (b), after the user presses the send button 804, loading state information 806 corresponding to the user's intention to input data can be displayed in button 804.
[0062] Therefore, by displaying loading status information in the aforementioned interactive elements, users can obtain the corresponding loading status information without shifting their gaze after performing an interactive operation on the interactive element, thus improving the user experience.
[0063] In some embodiments, loading state information corresponding to the user's intent can be displayed in the avatar used to indicate the source of the response data in the interactive interface. For example... Figure 9 As shown, loading status information 904 is displayed in the avatar 902 (e.g., the avatar corresponding to the intelligent system) in the interactive interface 900, which indicates the source of the generated response data.
[0064] It is understandable that, in addition to the methods mentioned above, loading status information can also be displayed in other locations on the interactive interface, and this is not limited here.
[0065] According to some embodiments, such as Figure 10As shown, the information display method may further include: step S1005, in response to determining that the number of characters in the reply data is greater than a preset threshold, displaying the reply data part by part at a preset rate. It is understood that... Figure 10 Steps S1001 and S1004 are respectively and Figure 2 Steps S201-S202 are similar and will not be described in detail here.
[0066] In some embodiments, the display of parts may be, for example, a word-by-word display, a text fragment display, a sentence-by-sentence display, or other methods that divide the response data into multiple displays, and is not limited herein.
[0067] Therefore, by displaying the response data part by part at a preset rate in a way similar to a typewriter when the number of characters exceeds a preset threshold, it is possible to create the atmosphere of the user having a conversation with a real person, thereby improving the user experience.
[0068] In one exemplary embodiment, the preset threshold can be 60 words, and the preset rate can be 60 words per second.
[0069] According to some embodiments, such as Figure 10 As shown, the information display method may further include: step S1006, in response to determining that the number of characters in the reply data is not greater than a preset threshold, displaying the reply data part by part within a preset time period. Thus, when the number of characters in the reply data is not greater than the preset threshold, all characters are displayed directly within the preset time period, allowing users to quickly obtain concise reply data and improving the user experience.
[0070] In one exemplary embodiment, the preset duration can be 1 second.
[0071] In one exemplary embodiment, such as Figure 11 As shown in (a)-(d) in the interactive interface 1100, there is a constantly blinking cursor 1104 in the answer card 1102 used to display response data for user input data. As the response data is displayed part by part in the answer card 1102, the cursor 1104 also changes position while continuing to blink (e.g., immediately following the already displayed part of the response data).
[0072] In some embodiments, the intelligent system may include two parts: a front-end and a back-end, and may include a response data generation model or be capable of exchanging information with an external response data generation model. The main function of the front-end is to interact with the user, for example, by receiving input data from the user and presenting an interactive interface (including loading status information, response data, etc. displayed on the interface). Furthermore, the front-end can also interact with the back-end, for example, by transmitting user input data to the back-end and retrieving response data from the back-end. In addition to the aforementioned data interaction with the front-end, the back-end can also exchange information with the response data generation model, for example, by transmitting user input data received from the front-end to the model and receiving data generated by the model from the model.
[0073] In some embodiments, the response data generation model may be a trained deep learning model capable of generating response data based on user input data.
[0074] According to some embodiments, such as Figure 10 As shown, the information display method may further include: step S1002, acquiring the response data fragment currently output by the response data generation model in real time and storing the response data fragment, wherein the response data generation model outputs at least one response data fragment sequentially based on the input data; and step S1003, repeatedly determining the undisplayed parts of the stored response data fragments as response data at preset time intervals.
[0075] In some embodiments, the response data generation model generates answers step by step based on the input data, that is, it outputs at least one response data fragment sequentially. The backend of the intelligent system can obtain the response data fragment currently output by the response data generation model in real time, and can store this fragment together with previously obtained fragments. Furthermore, the frontend can periodically obtain response data for display from the backend, such as the portion stored by the backend between the last acquisition and the current acquisition. That is, the frontend repeatedly identifies the undisplayed portions of the response data fragments stored in the backend as response data for acquisition and display at preset time intervals.
[0076] Therefore, by determining, acquiring, and presenting response data sequentially according to the preset time interval, the number of times response data needs to be determined can be reduced, the frequency of data interaction between the front end and the back end can be lowered, thereby reducing the communication cost between the two.
[0077] According to some embodiments, such as Figure 12 As shown, the information display method may further include: step S1203, in response to determining that the user's intent includes an evaluation of historically generated data, displaying an icon in the interactive interface to indicate the sentiment of the input data. It is understood that... Figure 12Steps S1201 and S1202 are respectively and Figure 2 Steps S201-S202 are similar and will not be repeated here. Therefore, through the above method, users can understand the intelligent system's judgment on the emotional tendency of their input data, thereby improving the user experience.
[0078] In some embodiments, icons used to indicate the emotional tendency of input data can be, for example, specific patterns, images, expressions, etc., which can more vividly indicate to the user the emotional tendency of the input data as determined by the intelligent system.
[0079] According to some embodiments, step S1203, displaying an icon in the interactive interface to indicate the sentiment of the input data, may include changing the avatar in the interactive interface that indicates the source of the response data to an expression that corresponds to the sentiment of the input data.
[0080] In some embodiments, the avatar used to indicate the source of the response data can be, for example, the avatar of the intelligent system. Thus, by changing the avatar indicating the source of the response data to one with a label corresponding to the sentiment of the input data, the emotional tendency of the intelligent system towards the user's input data can be presented more vividly, thereby creating a relaxed conversational atmosphere and enhancing the user experience.
[0081] According to some embodiments, such as Figure 13 As shown, the information display method may further include: step S1302, decomposing the input data into at least one semantic unit; step S1303, for each semantic unit, identifying a set of entities within that semantic unit and determining a set of entity relationships between the entities; and step S1304, obtaining the user intent output by the intent model based on the at least one set of entities and the at least one set of entity relationships corresponding to the at least one semantic unit. It is understood that... Figure 13 Steps S1301 and S1307 are respectively and Figure 2 Steps S201-S202 are similar and will not be described in detail here.
[0082] Therefore, by using semantic decomposition, entity recognition, entity relationship determination and other methods, at least one set of entities and at least one set of entity relationships included in the input data can be obtained, and then these entities and entity relationships can be used to predict user intent, so as to obtain more accurate user intent.
[0083] In some embodiments, a semantic unit can be a text fragment that constitutes complete semantics, such as a short sentence, clause, or complete sentence. An entity can be, for example, a person, object, noun, concept, action, etc., involved in the semantic unit, and an entity relationship can be, for example, the relationship between these entities. An intent model can be, for example, a trained deep learning model capable of outputting a corresponding user intent based on at least one set of entities and at least one corresponding set of entity relationships.
[0084] According to some embodiments, such as Figure 13 As shown, the information display method may further include: step S1305, in response to determining user intent including evaluation of historically generated data, obtaining the sentiment tendency of the input data output by the sentiment tendency analysis model based on at least one set of entities and at least one set of entity relationships.
[0085] Therefore, by analyzing the sentiment tendency of the input data using at least one set of entities corresponding to at least one semantic unit in the user's input data and at least one set of corresponding entity relationships, accurate analysis results can be obtained.
[0086] According to some embodiments, such as Figure 13 As shown, the information display method may further include: step S1306, in response to determining that the user intent includes casual conversation, determining core entity words in at least one set of entities, wherein the response data is generated based on the input data and the core entity words. Thus, by determining core entity words in at least one set of entities corresponding to at least one semantic unit in the user's input data, and generating response data based on the user's input data and the core entity words, higher quality response data that better meets the user's conversational needs can be obtained, enabling the intelligent system to engage in casual conversation with the user around the core entity words, thereby improving the user experience.
[0087] According to some embodiments, such as Figure 13 As shown, the information display method may further include: step S1308, in response to determining that the core entity word has a corresponding preset pattern, displaying the preset pattern at at least one position in the interactive interface. Thus, by displaying the preset pattern corresponding to the core entity word in the interactive interface, the user can be prompted with the core keyword or presented with content related to the core keyword in a richer and more vivid way, thereby improving the user experience.
[0088] In one exemplary embodiment, the preset pattern corresponding to the core entity word "Spring Festival" can be a red envelope, the preset pattern corresponding to the core entity word "Year of the Rabbit" can be a rabbit, and the preset pattern corresponding to the core entity word "sad" can be an embrace.
[0089] According to some embodiments, such as Figure 14As shown, the information display method may further include: step S1403, in response to determining that the user intent includes factual questions and answers, displaying an image related to the semantic subject of the input data as the background of the response data in the interactive interface. Thus, through the above method, when users read and browse the response data of factual questions and answers, they can also intuitively see an image related to the semantic subject in the user's input data, improving the user experience. It is understood that... Figure 14 Steps S1401 and S1402 are respectively with Figure 2 Steps S201-S202 are similar and will not be described in detail here.
[0090] According to some embodiments, step S1403, in response to determining that the user intent includes factual questions and answers, displaying an image related to the semantic subject of the input data as the background of the response data in the interactive interface may include: extracting the semantic subject from the input data in response to determining that the user intent includes factual questions and answers; and obtaining an image generated by an image generation model based on the semantic subject. Therefore, compared to obtaining images embodying the semantic subject through search tools or other means, using an image generation model to generate images based on the semantic subject enables the acquisition of images directly related to the semantic subject, further improving the user experience.
[0091] In one exemplary embodiment, such as Figure 15 As shown, in the interactive interface 1500, an image 1506 related to the semantic subject "sea" in the input data 1502 can be displayed as the background of the response data 1504.
[0092] In some embodiments, the image generation model may be a trained deep learning model with the ability to generate images that are semantically consistent with the text.
[0093] It is understood that the preset threshold, preset rate, preset duration, preset time interval and preset pattern in this disclosure can all be set according to actual needs, and are not limited here.
[0094] According to another aspect of this disclosure, an information display device is provided. For example... Figure 16 As shown, the device 1600 includes: a receiving unit 1610 configured to receive input data from a user; and a display unit 1620 configured to display loading state information corresponding to the user's intent regarding the input data in an interactive interface before displaying response data for the input data, wherein the loading state information is used to prompt the user's intent and to indicate to the user that response data is being generated. It is understood that... Figure 16 Operations of Units 1610-1620 Figure 2The operations of steps S201-S202 are similar and will not be described in detail here.
[0095] According to some embodiments, loading status information can be displayed in the area of the interactive interface used to display response data.
[0096] According to some embodiments, loading status information can be displayed in the area corresponding to the interactive element in the interactive interface used for user input data submission.
[0097] According to some embodiments, the information display device may further include: a second display unit configured to display the reply data part by part at a preset rate in response to determining that the number of characters in the reply data is greater than a preset threshold.
[0098] According to some embodiments, the information display device may further include: a third display unit configured to display the reply data part by part within a preset time period in response to determining that the number of characters in the reply data is not greater than a preset threshold.
[0099] According to some embodiments, the information display device may further include: an acquisition unit configured to acquire, in real time, a response data segment currently output by the response data generation model and store the response data segment, wherein the response data generation model sequentially outputs at least one response data segment based on input data; and a determination unit configured to repeatedly determine the undisplayed portion of the stored response data segment as response data at preset time intervals.
[0100] According to some embodiments, the information display device may further include: a fourth display unit configured to display an icon in the interactive interface to indicate the sentiment of the input data in response to determining that the user's intent includes an evaluation of historically generated data.
[0101] According to some embodiments, the fourth display unit can be configured to change the avatar in the interactive interface that indicates the source of the response data to an expression that corresponds to the emotional tendency of the input data.
[0102] According to some embodiments, the information display device may further include: a decomposition unit configured to decompose input data into at least one semantic unit; an identification unit configured to identify a set of entities in each of the at least one semantic unit and determine a set of entity relationships between the set of entities; and a first acquisition unit configured to acquire the user intent output by the intent model based on at least one set of entities and at least one set of entity relationships corresponding to at least one semantic unit.
[0103] According to some embodiments, the information display device may further include: a second acquisition unit configured to, in response to determining that a user intent includes an evaluation of historically generated data, acquire the sentiment tendency of the input data output by a sentiment tendency analysis model based on at least one set of entities and at least one set of entity relationships.
[0104] According to some embodiments, the information display device may further include: in response to determining that a user intent includes a casual conversation, identifying core entity words in at least one set of entities, wherein the response data is generated based on input data and the core entity words.
[0105] According to some embodiments, the information display device may further include: in response to determining that the user intent includes factual questions and answers, displaying an image related to the semantic subject of the input data as the background of the response data in the interactive interface.
[0106] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0107] According to embodiments of this disclosure, an electronic device, a readable storage medium, and a computer program product are also provided.
[0108] refer to Figure 17 The present invention describes a structural block diagram of an electronic device 1700 that can serve as a server or client of the present disclosure, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0109] like Figure 17 As shown, device 1700 includes a computing unit 1701, which can perform various appropriate actions and processes according to a computer program stored in read-only memory (ROM) 1702 or a computer program loaded into random access memory (RAM) 1703 from storage unit 1708. The RAM 1703 may also store various programs and data required for the operation of device 1700. The computing unit 1701, ROM 1702, and RAM 1703 are interconnected via bus 1704. Input / output (I / O) interface 1705 is also connected to bus 1704.
[0110] Multiple components in device 1700 are connected to I / O interface 1705, including: input unit 1706, output unit 1707, storage unit 1708, and communication unit 1709. Input unit 1706 can be any type of device capable of inputting information to device 1700. Input unit 1706 can receive input numerical or character information and generate key signal input related to user settings and / or function control of the electronic device, and may include, but is not limited to, a mouse, keyboard, touchscreen, trackpad, trackball, joystick, microphone, and / or remote control. Output unit 1707 can be any type of device capable of presenting information, and may include, but is not limited to, a monitor, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 1708 may include, but is not limited to, a hard disk and an optical disk. Communication unit 1709 allows device 1700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, a modem, network card, infrared communication device, wireless communication transceiver, and / or chipset, such as Bluetooth. TM Devices, 802.11 devices, WiFi devices, WiMax devices, cellular communication devices and / or the like.
[0111] The computing unit 1701 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning network algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1701 performs the various methods and processes described above, such as the information display method. For example, in some embodiments, the information display method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 1708. In some embodiments, part or all of the computer program may be loaded and / or installed on device 1700 via ROM 1702 and / or communication unit 1709. When the computer program is loaded into RAM 1703 and executed by the computing unit 1701, one or more steps of the information display method described above may be performed. Alternatively, in other embodiments, the computing unit 1701 may be configured to perform the information display method by any other suitable means (e.g., by means of firmware).
[0112] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0113] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0114] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0115] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0116] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0117] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service ecosystem, addressing the shortcomings of traditional physical hosts and VPS (Virtual Private Server, or simply "VPS") services, such as high management difficulty and weak business scalability. Servers can also be servers for distributed systems or servers incorporating blockchain technology.
[0118] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0119] While embodiments or examples of this disclosure have been described with reference to the accompanying drawings, it should be understood that the methods, systems, and devices described above are merely exemplary embodiments or examples, and the scope of the invention is not limited by these embodiments or examples, but only by the granted claims and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalents. Furthermore, the steps may be performed in a different order than that described in this disclosure. Further, various elements in the embodiments or examples may be combined in various ways. Importantly, as the technology evolves, many elements described herein can be replaced by equivalents that appear after this disclosure.
Claims
1. An information display method, comprising: Receive input data from the user; The response data generation model acquires the response data fragments currently output by the response data generation model in real time and stores the response data fragments, wherein the response data generation model outputs at least one response data fragment in sequence based on the input data; Repeatedly, at preset time intervals, identify the undisplayed portions of the stored response data fragments as the response data; and In response to determining that the user intent of the input data was obtained before the response data for the input data was obtained, before displaying the response data for the input data, loading state information corresponding to the user intent of the input data is displayed in the interactive interface. The loading state information is used to prompt the user intent and to indicate that the response data is being generated. Different user intents correspond to different loading state information.
2. The method according to claim 1, wherein, The loading status information is displayed in the area of the interactive interface used to display the response data.
3. The method according to claim 1, wherein, The loading status information is displayed in the area corresponding to the interactive element in the interactive interface used by the user to submit the input data.
4. The method according to any one of claims 1 to 3, further comprising: In response to determining that the number of characters in the reply data is greater than a preset threshold, the reply data is displayed part by part at a preset rate.
5. The method according to any one of claims 4, further comprising: In response to determining that the number of characters in the reply data is not greater than the preset threshold, the reply data is displayed in parts over a preset time period.
6. The method according to any one of claims 1 to 3, further comprising: In response to determining that the user intent includes an evaluation of historically generated data, an icon is displayed in the interactive interface to indicate the sentiment tendency of the input data.
7. The method according to claim 6, wherein, The icons displayed in the interactive interface to indicate the sentiment tendency of the input data include: The avatar in the interactive interface that indicates the source of the response data is changed to an expression that corresponds to the emotional tendency of the input data.
8. The method according to any one of claims 1 to 3, further comprising: The input data is decomposed into at least one semantic unit; For each of the at least one semantic unit, identify a set of entities within that semantic unit and determine a set of entity relationships between the set of entities; as well as The user intent output by the intent model is obtained based on at least one set of entities and at least one set of entity relationships corresponding to the at least one semantic unit.
9. The method according to claim 8, further comprising: In response to determining that the user intent includes an evaluation of historically generated data, the sentiment tendency of the input data is obtained based on the at least one set of entities and the at least one set of entity relationships, as output by the sentiment tendency analysis model.
10. The method of claim 8, further comprising: In response to determining that the user intent includes casual conversation, core entity words are identified among the at least one set of entities, wherein the response data is generated based on the input data and the core entity words.
11. The method of claim 10, further comprising: In response to determining that the core entity word has a corresponding preset pattern, the preset pattern is displayed at at least one position in the interactive interface.
12. The method according to any one of claims 1 to 3, further comprising: In response to determining that the user intent includes factual questions and answers, an image related to the semantic subject of the input data is displayed as the background of the response data in the interactive interface.
13. The method of claim 12, wherein, In response to determining that the user intent includes factual questions and answers, displaying an image related to the semantic subject of the input data as the background of the response data in the interactive interface includes: In response to determining that the user intent includes factual questions and answers, the semantic subject is extracted from the input data; and Obtain the image generated by the image generation model based on the semantic subject.
14. An information display device, comprising: The receiving unit is configured to receive input data from the user; The acquisition unit is configured to acquire the response data fragment currently output by the response data generation model in real time and store the response data fragment, wherein the response data generation model outputs at least one response data fragment sequentially based on the input data; The determining unit is configured to repeatedly determine the undisplayed portions of stored response data fragments as the response data at preset time intervals; and The first display unit is configured to, in response to determining that a user intent of the input data has been obtained before obtaining response data for the input data, display loading state information corresponding to the user intent of the input data in the interactive interface before displaying the response data for the input data. The loading state information is used to prompt the user with the user intent and to prompt the user that the response data is being generated. Different user intents correspond to different loading state information.
15. The apparatus according to claim 14, wherein, The loading status information is displayed in the area of the interactive interface used to display the response data.
16. The apparatus according to claim 14, wherein, The loading status information is displayed in the area corresponding to the interactive element in the interactive interface used by the user to submit the input data.
17. The apparatus according to any one of claims 14 to 16, further comprising: The second display unit is configured to display the response data part by part at a preset rate in response to determining that the number of characters in the response data is greater than a preset threshold.
18. The apparatus according to any one of claims 17, further comprising: The third display unit is configured to display the reply data part by part within a preset time period in response to determining that the number of characters in the reply data is not greater than the preset threshold.
19. The apparatus according to any one of claims 14 to 16, further comprising: The fourth display unit is configured to display icons in the interactive interface to indicate the sentiment of the input data in response to determining that the user intent includes an evaluation of historically generated data.
20. The apparatus according to claim 19, wherein, The fourth display unit is configured to change the avatar in the interactive interface that indicates the source of the response data to an expression that corresponds to the emotional tendency of the input data.
21. The apparatus according to any one of claims 14 to 16, further comprising: The decomposition unit is configured to decompose the input data into at least one semantic unit; The identification unit is configured to identify a set of entities in each of the at least one semantic unit and determine a set of entity relationships between the set of entities. as well as The first acquisition unit is configured to acquire the user intent output by the intent model based on at least one set of entities and at least one set of entity relationships corresponding to the at least one semantic unit.
22. The apparatus of claim 21, further comprising: The second acquisition unit is configured to, in response to determining that the user intent includes an evaluation of historically generated data, acquire the sentiment tendency of the input data output by the sentiment tendency analysis model based on the at least one set of entities and the at least one set of entity relationships.
23. The apparatus of claim 21, further comprising: In response to determining that the user intent includes casual conversation, core entity words are identified among the at least one set of entities, wherein the response data is generated based on the input data and the core entity words.
24. The apparatus according to any one of claims 14 to 16, further comprising: In response to determining that the user intent includes factual questions and answers, an image related to the semantic subject of the input data is displayed as the background of the response data in the interactive interface.
25. An electronic device, comprising: At least one processor; as well as A memory that is communicatively connected to the at least one processor; in The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-13.
26. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-13.
27. A computer program product comprising a computer program, wherein, When the computer program is executed by a processor, it implements the method of any one of claims 1-13.