Display method, display device, electronic equipment and medium
By automatically identifying and displaying keywords in the news interface on an electronic device and displaying relevant search results based on the keywords entered by the user, the problem of users' cumbersome operations when searching for specific news is solved, and the search efficiency is improved.
Patent Information
- Application Number
- CN202411552563.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-03-21
AI Technical Summary
When users browse news through electronic devices, they need to manually enter keywords to find news related to specific events or characters, which leads to cumbersome operations and inefficient efficiency.
A display method is provided, by receiving input to the first interface, displaying first information containing keywords, and receiving input of target keywords, and displaying second information generated based on search results of the keywords.
Users can view information related to keywords without reading the entire interface content, which significantly improves the operational convenience and efficiency of finding news and information content.
Smart Images

Figure CN119669549A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of display technology, and specifically relates to a display method, a display device, an electronic device and a medium. Background Art
[0002] Currently, with the rapid development of the Internet, more and more users can access the Internet through electronic devices. For example, more and more users can browse news information through electronic devices.
[0003] In the related art, when a user browses news information through an electronic device, the user needs to first read the entire news information content to determine whether the news information content contains an event or person that the user wants to pay attention to. If the news information content contains an event or person that the user wants to pay attention to, and the user wants to continue to view news information content related to the event or person, the user needs to manually enter keywords related to the event or person and trigger the electronic device to perform information retrieval, and then view the news information content related to the event or person based on the retrieval results.
[0004] In this way, the operation of the user triggering the electronic device to search for news and information content is cumbersome and time-consuming, resulting in poor convenience and efficiency in the operation of searching for news and information content. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a display method, a display device, an electronic device and a medium, which can improve the convenience and efficiency of users triggering electronic devices to search for news information content.
[0006] In a first aspect, an embodiment of the present application provides a display method, the method comprising:
[0007] Receiving a first input to a first interface;
[0008] In response to the first input, displaying first information, where the first information is generated according to the content of the first interface, and the first information includes at least one keyword;
[0009] receiving a second input of a target keyword;
[0010] In response to the second input, second information is displayed, where the second information is generated based on N search results of the target keyword, where the target keyword is a keyword in the at least one keyword, and N is a positive integer.
[0011] In a second aspect, an embodiment of the present application provides a display device, the device comprising:
[0012] A receiving module, used for receiving a first input to a first interface;
[0013] A display module, configured to display first information in response to a first input, wherein the first information is generated according to the content of the first interface, and the first information includes at least one keyword;
[0014] The receiving module is further used to receive a second input of the target keyword;
[0015] The display module is further used to display second information in response to a second input, where the second information is generated based on N search results of a target keyword, where the target keyword is a keyword in the at least one keyword, and N is a positive integer.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the display method described in the first aspect are implemented.
[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the display method described in the first aspect are implemented.
[0018] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the display method as described in the first aspect.
[0019] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the display method as described in the first aspect.
[0020] In an embodiment of the present application, a first input to a first interface is received; in response to the first input, first information is displayed, the first information is generated according to the content of the first interface, and the first information includes at least one keyword; a second input to a target keyword is received; in response to the second input, second information is displayed, the second information is generated according to N search results of the target keyword, the target keyword is a keyword in at least one keyword, and N is a positive integer. In this way, the user only needs to make a first input to the first interface to trigger the electronic device to display the keyword, and the user only needs to enter the keyword to view the information corresponding to the keyword. Therefore, the user does not need to read through the content of the first interface and manually enter the keyword to view the information corresponding to the keyword, thereby improving the convenience and efficiency of the electronic device in searching for news and information content. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a flow chart of a display method provided in an embodiment of the present application;
[0022] Figure 2A is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0023] Figure 2B is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0024] Figure 2C is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0025] Figure 2D is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0026] Figure 2E is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0027] Figure 2F is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0028] Figure 2G is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0029] Figure 2H is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0030] Fig.2I is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0031] Figure 2J is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0032] Figure 2K is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0033] Figure 2L is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0034] Figure 2M is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0035] Figure 2N is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0036] Fig.2O is a schematic diagram of an information display interface provided by an embodiment of the present application;
[0037] Figure 3 It is a flow chart of a display method provided in an embodiment of the present application;
[0038] Figure 4 It is a flow chart of a display method provided in an embodiment of the present application;
[0039] Figure 5 It is a flow chart of a display method provided in an embodiment of the present application;
[0040] Figure 6 It is a flow chart of a display method provided in an embodiment of the present application;
[0041] Figure 7 It is a flow chart of a display method provided in an embodiment of the present application;
[0042] Figure 8 It is a flow chart of a display method provided in an embodiment of the present application;
[0043] Fig. 9 is a schematic diagram of a display device provided in an embodiment of the present application;
[0044] Fig.10 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0045] Fig.11 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0047] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0048] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".
[0049] The display method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0050] The display method provided in the embodiment of the present application can be applied to the scenario where a user obtains information through an electronic device.
[0051] The execution subject of the display method provided in the embodiment of the present application may be a display device. Exemplarily, the display device may be an electronic device, or a functional component or functional entity in the electronic device. The following will take the execution subject as an electronic device as an example to exemplify the display method provided in the embodiment of the present application.
[0052] Figure 1 is a flow chart of the display method provided in the embodiment of the present application, such as Figure 1 As shown, the display method provided in the embodiment of the present application may include the following steps 101 to 104.
[0053] Step 101: An electronic device receives a first input to a first interface.
[0054] In some embodiments of the present application, the first interface may be a news information interface that displays news information content.
[0055] In some embodiments of the present application, the first input is used to trigger the electronic device to perform an identification operation on the information content displayed on the first interface.
[0056] In some embodiments of the present application, the above-mentioned first input may include at least one of the following: user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0057] In some embodiments of the present application, the above-mentioned gesture input may include but is not limited to at least one of the following: click gesture, sliding gesture, drag gesture, pressure recognition gesture, long press gesture, area change gesture, double press gesture, double click gesture, specific gesture input or other possible gesture inputs. The specific gesture input form can be determined according to actual needs and is not limited to this in some embodiments.
[0058] In some embodiments of the present application, the above-mentioned click input can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long-press input or a short-press input, which is not limited in some embodiments.
[0059] In some embodiments of the present application, the above-mentioned sliding input can be a sliding input in any direction, such as sliding up, sliding down, sliding to the left or sliding to the right, etc., which is not limited in some embodiments.
[0060] For example, when the electronic device is a mobile phone, Figure 2A As shown, the first interface 21 on the mobile phone screen 20 may be a sports meeting news information interface, displaying sports meeting news information content 211. The mobile phone may receive a first input of the user to the sports meeting news information content 211 on the first interface.
[0061] Step 102: The electronic device displays first information in response to a first input.
[0062] In some embodiments of the present application, the above-mentioned first information is information information generated by the electronic device based on the content of the above-mentioned first information interface, and the above-mentioned first information includes at least one keyword and an information summary, at least one keyword is a keyword of the content of the above-mentioned first interface, and the above-mentioned information summary is an information summary of the content of the above-mentioned first interface.
[0063] In some embodiments of the present application, the first interface is an interface of a first application, and the first input includes a first sub-input and a second sub-input; Figure 1 ,like Figure 3 As shown, the above step 102 can be implemented by the following step 102a1 and the following step 102a2:
[0064] Step 102a1: The electronic device displays an identifier of a second application on a first interface in response to a first sub-input.
[0065] In some embodiments of the present application, the above-mentioned first application may be a first news information application on the electronic device, the above-mentioned first interface is an interface of the first news information application, and the above-mentioned first news information application may be any news information application on the electronic device.
[0066] In some embodiments of the present application, the second application may be an application of a news keyword recognition assistant, and the logo of the second application may be an icon of the news keyword recognition assistant.
[0067] In some embodiments of the present application, the first sub-input and the second sub-input are sub-inputs received by the electronic device at different times within a preset time period, and the first sub-input and the second sub-input are two consecutive sub-inputs, that is, there is no other sub-input between the first sub-input and the second sub-input.
[0068] In some embodiments of the present application, the above-mentioned first sub-input may include any of the following: user's click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0069] When the electronic device is a mobile phone, the user can slide left on the first interface 21 displayed on the mobile phone screen 20 to input. Figure 2A ,like Figure 2B As shown, the mobile phone can respond to the above-mentioned left-slide input and display the application icon 212 of the news keyword recognition assistant on the right side of the first interface 21. The above-mentioned left-slide input is the above-mentioned first sub-input.
[0070] Step 102a2: The electronic device displays the first information on the interface of the second application in response to the second sub-input of the identifier.
[0071] In some embodiments of the present application, the second sub-input may include any one of the following: user click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0072] In some embodiments of the present application, the electronic device may display an interface of a news keyword recognition assistant in response to the second sub-input of the above-mentioned identifier, and display the above-mentioned first information on the interface of the news keyword recognition assistant.
[0073] For example Figure 2B As shown, when the user clicks on the application icon 212, the Figure 2B ,like Figure 2C As shown, the mobile phone can respond to the above click input and display the interface 22 of the news keyword recognition assistant on the screen of the mobile phone, and the interface 22 of the news keyword recognition assistant displays a prompt message box 221 for the news keyword recognition assistant to recognize the news information content and a re-recognition control 222. The prompt message box 221 is used to prompt that the news keyword recognition assistant of the mobile phone is recognizing the news information content displayed on the first interface 21. When the news keyword recognition assistant completes the recognition, combined with the Figure 2C ,like Figure 2D As shown, the mobile phone can display the information summary 223 of the news information content 211 of the sports meeting on the interface 22 of the news keyword recognition assistant, and the above-mentioned click input is the above-mentioned second sub-input.
[0074] It should be noted that, when the prompt message box 221 prompts the news keyword recognition assistant of the mobile phone to fail to recognize the news information content of the sports meeting displayed on the first interface 21, the user can click and input the re-recognition control 222. The mobile phone can re-recognize the news information content of the sports meeting displayed on the first information interface 21 in response to the user's click input on the re-recognition control 222.
[0075] Step 103: The electronic device receives a second input of the target keyword.
[0076] In some embodiments of the present application, the target keyword is a keyword among the at least one keyword.
[0077] In some embodiments of the present application, the second input may include any one of the following: user click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0078] Step 104: The electronic device displays second information in response to the second input.
[0079] In some embodiments of the present application, the second information is information generated by the electronic device based on the N search results of the target keyword, where N is a positive integer.
[0080] In some embodiments of the present application, the electronic device may display the second information on the interface of the second application.
[0081] For example Figure 2D As shown, when the user long presses the keyword "sports meeting", combined with Figure 2D ,like Figure 2E As shown, the mobile phone can respond to the above-mentioned long press input and display the news information summary 225 and comment summary 226 corresponding to the "sports meeting" keyword on the interface 22 of the news keyword recognition assistant. The news information summary 225 and comment summary 226 are the above-mentioned second information, and the above-mentioned long press input is the above-mentioned second input.
[0082] In the display method provided in the present application, a first input to a first interface is received; in response to the first input, first information is displayed, the first information is generated according to the content of the first interface, and the first information includes at least one keyword; a second input to a target keyword is received; in response to the second input, second information is displayed, the second information is generated according to N search results of the target keyword, the target keyword is a keyword in at least one keyword, and N is a positive integer. In this way, the user only needs to input the first input to the first interface to trigger the electronic device to display the keyword, and the user only needs to input the keyword to view the information corresponding to the keyword. Therefore, the user does not need to read through the content of the first interface and manually input the keyword to view the information corresponding to the keyword, thereby improving the convenience and efficiency of the electronic device in searching for news and information content.
[0083] In some embodiments of the present application, Figure 1 ,like Figure 4 As shown, the above step 102 can be implemented by the following step 102b:
[0084] Step 102b: In response to the first input, the electronic device uses an information extraction model to identify the content of the first interface, obtains the first information, and displays the first information.
[0085] In some embodiments of the present application, the above-mentioned information extraction model can be a news vertical domain large model, which can identify news information content.
[0086] In some embodiments of the present application, when the first interface is displayed on the screen of the electronic device, the news keyword recognition assistant can take a screenshot of the screen of the electronic device to obtain the content of the first interface. When the news keyword recognition assistant takes a screenshot, it can adaptively remove the redundant information of the status bar and the news information application on the screen according to the screen parameters of the electronic device and the relevant information of the news information application on the first interface to obtain an information screenshot of the first interface. Optical Character Recognition (OCR) is then used to perform text recognition in the above information screenshot to obtain the content of the first interface, and then the news vertical domain large model is used to recognize the content of the first interface to obtain the first information.
[0087] In this way, the electronic device can accurately and quickly obtain the first information by responding to the first input and using the information extraction model to identify the content of the first interface, thereby improving the efficiency of the electronic device in searching for news information.
[0088] In some embodiments of the present application, Figure 1 ,like Figure 5 As shown, the above step 104 can be implemented by the following steps 104a and 104b:
[0089] Step 104a: the electronic device searches for N search results based on the target keyword in response to the second input;
[0090] Step 104b: The electronic device summarizes the N search results using an information extraction model to obtain second information, and displays the second information.
[0091] In some embodiments of the present application, the search results include information search results and comment search results corresponding to the information search results, and the second information includes an information summary and a comment summary;
[0092] Among them, the above information summary is generated based on the above information search results, and the above comment summary is generated based on the above comment search results.
[0093] In this way, the electronic device summarizes N search results by adopting the information extraction model to obtain the second information, and can obtain the second information accurately and quickly, thereby improving the efficiency and accuracy of the electronic device in searching for news information.
[0094] In some embodiments of the present application, Figure 5 ,like Figure 6 As shown, the "obtaining N search results based on the target keyword search" in the above step 104a can be implemented through the following steps 104a1 to 104a4:
[0095] Step 104a1: The electronic device searches based on the target keyword to obtain M search results, where M is a positive integer;
[0096] In some embodiments of the present application, the M search results may be obtained by searching the electronic device based on the target keyword using at least one news information application on the electronic device.
[0097] Step 104a2: The electronic device calculates a weighted value of each search result in the M search results.
[0098] In some embodiments of the present application, a weighted value is a weighted value of the publishing time, reading volume, and comment volume of the information search result corresponding to a search result.
[0099] In some embodiments of the present application, the electronic device may preset different weighting values for the above-mentioned publishing time, the above-mentioned reading volume and the above-mentioned comment volume, respectively, and then use the above-mentioned weighting values to perform weighted operations on the publishing time, reading volume and comment volume of each search result to obtain the weighted value of each of the above-mentioned search results.
[0100] Step 104a3: The electronic device arranges the M search results in descending order of weighted values to obtain a search result sequence;
[0101] Step 104a4: The electronic device determines the first N search results in the search result sequence as N search results.
[0102] For example, M is 6, N is 3, and the 6 search results are search result 1, search result 2, search result 3, search result 4, search result 5, and search result 6, and their weight values are 22, 26, 23, 27, 24, and 28, respectively. Then the 6 search results are arranged in descending order according to the weight value, and the search result sequence is search result 6, search result 4, search result 2, search result 5, search result 3, and search result 51. Then the first three search results of the 6 search results, search result 6, search result 4, and search result 2, are the above N search results.
[0103] In some embodiments of the present application, before the above step 101, the display method provided by the embodiment of the present application may further include the following step 105:
[0104] Step 105: The electronic device uses the information sample data and the target sample data to train the base model to obtain an information extraction model.
[0105] In some embodiments of the present application, the target sample data is sample data of other types other than information type. For example, the target sample data may be general sample data of different types including medical type, technology type, geographical type, meteorological type, etc.
[0106] In some embodiments of the present application, the information sample data may include at least one information sample and a sample label corresponding to each information sample. The information sample may be news information content, and the sample label may be an information summary of the news information content and at least one keyword.
[0107] In some embodiments of the present application, the electronic device may obtain the at least one information sample from the at least one news information application in advance by means of a crawler or an interface call, and perform data cleaning on each of the at least one information sample to remove special characters, format errors, advertisements and other noise in each information sample to obtain at least one cleaned information sample.
[0108] In some embodiments of the present application, during the process of training the base model using the at least one information sample after cleaning and the sample label and target sample data corresponding to the at least one information sample after cleaning, the electronic device can adjust the model weight parameters of the base model and extract each information sample in the at least one information sample after cleaning until the similarity between the extraction result of each corresponding information sample output by the base model and the sample label corresponding to the information sample is greater than or equal to the first similarity, and then determine that the training of the base model is completed and obtain the information extraction model.
[0109] In this way, the base model is trained using information sample data and target sample data, so that the obtained information extraction model can accurately identify and extract various types of information content in news information, thereby improving the accuracy of electronic equipment searching for news information.
[0110] In some embodiments of the present application, the above step 104 may also be implemented by the following step 104b:
[0111] Step 104b: The electronic device displays second information at the target time in response to the second input.
[0112] In some embodiments of the present application, the target moment is a preset moment or a first moment set by the second input, and the first moment is a moment when the search result of the target keyword changes.
[0113] In some embodiments of the application, the electronic device searches for the target keyword from the at least one news information application at a second time interval based on the target keyword to obtain N search results corresponding to the target keyword, and compares the N search results obtained at the current moment with the N search results obtained at the previous moment to determine whether the N search results have changed. If the N search results have changed, the second information is displayed.
[0114] For example Figure 2D As shown in the figure, when the user clicks and inputs the keyword "sports meeting", combined with Figure 2D ,like Figure 2F and 2G As shown, the mobile phone can respond to the above click input and display a subscription setting prompt box 227 of the second information corresponding to the keyword "sports meeting" on the interface 22 of the news keyword recognition assistant. The user can input the subscription strategy control 2271 and / or the repetition mode control 2272 in the subscription setting prompt box 227 to formulate a subscription strategy and repetition mode. Figure 2FAs shown, the subscription strategy can be a scheduled push, such as a push at 12 o'clock, and the repetition method can be every Monday to every Friday, that is, the second information corresponding to the keyword "sports meeting" is pushed at 12 o'clock every Monday to every Friday. Figure 2G As shown, the subscription policy can be to push the second information corresponding to the keyword "sports meeting" when the search result corresponding to the keyword "sports meeting" is updated. The second input includes the click input and the input of the setting subscription policy control 2271 and / or the repeat mode control 2272.
[0115] It should be noted that after the user has set the second information subscription strategy and / or repetition method corresponding to the keyword "sports meeting" in the subscription setting prompt box 227, Figure 2D As shown, the mobile phone displays a news information summary 225 and a comment summary 226 corresponding to the keyword "sports meeting" on the interface 22 of the news keyword recognition assistant.
[0116] In some embodiments of the present application, the second input includes a third sub-input and a fourth sub-input for subscribing to the second information; the step 104b may be implemented by the following steps 104b1 and 104b2:
[0117] Step 104b1: The electronic device displays a notification message at a target time in response to the third sub-input.
[0118] In some embodiments of the present application, the electronic device may display the above notification message in a notification bar on the screen.
[0119] In some embodiments of the present application, the third sub-input may include at least one of the following: user click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0120] For example Figure 2F and Figure 2G As shown, the subscription setting prompt box 227 also displays a push mode control 2273. The user can input the push mode control 2273 to set the push mode of the notification message, such as push in the notification bar, that is, the third sub-input also includes an input to the push mode control 2273. When the push time indicated by the subscription strategy control 2271 and the repeat mode control 2272 in the third sub-input is pushed at 12 o'clock every Monday to Friday, combined with Figure 2F ,like Figure 2H As shown, at 12 o'clock from January to Friday every week, a notification message 231 is displayed on the status bar 23 of the mobile phone screen 20, and the time on the mobile phone screen 20 is 12 o'clock on Friday.
[0121] Step 104b2: The electronic device displays second information in response to the fourth sub-input of the notification message.
[0122] In some embodiments of the present application, the fourth sub-input may include at least one of the following: user click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0123] In some embodiments of the present application, the electronic device may display the second information on the interface of the news keyword recognition assistant.
[0124] For example Figure 2H As shown, in the case where the subscription strategy is to push the second information corresponding to the keyword "sports meeting" at a fixed time, for example, to push the second information corresponding to the keyword "sports meeting" at 12 o'clock, when the user clicks on the notification message 231, combined with Figure 2H ,like Fig.2I As shown, the mobile phone can respond to the click input of the notification message 231, and the interface 22 of the news keyword recognition assistant on the screen 20 displays the news information summary 225 and the comment summary 226 corresponding to the keyword "sports meeting". At this time, the time displayed on the screen 20 is 12 o'clock. In the case where the subscription policy can be pushed when the search results corresponding to the keyword "sports meeting" are updated, when the user clicks on the notification message 231, combined with Figure 2H ,like Figure 2D As shown, the mobile phone can respond to a click input on the notification message 231, and the interface 22 of the news keyword recognition assistant on the screen 20 displays the news information summary 225 and comment summary 226 corresponding to the keyword "sports meeting". At this time, the time displayed on the screen 20 is the update time of the search result corresponding to the keyword "sports meeting", for example 8:08.
[0125] In some embodiments of the present application, the display method provided by the present application further includes the following step 104b3:
[0126] Step 104b3: When the first number reaches the first threshold, the electronic device displays a notification message if the second number reaches the second threshold.
[0127] The first number is the number of times the notification message is displayed but no user input to the notification message is detected, and the second number is the number of times the N search results are changed.
[0128] In some embodiments of the present application, the electronic device may start a first counter after displaying the notification message for the first time to record the first number.
[0129] In some embodiments of the present application, each time the electronic device displays the notification message but does not detect the user's input to the notification message, the first counter may be incremented by 1.
[0130] In some embodiments of the present application, when the count value of the first counter reaches the first threshold, that is, when the first number reaches the first threshold, the electronic device can start the second counter to record the second number.
[0131] In some embodiments of the present application, when the electronic device determines that the N search results have changed each time, the second counter may be incremented by 1.
[0132] In some embodiments of the present application, when the count value of the second counter reaches the second threshold, that is, when the second count reaches the second threshold, the electronic device can display the notification message.
[0133] In some embodiments of the present application, the display method provided in the embodiments of the present application may further include the following step 104b4 and the following step 104b5:
[0134] Step 104b4: The electronic device receives a third input of the notification message.
[0135] In some embodiments of the present application, the third input may include at least one of the following: user click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0136] In some embodiments of the present application, the third input is used to trigger the electronic device to unsubscribe from the second information.
[0137] Step 104b5: The electronic device cancels subscription to the second information in response to the third input.
[0138] In some embodiments of the present application, the electronic device may cancel displaying the notification message in response to the third input to achieve unsubscribing from the second information.
[0139] For example Figure 2H As shown, when the user slides left on the notification message 231, combined with Figure 2H ,like Figure 2J As shown, a cancel subscription control 232 is displayed in the notification bar 23. When the user clicks and inputs the cancel subscription control 232, the mobile phone can cancel the display of the notification message in response to the user's click input on the cancel subscription control 232, so as to cancel the subscription of the second information corresponding to the keyword "sports meeting". The left swipe input on the notification message 231 and the click input on the cancel subscription control 232 are the third input.
[0140] In some embodiments of the present application, the above step 102 may also be implemented through the following step 102b, and the above step 104 may also be implemented through the following step 104c:
[0141] Step 102b: In response to the first input, the electronic device displays a first interface in the first screen area and displays first information in the second screen area.
[0142] In some embodiments of the present application, the first screen area and the second screen area may be two screens of a folding screen electronic device. Alternatively, the first screen area and the second screen area may be two split screen areas of a screen of an electronic device.
[0143] In some embodiments of the present application, the electronic device may first display the first interface in full screen. After the electronic device receives the first input for the first interface displayed in full screen, the first interface may be displayed in the first screen area, the interface of the news keyword recognition assistant may be displayed in the second screen area, and the first information may be displayed in the interface of the news keyword recognition assistant.
[0144] For example, combined with Figure 2A , the user can slide left on the first interface 21 displayed in full screen on the mobile phone screen 20. Figure 2A ,like Figure 2B As shown, the mobile phone can respond to the left-slide input and display the application icon 211 of the news keyword recognition assistant on the right side of the first interface 21. The left-slide input is the first sub-input. Figure 2B As shown, when the user clicks on the application icon 211, the Figure 2B ,like Figure 2K As shown, in response to the above click input, the mobile phone can display the first interface 21 on the first screen area 20a and the interface 22 of the news keyword recognition assistant on the second screen area 20b. The interface 22 of the news keyword recognition assistant displays a prompt message box 221 for the news keyword recognition assistant to recognize the news information content and a re-recognition control 222. The prompt message box 221 is used to prompt the mobile phone's news keyword recognition assistant that the news information content of the sports meeting displayed on the first interface 21. When the news keyword recognition assistant completes the recognition, combined with the Figure 2K ,like Figure 2L As shown, the mobile phone can display an information summary 223 of the news information content of the sports meeting and at least one keyword 224 on the interface 22 of the news keyword recognition assistant, and the above-mentioned click input is the above-mentioned second sub-input.
[0145] Step 104c: In response to the second input, the electronic device updates the first information displayed in the second screen area to the second information, and displays N entry logos in the second screen area.
[0146] In some embodiments of the present application, the electronic device may update the first information displayed on the interface of the news keyword recognition assistant in the second screen area to the second information, and display N entry logos in the second screen area.
[0147] In some embodiments of the present application, an entry identifier is used to indicate an entry of a search result among the N search results.
[0148] In some embodiments of the present application, the electronic device may display the N entrance signs mentioned above in the form of cards respectively.
[0149] In some embodiments of the present application, the electronic device may display the second information and the N entry logos in different sub-areas of the second screen area in response to the second input, for example, displaying the first information on the upper side of the second screen area and displaying the N entry logos on the lower side of the second screen area.
[0150] For example Figure 2M As shown, the mobile phone can respond to the user's long press input of the "sports meeting" keyword and display the interface 22 of the news keyword recognition assistant in the second screen area 20b. The upper side of the interface 22 of the news keyword recognition assistant displays the news information summary 225 and the comment summary 226 corresponding to the "sports meeting" keyword, and the lower side of the interface 22 of the news keyword recognition assistant displays the entry mark 229 and the entry mark 230.
[0151] For example Figure 2L As shown, when the user long presses the "sports meeting" keyword on the interface 22 of the news keyword recognition assistant displayed on the second screen area 20b, combined with Figure 2L ,like Figure 2M As shown, the mobile phone can respond to the above-mentioned long press input by updating the information summary 223 of the news information content 211 of the sports meeting and at least one keyword 224 displayed on the interface 22 of the news keyword recognition assistant on the second screen area 20b to a news information summary 225 and a comment summary 226 corresponding to the keyword "sports meeting", and display the news information summary 225 and the comment summary 226 corresponding to the keyword "sports meeting" on the upper side of the interface 22 of the news keyword recognition assistant, and display the entry mark 229 and the entry mark 230 on the lower side of the interface 22 of the news keyword recognition assistant.
[0152] In this way, the user can trigger the electronic device to display the first interface in the first screen area and the first information in the second screen area by responding to the first input on the electronic device, so that the user can view the first interface and the first information at the same time, thereby improving the efficiency of the electronic device in displaying news information and the convenience of operation.
[0153] In some embodiments of the present application, the display method provided in the embodiments of the present application may further include the following steps 106a to 106c:
[0154] Step 106a: The electronic device receives a fourth input to a switch control on the first interface.
[0155] In some implementations of the present application, the fourth input may include at least one of the following: user click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0156] In some embodiments of the present application, the above-mentioned switching control is used to trigger the electronic device to switch the news information content.
[0157] Step 106b: The electronic device updates the content of the first interface in response to the fourth input.
[0158] In some embodiments of the present application, the electronic device may update the content of the first interface on the first screen area in response to the fourth input.
[0159] In some embodiments of the present application, the content of the updated first interface may be information content on the interface of a second news information application on the electronic device, or may be other information content on the interface of the first news information application. The second news information application may be other news information applications on the electronic device except the first news information application.
[0160] Step 106c: The electronic device updates the first information displayed in the second screen area based on the updated content of the first interface.
[0161] In some embodiments of the present application, the updated first information may be an information summary and at least one keyword corresponding to the content of the updated first interface.
[0162] For example Figure 2L As shown, the first interface 21 displayed on the first screen area 20a may also include a switching control 213. When the user presses the switching control 213, the Figure 2L ,like Figure 2NAs shown, in response to the above-mentioned pressing input, the mobile phone can update the content on the first interface of the first screen area 20a from the news information content 211 of the sports meeting to the news information content 214 of diplomacy. Further, the mobile phone can update the first information displayed in the second screen area 20b from the information summary 223 and at least one keyword 224 of the news information content 211 of the sports meeting to the information summary 227 and at least one keyword 228 of the news information content 214 of entertainment news, and the pressing input of the switching control 213 is the above-mentioned fourth input.
[0163] In this way, the user can trigger the electronic device to quickly update the content of the first interface by operating the switch control on the first interface, thereby improving the efficiency of the electronic device in displaying news information and the convenience of operation.
[0164] In some embodiments of the present application, the display method provided in the embodiments of the present application may further include the following step 107a and the following step 107b:
[0165] Step 107a: The electronic device receives a fifth input of a target entry identifier.
[0166] In some embodiments of the present application, the target entry identifier is any one of the at least one entry identifier.
[0167] In some implementations of the present application, the fifth input may include at least one of the following: user click input, sliding input, pressing input, voice input, gesture input, or other feasible input, which is not limited in the embodiments of the present application.
[0168] Step 107b: In response to the fifth input, the electronic device updates the first interface displayed in the first screen area to the search result corresponding to the target entry identifier.
[0169] In some embodiments of the present application, the search result corresponding to the target entry identifier may be an information search result.
[0170] In some embodiments of the present application, the search result corresponding to the target entry identifier may be an information search result of searching in a third news information application on the electronic device, or may be an information search result of searching in a first news information application on the electronic device. The third news information application may be a news information application other than the first news information application in the news information application on the electronic device.
[0171] For example Figure 2M As shown, when the user presses the entry mark 229, combined with Figure 2M ,like Fig.2OAs shown, the mobile phone can update the first interface 21 displayed in the first screen area 20a to the search result 215 corresponding to the entry mark 229.
[0172] In this way, the electronic device displays N entry logos in the second screen area, so that the user's operation on the target entry logo can trigger the electronic device to quickly display the search results corresponding to the target entry logo, thereby improving the efficiency of the electronic device in displaying news information and the convenience of operation.
[0173] The following takes the electronic device as a mobile phone as an example, and combines with Embodiment 1 to further describe the display method provided by the present application. Figure 7 As shown, the display method of the first embodiment includes the following steps 701 to 706:
[0174] Step 701: The mobile phone starts the news keyword recognition assistant.
[0175] For example, when the screen of the mobile phone displays a specific application interface (ie, the first interface), Figure 2A As shown in FIG. 1 , for example, on a news details page of a browser, a user can slide a finger from the edge of the screen to the center of the screen to the left. In response to the left slide operation, the mobile phone can wake up a sidebar containing a news keyword recognition assistant, such as Figure 2B As shown in FIG. 1 , the icon of the news keyword recognition assistant is displayed on the side of the current application interface. After the user clicks the icon of the keyword recognition assistant, the mobile phone can respond to the click operation and display the following Figure 2C News keyword recognition assistant interface.
[0176] Step 702: The mobile phone obtains the screen text of the current interface.
[0177] For example, when the mobile phone starts the news keyword recognition assistant, it will take a screenshot of the current interface to obtain a news screenshot. When taking a screenshot, the mobile phone will adaptively remove the redundant information in the mobile phone status bar and the application according to the device model of the mobile phone and the application where the current interface is located. After taking the screenshot, the mobile phone can call OCR technology to recognize the text information in the news screenshot and convert it into text.
[0178] Step 703: The mobile phone extracts the first information from the screen text through the information extraction model.
[0179] Exemplarily, the first information includes keywords and content summaries. Existing keyword entity extraction technologies are often matched based on thesaurus or NER technology (named entity recognition refers to the special identification of entities of specific meaningful predefined categories, such as names of people, places, company names, etc.), but the content that users see in online texts may be a hot event. At this time, traditional keyword technology cannot achieve keyword and content summarization from hot events. This patent trains a large information extraction model, and based on the information extraction model's prior knowledge of the world and the contextual understanding of the text, it realizes flexible and accurate content summarization and keyword extraction of news information. Exemplarily, the mobile phone uses the information extraction large model to perform content summarization and keyword extraction, which can be specifically implemented through the following steps 7031 to 7036:
[0180] Step 7031, the mobile phone collects news related data.
[0181] For example, a mobile phone can collect news content and other information from multiple online news websites and self-media platforms by crawling or calling interfaces.
[0182] Step 7032: The mobile phone performs data cleaning.
[0183] For example, the mobile phone can clean the text in the collected news-related data, remove the web page tags, obtain the main text content, and then remove special characters, format errors, advertisements and other noises.
[0184] Step 7033: The mobile phone performs keyword summarization and content summary on the cleaned news data.
[0185] For example, the mobile phone can make a one-sentence summary of the news content and extract relevant keywords.
[0186] Step 7034, the mobile phone fine-tunes the data set for constructing the information extraction model.
[0187] Exemplarily, the mobile phone can convert the cleaned and annotated data into a structured format to construct a data set suitable for model fine-tuning, including model input (Input) and expected model output (Target).
[0188] The input consists of two parts: task description and news text content. The task description is used to determine the specific task objectives and indicate the specific tasks that users need the model to complete.
[0189] Target is the expected model output, presented in a structured JSON format, so that the output data can be parsed directly.
[0190] The cleaned and annotated data are combined with the prompt word template to generate a structured data set.
[0191] Step 7035: The mobile phone trains an information extraction model.
[0192] This step uses the preset large model as the basic model. In order to avoid a large difference in the distribution of training data between this training and the basic model, resulting in catastrophic forgetting, the data set constructed in step 7034 is mixed with the general data for training to obtain a trained information extraction model.
[0193] Step 7036: The mobile phone uses the trained information extraction model for inference and outputs the content summary and keywords of the current interface.
[0194] For example, the mobile phone can perform model inference based on the trained information extraction model, use the information extraction model to summarize the text content and extract popular keywords, and output the summary and hot spots of the current interface according to the defined output format.
[0195] The page display effect is as follows Figure 2D If the user long presses a keyword in at least one keyword 224, that is, the user does not need to subscribe to the news hotspot and only wants to view the latest news event progress, the mobile phone executes step 705; if the user clicks a keyword in at least one keyword 224, the mobile phone executes step 704 to subscribe to and push the news information corresponding to the keyword.
[0196] Step 704: Subscribe to the news information push notification on your mobile phone.
[0197] For example, the mobile phone can track the information corresponding to the keyword in response to the user clicking on a keyword in at least one keyword 224. After subscribing, a setting page will pop up, and you can select "specified time" or "update" to push the latest progress of the information corresponding to the current keyword to the notification bar.
[0198] If a specified time push is selected, the user can set the subscription push time and repetition strategy on the setting page. The repetition strategy refers to the days from Monday to Sunday when the user wants to receive notifications. The background program will actively execute step 705 according to the time set by the user to collect relevant hot events and generate a summary.
[0199] If you choose to push when there is an update, the background program will monitor the current keyword hotspot in real time to see if there is a new related event update. When an update is detected, it will be pushed to the notification bar and record whether the user clicks on the push of the keyword hotspot to adjust the Do Not Disturb strategy. The Do Not Disturb strategy will intelligently adjust the timing of notifications based on the user's clicks and Do Not Disturb level. If the user does not click on the push event twice in a row, the subsequent notifications will be pushed after multiple hot event updates have been detected cumulatively.
[0200] After the subscription is set and stored, it will return to the assistant page and automatically execute step 705 to immediately query the latest developments of the hot events corresponding to the current keyword and generate a summary. Fig.2I shown.
[0201] When the user clicks on the notification message, the user will enter the news keyword recognition assistant and display the processing result of step 705. The interface effect is as follows Figure 2H shown.
[0202] If the user no longer wants to subscribe to the hot event, he can unsubscribe by swiping the notification bar to the left.
[0203] Step 705: The mobile phone aggregates the relevant hot spot information and generates a summary.
[0204] When users want to obtain the latest developments of the corresponding keyword hot spots, they often enter the keywords into news applications, self-media platforms or search engines to retrieve relevant articles. However, the hot information on the Internet is numerous and messy, and users cannot obtain information conveniently and comprehensively. This step automatically collects relevant event content and comments on the Internet through keywords, and outputs a summary after summarizing. Users can obtain the latest developments of the current hot spots and the views of network users on the news hot spots in a short time by reading the summary content, avoiding the tedious operations of users retrieving relevant information, reading and identifying article content, and reducing the cost of users obtaining information.
[0205] Exemplarily, step 705 may be implemented by the following step 7051 and the following step 7052:
[0206] Step 7051: The mobile phone collects relevant hot events.
[0207] Exemplarily, the mobile phone can automatically retrieve relevant hot event content and comment information based on the keywords in step 703 through web crawler technology or application programming interface (API), and filter out the TOP5 news and corresponding comment data based on timeliness, click-through data, etc., and filter the comment data for harmfulness.
[0208] Step 7052: The mobile phone generates a summary.
[0209] For example, the mobile phone can take the keyword clicked by the current user, the current news page content, and the 5 related news and comment data corresponding to the current entity word searched as input, and let the big model generate a summary based on these contents. The prompt word template includes role, background, profile, goals, constraints, workflow, and examples.
[0210] Role means assigning a domain expert role to the big model, so that the big model can focus more on answering questions in that field.
[0211] Background means describing the current background information in detail to the big model so that the big model can make better answers based on the information.
[0212] Profile represents the information description of the current prompt word, including author, iteration version, language, description, etc., which is convenient for recording relevant information.
[0213] Goals are used to clearly define how the big model should be handled and list the overall process in detail, so that the big model can focus more on the problem.
[0214] Constraints are essentially output rules that specify the requirements for the big model's answers, including format, tone, professionalism, etc.
[0215] Workflows represent the way to communicate with the big model, how to receive information, what method to use to output content, and whether any additional information is needed.
[0216] Examples are the cases you provide to the big model to help the big model generate better results.
[0217] Through the command prompt, we only need to fill in the corresponding fields with the keywords and news events in step 703, and the related news and comments in step 7041 according to the format of Examples in the prompt. The information extraction model will analyze according to the workflow and output the summary of news information and comments in Json format.
[0218] Step 706: The mobile phone exits the news keyword recognition assistant.
[0219] After the user performs the exit operation, the mobile phone can return to the originally browsed page without interrupting the user's browsing experience.
[0220] The display method provided in the first embodiment of the present application, by combining the intelligent recognition capability of the information extraction model, can identify the keywords of hot events in the news when the user is reading the news, automatically aggregate the latest developments of the hot events, and generate information summaries and comment summaries. At the same time, the subscription method can make it more convenient and quick for users to obtain information, eliminating the tedious operations of searching, reading, and identifying from various applications, thereby improving the user experience and saving user time.
[0221] The following takes the electronic device as a folding screen mobile phone as an example, and combines the second embodiment to further explain the display method provided by the present application. Figure 8As shown, the display method of the second embodiment includes the following steps 801 to 808:
[0222] Step 801: The mobile phone starts the news keyword recognition assistant.
[0223] Step 802: The mobile phone obtains the screen text of the current interface.
[0224] It should be noted that the implementation process of the above steps 801 and 802 can refer to the above steps 701 to 702. To avoid repetition, this embodiment will not be repeated here.
[0225] Step 803: The mobile phone extracts the first information from the screen text through the information extraction model.
[0226] This step also achieves flexible and accurate content summarization and keyword extraction of news information by training the information extraction model based on the model's prior knowledge of the world and the contextual understanding of the text. The specific steps are the same as step 703 in Example 1. The interface effect is as follows Figure 2L shown.
[0227] Step 804: The mobile phone switches the news page content.
[0228] For example, when the mobile phone starts the news keyword recognition assistant, it will record the link addresses of the five news pages in the forward link address of the current interface after the current one. If the user is not interested in the current news content, he can click Figure 2L The switch control 213 of the first screen area 20a automatically refreshes the first screen area 20a to the next news content, and the right screen automatically executes screen text acquisition, keyword entity extraction and content summary according to steps 802 and 803.
[0229] Step 805: Subscribe to the news information push notification on your mobile phone.
[0230] Step 806: The mobile phone aggregates the relevant hot spot information and generates a summary.
[0231] It should be noted that the implementation process of the above steps 805 and 806 can refer to the above steps 704 to 704. To avoid repetition, this embodiment will not be repeated here.
[0232] Step 807: The mobile phone jumps to the original page of the relevant news.
[0233] For example, by clicking on the original news content card in step 806 (i.e., the above-mentioned target entry mark), the left screen will be refreshed to the original news page clicked by the user (i.e., the search result corresponding to the target entry mark). Based on the dual-screen display advantage of the folding screen, the latest relevant news content of the current hot spot and the corresponding aggregated information summary can be obtained at the same time without interrupting the user's browsing.
[0234] Step 808: The mobile phone exits the news keyword recognition assistant.
[0235] Exemplarily, after the user performs an exit operation, the mobile phone can restore the interface to full-screen mode.
[0236] The display method provided in the second embodiment of the present application is not only based on the first embodiment, but also combines the intelligent recognition capability of the information extraction model to identify the keywords of hot events in the news, automatically aggregate the latest developments of hot events in a subscription push manner, and generate information summaries and comment summaries. At the same time, based on the dual-screen advantage of the folding screen, the experience of content display and news article reading has been further improved.
[0237] It should be noted that the specific implementation process of the above-mentioned step display method can refer to the relevant description of the above-mentioned embodiment. To avoid repetition, this embodiment will not be repeated here.
[0238] It should be noted that the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not impose any restrictions on this.
[0239] The display method provided in the embodiment of the present application can be executed by a display device. In the embodiment of the present application, the display method is executed by a display device as an example to illustrate the display device provided in the embodiment of the present application.
[0240] Fig. 9 is a schematic diagram of the structure of a display device 900 provided in an embodiment of the present application. The display device 900 includes: a receiving module 901 and a display module 902 .
[0241] The receiving module 901 is used to receive a first input to the first interface;
[0242] A display module 902, configured to display first information in response to the first input, where the first information is generated according to the content of the first interface, and the first information includes at least one keyword;
[0243] The receiving module 901 is further configured to receive a second input of the target keyword;
[0244] The display module 902 is further configured to display second information in response to the second input, where the second information is generated based on N search results of the target keyword, where the target keyword is a keyword in the at least one keyword, and N is a positive integer.
[0245] In some embodiments of the present application, the display module 902 is specifically used for:
[0246] In response to the first input, an information extraction model is used to identify the content of the first interface, obtain the first information, and display the first information.
[0247] In some embodiments of the present application, the display module 902 is specifically used for:
[0248] In response to the second input, searching based on the target keyword to obtain N search results;
[0249] The N search results are summarized using an information extraction model to obtain the second information, and the second information is displayed.
[0250] In some embodiments of the present application, the display module 902 is specifically used for:
[0251] Based on the target keyword search, M search results are obtained, where M is a positive integer;
[0252] Calculate a weighted value for each of the M search results, where one weighted value is a weighted value of the publishing time, reading volume, and comment volume of a search result;
[0253] Arrange the M search results in descending order according to the weight values to obtain a search result sequence;
[0254] The first N search results in the search result sequence are determined as the N search results.
[0255] In some embodiments of the present application, the display module 902 is specifically used for:
[0256] In response to the second input, second information is displayed at a target time, where the target time is a preset time set by the second input or a first time, where the first time is a time when the search result of the target keyword changes.
[0257] In some embodiments of the present application, the second input includes a third sub-input and a fourth sub-input including subscribing to the second information;
[0258] The display module 902 is specifically used for:
[0259] In response to the third sub-input, displaying a notification message at a target time;
[0260] In response to a fourth sub-input to the notification message, the second information is displayed.
[0261] In some embodiments of the present application, the receiving module 901 is further configured to receive a third input of the notification message;
[0262] The display module 902 is further configured to cancel the subscription to the second information in response to the third input.
[0263] In some embodiments of the present application, the display module 902 is specifically used for:
[0264] In response to the first input, displaying the first interface in a first screen area and displaying the first information in a second screen area;
[0265] In response to the second input, the first information displayed in the second screen area is updated to the second information, and an entry identifier is used to indicate an entry of one of the N search results.
[0266] In some embodiments of the present application, the receiving module 901 is further configured to receive a fifth input of a target entrance identifier after N entrance identifiers are displayed in the second screen area;
[0267] In response to the fifth input, the first interface displayed in the first screen area is updated to the search result corresponding to the target entry identifier.
[0268] In some embodiments of the present application, the first interface is an interface of a first application, and the first input includes a first sub-input and a second sub-input;
[0269] The display module 902 is specifically used for:
[0270] In response to the first sub-input, displaying an identifier of a second application on the first interface;
[0271] In response to a second sub-input of the identifier, the first information is displayed on an interface of the second application.
[0272] In the display device provided in the embodiment of the present application, the display device receives a first input to a first interface; in response to the first input, displays first information, the first information is generated according to the content of the first interface, and the first information includes at least one keyword; receives a second input to a target keyword; in response to the second input, displays second information, the second information is generated according to N search results of the target keyword, the target keyword is a keyword in at least one keyword, and N is a positive integer. In this way, the user only needs to input the first input to the first interface to trigger the display device to display the keyword, and the user only needs to input the keyword to view the information corresponding to the keyword. Therefore, the user does not need to read through the content of the first interface and manually input the keyword to view the information corresponding to the keyword, thereby improving the convenience and efficiency of the electronic device in searching for news and information content.
[0273] The display device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device, an augmented reality / virtual reality device, a robot, a wearable device, a super mobile personal computer, a netbook or a personal digital assistant, etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0274] The display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0275] The display device provided in the embodiment of the present application can implement each process implemented by each embodiment of the above-mentioned display method, and will not be described again here to avoid repetition.
[0276] Alternatively, if Fig.10 As shown, an embodiment of the present application also provides an electronic device 1000, including a processor 1001 and a memory 1002, wherein the memory 1002 stores programs or instructions that can be executed on the processor 1001, and when the program or instructions are executed by the processor 1001, the various steps of the above-mentioned display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0277] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0278] Fig.11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0279] The electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, and a processor 1110 and other components.
[0280] Those skilled in the art will appreciate that the electronic device 1100 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.11 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0281] The user input unit 1107 is used to receive a first input to the first interface;
[0282] A display unit 1106, configured to display first information in response to the first input, where the first information is generated according to the content of the first interface, and the first information includes at least one keyword;
[0283] A user input unit 1107, used to receive a second input of a target keyword;
[0284] The display unit 1106 is used to display second information in response to the second input, where the second information is generated based on N search results of the target keyword, where the target keyword is a keyword in the at least one keyword, and N is a positive integer.
[0285] In some embodiments of the present application, the processor 1110 is configured to, in response to the first input, identify the content of the first interface using an information extraction model to obtain the first information;
[0286] The display unit is used to display the first information.
[0287] In some embodiments of the present application, the display processor 1110 is configured to obtain N search results based on the target keyword in response to the second input;
[0288] The display unit is used to summarize the N search results using an information extraction model to obtain the second information and display the second information.
[0289] In some embodiments of the present application, the processor 1110 is specifically configured to: obtain M search results based on the target keyword, where M is a positive integer;
[0290] Calculate a weighted value for each of the M search results, where one weighted value is a weighted value of the publishing time, reading volume, and comment volume of a search result;
[0291] Arrange the M search results in descending order according to the weight values to obtain a search result sequence;
[0292] The first N search results in the search result sequence are determined as the N search results.
[0293] In some embodiments of the present application, the display unit 1106 is specifically used to:
[0294] In response to the second input, second information is displayed at a target time, where the target time is a preset time set by the second input or a first time, where the first time is a time when the search result of the target keyword changes.
[0295] In some embodiments of the present application, the second input includes a third sub-input and a fourth sub-input including subscribing to the second information;
[0296] The display unit 1106 is specifically used for:
[0297] In response to the third sub-input, displaying a notification message at a target time;
[0298] In response to a fourth sub-input to the notification message, the second information is displayed.
[0299] In some embodiments of the present application, the user input unit 1107 is used to receive a third input of the notification message;
[0300] The processor 1110 is configured to cancel subscription to the second information in response to the third input.
[0301] In some embodiments of the present application, the display unit 1106 is specifically used to:
[0302] In response to the first input, displaying the first interface in a first screen area and displaying the first information in a second screen area;
[0303] In response to the second input, the first information displayed in the second screen area is updated to the second information, and N entry identifiers are displayed in the second screen area, where one entry identifier is used to indicate an entry of one of the N search results.
[0304] In some embodiments of the present application, the user input unit 1107 is further configured to receive a fifth input of a target entrance identifier after the N entrance identifiers are displayed in the second screen area, the target entrance identifier being any one of the N entrance identifiers;
[0305] The display unit 1106 is further configured to update the first interface displayed in the first screen area to a search result corresponding to the target entry identifier in response to the fifth input.
[0306] In some embodiments of the present application, the first interface is an interface of a first application, and the first input includes a first sub-input and a second sub-input;
[0307] The display unit 1106 is specifically used for:
[0308] In response to the first sub-input, displaying an identifier of a second application on the first interface;
[0309] In response to a second sub-input of the identifier, the first information is displayed on an interface of the second application.
[0310] In the electronic device provided in the present application, the electronic device receives a first input to a first interface; in response to the first input, displays first information, the first information is generated according to the content of the first interface, and the first information includes at least one keyword; receives a second input to a target keyword; in response to the second input, displays second information, the second information is generated according to N search results of the target keyword, the target keyword is a keyword in at least one keyword, and N is a positive integer. In this way, the user only needs to make a first input to the first interface to trigger the electronic device to display the keyword, and the user only needs to enter the keyword to view the information corresponding to the keyword. Therefore, the user does not need to read through the content of the first interface and manually enter the keyword to view the information corresponding to the keyword, thereby improving the convenience and efficiency of the electronic device in searching for news and information content.
[0311] It should be understood that in the embodiment of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1107 includes a touch panel 11071 and at least one of other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 may include two parts: a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0312] The memory 1109 can be used to store software programs and various data. The memory 1109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1109 may include a volatile memory or a non-volatile memory, or the memory 1109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0313] The processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1110.
[0314] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0315] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0316] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0317] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0318] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0319] It should be noted that, in this article, the term "comprises", "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0320] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0321] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A display method, characterized in that: The method comprises: Receiving a first input to a first interface; In response to the first input, displaying first information, where the first information is generated according to the content of the first interface, and the first information includes at least one keyword; receiving a second input of a target keyword; In response to the second input, second information is displayed, where the second information is generated based on N search results of the target keyword, where the target keyword is a keyword in the at least one keyword, and N is a positive integer.
2. The method according to claim 1, characterized in that The step of displaying first information in response to the first input includes: In response to the first input, an information extraction model is used to identify the content of the first interface, obtain the first information, and display the first information.
3. The method according to claim 1, characterized in that The step of displaying second information in response to the second input comprises: In response to the second input, searching based on the target keyword to obtain N search results; The N search results are summarized using an information extraction model to obtain the second information, and the second information is displayed.
4. The method according to claim 3, characterized in that The N search results obtained based on the target keyword search include: Based on the target keyword search, M search results are obtained, where M is a positive integer; Calculate a weighted value for each of the M search results, where one weighted value is a weighted value of the publishing time, reading volume, and comment volume of a search result; Arrange the M search results in descending order according to the weight values to obtain a search result sequence; The first N search results in the search result sequence are determined as the N search results.
5. The method according to claim 1, characterized in that The step of displaying second information in response to the second input comprises: In response to the second input, second information is displayed at a target time, where the target time is a preset time set by the second input or a first time, where the first time is a time when the search result of the target keyword changes.
6. The method according to claim 5, characterized in that The second input includes a third sub-input and a fourth sub-input for subscribing to the second information; The step of displaying second information at a target time in response to the second input includes: In response to the third sub-input, displaying a notification message at a target time; In response to a fourth sub-input to the notification message, the second information is displayed.
7. The method according to claim 6, characterized in that The method further comprises: receiving a third input of the notification message; In response to the third input, unsubscribing from the second information.
8. The method according to claim 1, wherein in response to the first input, displaying first information comprises: In response to the first input, displaying the first interface in a first screen area and displaying the first information in a second screen area; The step of displaying second information in response to the second input comprises: In response to the second input, the first information displayed in the second screen area is updated to the second information, and N entry identifiers are displayed in the second screen area, where one entry identifier is used to indicate an entry of one of the N search results.
9. The method according to claim 8, characterized in that After the N entrance logos are displayed in the second screen area, the method further includes: receiving a fifth input of a target entry identifier, wherein the target entry identifier is any one of the N entry identifiers; In response to the fifth input, the first interface displayed in the first screen area is updated to the search result corresponding to the target entry identifier.
10. The method according to claim 1, characterized in that The first interface is an interface of a first application, and the first input includes a first sub-input and a second sub-input; The step of displaying first information in response to the first input includes: In response to the first sub-input, displaying an identifier of a second application on the first interface; In response to a second sub-input of the identifier, the first information is displayed on an interface of the second application.
11. A display device, characterized in that: The device comprises: A receiving module, used for receiving a first input to a first interface; A display module, configured to display first information in response to the first input, wherein the first information is generated according to the content of the first interface, and the first information includes at least one keyword; The receiving module is further used to receive a second input of the target keyword; The display module is further used to display second information in response to the second input, where the second information is generated based on N search results of the target keyword, where the target keyword is a keyword in the at least one keyword, and N is a positive integer.
12. The device according to claim 11, characterized in that The display module is specifically used for: In response to the first input, an information extraction model is used to identify the content of the first interface, obtain the first information, and display the first information.
13. The device according to claim 11, characterized in that The display module is specifically used for: In response to the second input, searching based on the target keyword to obtain N search results; The N search results are summarized using an information extraction model to obtain the second information, and the second information is displayed.
14. The device according to claim 13, characterized in that The display module is specifically used to: obtain M search results based on the target keyword, where M is a positive integer; Calculate a weighted value for each of the M search results, where one weighted value is a weighted value of the publishing time, reading volume, and comment volume of a search result; Arrange the M search results in descending order according to the weight values to obtain a search result sequence; The first N search results in the search result sequence are determined as the N search results.
15. The device according to claim 11, wherein the display module is specifically used for: In response to the first input, displaying the first interface in a first screen area and displaying the first information in a second screen area; In response to the second input, the first information displayed in the second screen area is updated to the second information, and an entry identifier is used to indicate an entry of one of the N search results.
16. The device according to claim 15, characterized in that The receiving module is further configured to receive a fifth input of a target entrance identifier after the N entrance identifiers are displayed in the second screen area; In response to the fifth input, the first interface displayed in the first screen area is updated to the search result corresponding to the target entry identifier.
17. The device according to claim 11, characterized in that The first interface is an interface of a first application, and the first input includes a first sub-input and a second sub-input; The display module is specifically used for: In response to the first sub-input, displaying an identifier of a second application on the first interface; In response to a second sub-input of the identifier, the first information is displayed on an interface of the second application.
18. An electronic device, characterized in that: The device comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the display method according to any one of claims 1 to 10 are implemented.
19. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the steps of the display method according to any one of claims 1 to 10 are implemented.
Citation Information
Cited By
Information processing method and device, electronic equipment and computer readable storage medium
CN120586403A