Information display method, device, electronic device and storage medium
By receiving the target search terms on the electronic device and displaying the preview information of the historical browsing pages, the tedious problem of finding the historical browsing pages is solved, and the functions of rapid positioning and backtracking are realized.
Patent Information
- Application Number
- CN202011186962.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-30
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-10-30
AI Technical Summary
When searching for historical browsing pages, users need to open and view the pages one by one, which makes the process cumbersome and lacks a quick way to trace back.
By receiving the user's target search word input, it displays preview information corresponding to historical browsing pages, including key information and thumbnails, allowing users to quickly locate and open related pages based on the preview information.
It simplifies the process of users searching for historical browsing pages, provides a fast and effective way to trace back historical browsing pages, and reduces the complexity of user operations.
Smart Images

Figure CN112307365B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic devices, and specifically relates to an information display method, device, electronic device and storage medium. Background Art
[0002] With the development of Internet technology and mobile communication network technology, users can browse information on the Internet using electronic devices anytime and anywhere.
[0003] In some scenarios, users often need to view previously browsed pages. In related technologies, users are required to open historical browsing pages according to historical browsing records and view the content of the historical browsing pages to find the previously browsed pages.
[0004] However, since the user needs to open the historical browsing pages one by one and view the contents of the historical browsing pages one by one, the process of searching the historical browsing pages is relatively cumbersome. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide an information display method, device, electronic device and storage medium, which can solve the problem that the process of searching for historical browsing pages is relatively cumbersome.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides an information display method, which is applied to an electronic device, and the method includes:
[0008] receiving a first input from a user, where the first input is used to input a target search term or to input a portion of the target search term;
[0009] In response to the first input, display at least one preview information;
[0010] Among them, the at least one preview information corresponds one-to-one to at least one historical browsing page, and each of the preview information includes at least one of the following items: key information in the historical browsing page and a thumbnail of the historical browsing page, each of the historical browsing pages is a page that has been browsed by the user, and the at least one historical browsing page includes the first historical browsing page with the target search term.
[0011] In a second aspect, an embodiment of the present application provides an information display device, which is applied to an electronic device, and the device includes:
[0012] A first receiving module, configured to receive a first input from a user, wherein the first input is used to input a target search term or to input a portion of the target search term;
[0013] A first display module, configured to display at least one preview information in response to the first input;
[0014] Among them, the at least one preview information corresponds one-to-one to at least one historical browsing page, and each of the preview information includes at least one of the following items: key information in the historical browsing page and a thumbnail of the historical browsing page, each of the historical browsing pages is a page that has been browsed by the user, and the at least one historical browsing page includes the first historical browsing page with the target search term.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0016] 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 method described in the first aspect are implemented.
[0017] 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 method described in the first aspect.
[0018] In an embodiment of the present application, when a first input of a target search term or a portion of the target search term is received, indicating that the user wants to view the historical browsing pages related to the target search term that the user has browsed, at least one preview information corresponding to at least one historical browsing page is displayed. Since the preview information includes at least one of the following: key information in the historical browsing page and a thumbnail of the historical browsing page, the user can view the content summary of the historical browsing page related to the target search term according to the preview information, and then can select the preview information to open the corresponding historical browsing page. As a result, the user does not need to open the historical browsing pages one by one, nor does he need to view the content of the historical browsing pages one by one, thereby simplifying the process of the user finding the historical browsing pages and providing the user with a quick and effective way to trace back the historical browsing pages. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a flowchart of an information display method according to an embodiment of the present application;
[0020] Figure 2 is a schematic diagram of a search interface of a history browsing page of an embodiment provided by the present application;
[0021] Figure 3is a schematic diagram of a search result interface of an embodiment provided by the present application;
[0022] Figure 4 is a flowchart of an information display method according to another embodiment of the present application;
[0023] Figure 5 is a schematic diagram of an electronic device screen according to an embodiment of the present application;
[0024] Figure 6 is a schematic diagram of a first history browsing page of an embodiment provided by the present application;
[0025] Figure 7 is a flowchart of an information display method according to another embodiment of the present application;
[0026] Figure 8 is a schematic diagram of a search interface of a history browsing page of an embodiment provided by the present application;
[0027] Fig. 9 is a schematic diagram of an interface displaying page content according to an embodiment of the present application;
[0028] Fig.10 is a flowchart of an information display method according to another embodiment of the present application;
[0029] Fig.11 is a schematic diagram of keyword distribution locations of an embodiment provided by the present application;
[0030] Fig.12 is a structural schematic diagram of an information display device according to an embodiment of the present application;
[0031] Fig.13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] 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 data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0034] The information display method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0035] Figure 1 FIG. 1 is a flow chart of an information display method according to an embodiment of the present application. The information display method can be applied to electronic devices. Figure 1 As shown, the information display method includes:
[0036] Step 102: receiving a first input from a user, where the first input is used to input a target search term or to input a portion of the target search term;
[0037] Step 104: In response to the first input, at least one preview information is displayed; wherein, at least one preview information corresponds one-to-one to at least one historical browsing page, and each preview information includes at least one of the following: key information in the historical browsing page and a thumbnail of the historical browsing page, each historical browsing page is a page that has been browsed by the user, and at least one historical browsing page includes a first historical browsing page with a target search term.
[0038] The above-mentioned step 102 and step 104 are described below.
[0039] In step 102, the first input may include at least one of the following: voice input and touch input. The touch input may include at least one of click input, double-click input, and long press input. As an example, step 102 may include: receiving a first input to a search control when a target search term input by a user is received.
[0040] The first input may be used to input a target search word, or the first input may be used to input a portion of the target search word, at least one search word is displayed, and then the user selects the target search word from the at least one search word.
[0041] As an example, the historical browsing page may include at least one of a historical browsing web page of a browser and a historical browsing page of an application (such as an instant messaging application, a news application).
[0042] In step 104, the key information in a historical browsing page may include at least one of the following: title information of the historical browsing page and at least one keyword of the historical browsing page.
[0043] The above steps 102 and 104 are described below by using an example.
[0044] Figure 2 FIG. 1 is a schematic diagram of a search interface for a history browsing page of an embodiment provided by the present application. Figure 2 As shown, the search interface includes a search input box, and the search input box is used to receive a target search term input by a user.
[0045] After the user enters the target search term, multiple historical browsing pages are obtained according to the target search term and displayed as follows Figure 3 The search result interface shown includes preview information of multiple historical browsing pages. The preview information of multiple historical browsing pages can be displayed by sliding left and right.
[0046] As an example, the first historical browsing page included in the at least one historical browsing page satisfies the following condition: the association parameter value of the target search term in the first historical browsing page is greater than a predetermined threshold. The association parameter value is used to characterize the degree of association between the term and the first historical browsing page.
[0047] In the embodiment of the present application, since the preview information includes at least one of the following: key information in the historical browsing page and a thumbnail of the historical browsing page, the user can view the content summary of the historical browsing page related to the target search term according to the preview information, and then select the preview information to open the corresponding historical browsing page. As a result, the user does not need to open the historical browsing pages one by one, nor does he need to view the content of the historical browsing pages one by one, thereby simplifying the process of the user searching for the historical browsing pages and providing the user with a quick and effective way to trace back the historical browsing pages.
[0048] In one or more embodiments of the present application, when the number of the first historical browsing pages is M, where M is an integer greater than 1, before displaying at least one preview information, the information display method may further include:
[0049] The order of each first historical browsing page is determined according to the association parameter value between the target search term and each first historical browsing page, wherein the association parameter value is used to characterize the degree of association between the target search term and the first historical browsing page.
[0050] Displaying at least one piece of preview information may specifically include: displaying preview information corresponding to M first historical browsing pages respectively according to the order of each first historical browsing page.
[0051] Figure 4FIG. 1 is a flow chart of an information display method according to another embodiment of the present application. Figure 4 As shown, the information display method may include:
[0052] Step 202: receiving a first input from a user;
[0053] Step 204: in response to the first input, obtaining M first historical browsing pages having the target search term;
[0054] Step 206: determining the order of each first historical browsing page according to the associated parameter value of the target search term in each first historical browsing page;
[0055] Step 208: displaying preview information of each first historical browsing page according to the order of each first historical browsing page.
[0056] Since step 202 in the embodiment of the present application is Figure 1 Similar to step 102 in, step 202 will not be repeated here.
[0057] In step 204, M first historical browsing pages having the target search term may be searched among all historical browsing pages of the user.
[0058] Regarding step 206 and step 208, the following description is made by taking the historical browsing page as a web page as an example.
[0059] Assume that the M first historical browsing pages with the target search term include web page A, web page B, and web page C. When the three web pages are arranged in descending order according to the importance of the target search term in these three web pages, the arrangement results of the three web pages are: web page B, web page C, and web page A. In this case, the preview information of the three web pages is displayed in the order of the arrangement results.
[0060] In the embodiment of the present application, the order of the preview information of the M historical browsing pages is determined according to the associated parameter value of the target search term in the first historical browsing page. For example, the more important the target search term is in the first historical browsing page, the closer the preview information of the first historical browsing page can be displayed. Thus, it is convenient for the user to quickly locate the required page in the preview information of the M historical browsing pages, simplifying the search process of the historical browsing pages.
[0061] In one or more embodiments of the present application, before step 102, the information display method may further include:
[0062] For each first historical browsing page, obtain N keywords in the first historical browsing page, where N is an integer greater than 1;
[0063] For each of the N keywords, the product of the frequency of the keyword appearing in the first historical browsing page and the inverse document frequency of the keyword is calculated to obtain an association parameter value between the keyword and the first historical browsing page;
[0064] The associated parameter values of at least some of the N keywords are stored.
[0065] As an example, the first historical browsing page is divided into multiple fragments. Since the user has different interests in each fragment, the time the user's sight stays on each fragment is also different. When the user is interested in a certain fragment, the user's sight stays on the fragment for a longer time, so that the display time of the fragment is longer; when the user is not interested in the content of a certain fragment, the user's sight stays on the fragment for a shorter time, so that the display time of the fragment is shorter.
[0066] The above-mentioned N keywords may include keywords of at least one fragment content in the first historical browsing page, and the above-mentioned at least one fragment content is a fragment content that has been browsed by the user for a time period greater than a predetermined value. The above-mentioned at least one fragment content can be called valid content.
[0067] After obtaining N keywords in the first historical browsing page, the following operations are performed for each keyword: the frequency of occurrence of the keyword in the first historical browsing page (i.e., term frequency, TF) is multiplied by the inverse document frequency (inverse document frequency, IDF) of the keyword to obtain the associated parameter value of the keyword. The associated parameter value can represent the importance of the associated word in the first historical browsing page.
[0068] The following example illustrates the calculation of the associated parameter values of a word.
[0069] For example, "Civil Code" appears 2 times in the first historical browsing page, and the first historical browsing page has a total of 100 words, so the frequency of "Civil Code" in the first historical browsing page is TF = 2 / 100 = 0.02. If the number of preset pages where "Civil Code" appears is 3 among 300 preset pages, then the inverse document frequency IDF of "Civil Code" is lg(300 / 3) = 2. After determining the frequency TF and inverse document frequency IDF of "Civil Code", the associated parameter value T of "Civil Code" can be calculated as T = 0.02*2 = 0.04.
[0070] In the embodiment of the present application, since the greater the frequency of a keyword appearing in the first historical browsing page, the more important the keyword is in the first historical browsing page, the associated parameter value used to characterize the importance of the keyword in the first historical browsing page can be determined according to the frequency of the keyword appearing in the first historical browsing page. In addition, the associated parameter value is determined not only according to the frequency of the keyword appearing in the first historical browsing page, but also according to the inverse document frequency of the keyword. In this way, it is possible to prevent the frequency of certain keywords from being too high and affecting the accuracy of the associated parameter value, thereby ensuring that the associated parameter value can more accurately characterize the importance of the keyword in the first historical browsing page.
[0071] In one or more embodiments of the present application, before displaying at least one preview information, the information display method may further include:
[0072] A first historical browsing page is obtained from candidate historical browsing pages including the target search term, wherein the first historical browsing page satisfies: an associated parameter value of the target search term in the first historical browsing page is greater than a predetermined threshold.
[0073] Although some candidate historical browsing pages have the target search term, the target search term cannot represent the main content of the candidate historical browsing pages. Therefore, among the candidate historical browsing pages having the target search term, the first historical browsing page whose associated parameter value is greater than a predetermined threshold is obtained. Thus, the target search term can represent the main content of the first historical browsing page, so that the first historical browsing page is a search result closely related to the target search term, thereby ensuring the accuracy of the search results.
[0074] In one or more embodiments of the present application, obtaining N keywords in the first historical browsing page may include:
[0075] When the time duration for which any fragment of content in the first historical browsing page is browsed by the user is less than a predetermined time duration, N keywords appearing in the first historical browsing page are obtained.
[0076] Determine whether the display time of any fragment of content in the first historical browsing page is less than a predetermined time, so as to determine whether the user has normally read the first historical browsing page. In the case that the display time of any fragment of content in the first historical browsing page is less than a predetermined time, it means that the user has not normally read the first historical browsing page for some reason, for example, the displayed page is automatically closed due to a crash of the electronic device, resulting in the user not reading it normally, and the page becomes a historical browsing page. In this case, obtain N keywords appearing in the first historical browsing page, and calculate the associated parameter value of each keyword, so that when the user needs to review the page later, the preview information of the historical browsing page can be displayed in the order of the associated parameter value.
[0077] When the time duration for which each content segment in the first historical browsing page is browsed by the user is greater than or equal to the predetermined time duration, it indicates that the user has normally read the first historical browsing page and is unlikely to return to view the content of the first historical browsing page again. Therefore, it is not necessary to calculate the associated parameter values of the keywords in the first historical browsing page.
[0078] The following is an example of dividing any historical browsing page into multiple fragment contents.
[0079] As an example, multiple fragment contents of a historical browsing page are divided according to the screen fragment contents where the user's sight is focused, so as to avoid overlap between the multiple fragment contents.
[0080] Figure 5 Schematic diagram of an electronic device screen according to an embodiment of the present application. Figure 5 As shown, the center fragment content 302 of the electronic device screen is the screen fragment content where the user's line of sight is focused. The content displayed in the screen fragment content is divided into one fragment content. When the user swipes up or down, the content displayed in the screen fragment content is updated, and the updated content displayed in the screen fragment content is divided into another fragment content. There is no overlap between different fragment contents.
[0081] As another example, multiple fragments of the historical browsing page are divided according to a preset fragment length L. Starting from the start position of the historical browsing page, multiple fragments of length L are divided in sequence, and the length of the last divided fragment may be L or less than L.
[0082] Figure 6 FIG. 1 is a schematic diagram of a first history browsing page of an embodiment provided by the present application. Figure 6As shown, starting from the starting position of the first historical browsing page, multiple fragment contents of length L are divided in sequence, namely fragment content 1, fragment content 2... fragment content 5. The length of each fragment content in fragment content 1 to fragment content 4 is L, and the length of the last divided fragment content 4 is less than L.
[0083] The above is an example of dividing the historical browsing page into multiple fragment contents.
[0084] After analyzing the search results, the following conclusions were drawn: if the user enters search term A, the electronic device searches out web page P, and the user clicks on the preview information of web page P to open the content of web page P; then, the user changes the search term to search term B, and the electronic device also searches out web page P based on search term B, and the user clicks on the preview information of web page P to open the content of web page P.
[0085] The reason why the user changes the search term (i.e., changes from term A to term B) is probably because the user finds that the webpage P is not what the user wants when searching for the webpage P through term A, so the user changes the search term to term B. Therefore, the webpage P may not be what the user wants, and when displaying the preview information of the webpage P, the preview information of the webpage P may be displayed at the back.
[0086] Based on the above analysis, in one or more embodiments of the present application, determining the order of each first historical browsing page according to the associated parameter value between the target search term and each first historical browsing page may include:
[0087] Acquire a first number of times the electronic device searches for a first historical browsing page using the same search term or different search terms, a second number of times the first historical browsing page is browsed by a user, and an associated parameter value of a target search term in the first historical browsing page;
[0088] The order of the first historical browsing pages is determined according to the first number, the second number and the associated parameter value.
[0089] The first search count is explained below. The user may search for a page using search term A for the first time, and the user may search for the same page using search term B for the second time. Therefore, the same page may be searched multiple times. After the page is searched, regardless of whether the page is browsed or not, as long as the page is searched, the electronic device is considered to have searched the page once.
[0090] As an example, the more times the electronic device searches for the first historical browsing page, the more likely it is that the first historical browsing page is not the page the user wants, because if the first historical browsing page is the page the user wants, the user will stop searching when the first historical browsing page is searched for the first time, and the first historical browsing page will not be searched for multiple times. Therefore, the more likely the first historical browsing page is not the page the user wants, the later the first historical browsing page is ranked.
[0091] Similarly, the more the second times the electronic device opens the first historical browsing page, the later the order of the first historical browsing page becomes.
[0092] As an example, the first historical browsing pages are scored according to the first number, the second number and the associated parameter value. According to the score of each first historical browsing page, multiple first historical browsing pages are sorted from large to small according to the score to obtain the order of each first historical browsing page.
[0093] As an example, the first historical browsing page is scored using the following formula:
[0094] F(x,y,z)=-a×xb×y+c×z (1)
[0095] Among them, a, b and c are preset coefficients respectively, and a, b and c are positive numbers, x represents the first number of times the electronic device searches for the first historical browsing page, y represents the second number of times the electronic device opens the first historical browsing page, z represents the associated parameter value of the target search term in the first historical browsing page, and the result calculated by F(x, y, z) is the score of the first historical browsing page.
[0096] In an embodiment of the present application, the order of the first historical browsing pages is determined based on the first number, the second number and the associated parameter value of the first historical browsing page, so that the page the user wants can be displayed first, making it easier for the user to locate the preview information of the desired page among multiple preview information.
[0097] In some cases, the user does not remember clearly the content of the historical browsing page that the user wants to view, so the target search term used by the user may not be accurate enough, resulting in the first historical browsing page with the target search term not being the historical browsing page that the user wants to view. Alternatively, the target search term used by the user is not a keyword in the historical browsing page that the user wants to view, which also results in the first historical browsing page searched based on the target search term not being the one that the user wants.
[0098] In order to display more comprehensive search results to the user and avoid missing search results, in one or more embodiments of the present application, before displaying preview information of multiple historical browsing pages, the information display method may further include:
[0099] For T second historical browsing pages that do not include the target search term, calculate the similarity between the first historical browsing page and each second historical browsing page, each second historical browsing page is a page that has been browsed by the user, and T is an integer greater than 1;
[0100] When T second historical browsing pages are arranged in order of similarity, starting from the second historical browsing page with the greatest similarity, N second historical browsing pages are obtained from the T second historical browsing pages, where N is a positive integer less than or equal to T;
[0101] The at least one historical browsing page includes N second historical browsing pages.
[0102] In an embodiment of the present application, among multiple second historical browsing pages that do not include the target search term, a second historical browsing page similar to the first historical browsing page is obtained and its preview information is displayed, so that more comprehensive search results can be displayed to the user to avoid missing search results.
[0103] In one or more embodiments of the present application, calculating the similarity between the first historical browsing page and each second historical browsing page may include:
[0104] Obtain X first keywords in the first historical browsing page and X second keywords in the second historical browsing page, where X is an integer greater than 1;
[0105] Generate a first matrix according to the vectors corresponding to the X first keywords respectively, and generate a second matrix according to the vectors corresponding to the X second keywords respectively;
[0106] The distance between the first matrix and the second matrix is calculated to obtain the similarity between the second historical browsing page and the first historical browsing page.
[0107] The following is an example to illustrate the embodiment of the present application.
[0108] Assume that the first historical browsing page includes X first keywords, and the second historical browsing page includes X second keywords. Obtain the Y-dimensional row vector corresponding to each first keyword; splice the Y-dimensional row vectors corresponding to the X first keywords in the column direction to obtain a Y×X first matrix, where Y is an integer greater than 1. Similarly, obtain a Y×X second matrix based on the Y-dimensional row vectors corresponding to the X second keywords.
[0109] After the first matrix and the second matrix are formed, a distance between the first matrix and the second matrix may be calculated, wherein the distance may be a Euclidean distance or a Minkowski distance.
[0110] According to the distance between the first matrix and the second matrix, the similarity between the second historical browsing page and the first historical browsing page can be obtained. There is a negative correlation between the distance and the similarity. Specifically, the greater the distance between the first matrix and the second matrix, the lower the similarity between the second historical browsing page and the first historical browsing page.
[0111] In the embodiment of the present application, because the first keyword in the first historical browsing page and the second keyword in the second historical browsing page can reflect the main content of the respective pages, the similarity between the second historical browsing page and the first historical browsing page can be determined based on the first keyword in the first historical browsing page and the second keyword in the second historical browsing page. Then, the second historical browsing page similar to the first historical browsing page can be obtained from the second historical browsing page that does not have the target search term, and its preview information can be displayed to avoid missing the search results.
[0112] In one or more embodiments of the present application, Figure 7 As shown, after displaying at least one preview information, the information display method may further include:
[0113] Step 106: receiving a second input of target preview information in the at least one preview information;
[0114] Step 108: In response to the second input, display the target segment content in the target history browsing page, where the target history browsing page is a history browsing page corresponding to the target preview information.
[0115] As an example, the second input may include at least one of the following: voice input and touch input, wherein the touch input may include at least one of click input, double-click input, and long press input.
[0116] Step 106 and step 108 are described below using an example.
[0117] exist Figure 8 The interface shown includes preview information of multiple historical browsing pages. When receiving the second input of the user for the preview information of result 2, the following is displayed: Fig. 9 As the page of result 2 has more content, Fig. 9 The interface shown shows a partial fragment of the content on the page of result 2.
[0118] In an embodiment of the present application, a user can select a target historical browsing page to be viewed from among multiple historical browsing pages based on preview information of the multiple historical browsing pages, thereby realizing viewing of the content of the target historical browsing page.
[0119] In one or more embodiments of the present application, displaying the target area in the target history browsing page may include:
[0120] According to the target parameter value of each fragment content in the P fragment contents of the target historical browsing page, the target fragment content in the P fragment contents is displayed, where P is a positive integer;
[0121] The target parameter value includes at least one of the following: a weight value and a number of occurrences. The weight value is used to represent the length of time the fragment content is browsed by the user, and the number of occurrences is the number of times the target search term appears in the fragment content.
[0122] In the embodiment of the present application, the target fragment content in the target historical browsing page is displayed according to the weight value of each fragment content in the target historical browsing page and the number of times the target search term appears in each fragment content. In this way, the fragment content that the user is more concerned about can be displayed instead of the initial fragment content of the target historical browsing page being displayed fixedly. This avoids the user from performing operations (such as sliding down) to find the fragment content they want to view.
[0123] In one or more embodiments of the present application, when the target parameter value includes the number of occurrences of the target search term in each segment content, the target segment content is the segment content with the largest number of occurrences among the P segment contents.
[0124] Continue to refer Figure 8 , when receiving the second input of the user for the preview information of result 2, the following is displayed Fig. 9 The interface shown includes the target fragment content in which the target search term appears most frequently on the page of result 2.
[0125] In an embodiment of the present application, when a user views a target history browsing page, the target fragment content distributed in the target search word set in the target history browsing page is displayed, avoiding the user from sliding up and down on the target history browsing page to find the target fragment content distributed in the target search word set, thereby simplifying user operations.
[0126] In one or more embodiments of the present application, when the target parameter value includes the number of occurrences of the target search term in each fragment content, displaying the target fragment content in the P fragment contents according to the target parameter value of each fragment content in the P fragment contents of the target historical browsing page may include:
[0127] For each of the P fragment contents, calculating the sum of the number of times the target search term appears in the fragment content and the number of times the third keyword appears in the fragment content, to obtain the total number of times the fragment content appears, wherein the third keyword includes a keyword in at least one page opened by the electronic device within a preset time period;
[0128] According to the total number of times of each segment content, the target segment content is displayed, wherein the target segment content is the segment content whose total number of times among the P segment contents is greater than a preset threshold.
[0129] The following uses an example to illustrate the sum of the number of times the target search term appears and the number of times the third keyword appears in the same fragment content.
[0130] Assume that the electronic device has opened 3 web pages in the last hour, and 3 keywords are obtained from each web page, then 9 keywords are obtained from the 3 web pages. Since 3 of the keywords are word A and the other 2 are word B, 6 different keywords are obtained from the 3 web pages, namely keyword A to keyword F.
[0131] For each fragment of the target historical browsing page, the total number of times the above 6 keywords and the target search term appear in each fragment is counted. For example, in fragment 1 of the target historical browsing page, keyword A appears 2 times, keyword C appears 3 times, the target search term appears 1 time, and keyword B, keyword D, keyword E, and keyword F do not appear. Therefore, the total number of times the above 6 keywords and the target search term appear in fragment 1 is 6 times.
[0132] Because when searching for a page, if the user cannot find the desired result using a certain word, the search word will be changed and a word with a similar meaning will be used for searching. Therefore, in an embodiment of the present application, the target fragment content with the largest total number of times among the multiple fragment contents of the target historical browsing page is displayed based on the keywords and the target search word in at least one page opened by the electronic device within a preset time period. As a result, the target fragment content displayed to the user is the target fragment content where the target search word and the content that the user pays attention to within the preset time period are concentrated, so that the target fragment content displayed to the user is likely to be the fragment content that the user wants to view, avoiding the user from sliding up and down on the target historical browsing page to find the target fragment content, thereby simplifying the user operation.
[0133] In one or more embodiments of the present application, before displaying the target fragment content in the target history browsing page according to the target parameter value of each fragment content in the multiple fragment contents of the target history browsing page, the information display method further includes:
[0134] Obtaining the duration of each of the P content segments being browsed by the user and the total duration of the P content segments being browsed by the user;
[0135] The ratio of the time that each content segment is browsed by the user to the total time is calculated to obtain the weight value of each content segment.
[0136] The weight value of the segment content is positively correlated with the time the segment content is browsed by the user. Specifically, the larger the weight value of a segment content is, the longer the segment content is browsed by the user, that is, the longer the user's line of sight stays on the segment content.
[0137] Assuming that the time each fragment content is browsed by the user is t, and the total time the P fragment content of the target historical browsing page is browsed by the user is T, the weight value of each fragment content in the target historical browsing page is r=t / T, thereby calculating the weight value of each fragment content.
[0138] For example: the time length that fragment content 1 is browsed by the user is t1, the time length that fragment content 2 is browsed by the user is t2, and the time length that fragment content 3 is browsed by the user is t3. The saved information includes: the time length t1 that fragment content 1 is browsed by the user, the weight value t1 / T of fragment content 1, and the text information in fragment content 1, the time length t2 that fragment content 2 is browsed by the user, the weight value t2 / T of fragment content 2, and the text information in fragment content 2, the time length t3 that fragment content 3 is browsed by the user, the weight value t3 / T of fragment content 3, and the text information in fragment content 3.
[0139] In an embodiment of the present application, the weight value of each fragment content is calculated based on the length of time each fragment content of the target historical browsing page is browsed by the user and the total length of time P fragment contents are browsed by the user. The weight value can represent the length of time the fragment content is browsed by the user. The weight value of each fragment content can be used to determine whether the user has read the target historical browsing page normally, so as to perform subsequent operations.
[0140] In one or more embodiments of the present application, after displaying the target segment content in the target history browsing page, the information display method further includes:
[0141] When any first content segment among the P content segments is browsed by the user again, updating the first duration of the browsing of the first content segment by the user and updating the total duration of the browsing of the P content segments by the user;
[0142] The weight value of each fragment content is updated according to the updated total duration, the first duration and the second duration of the second fragment content being browsed by the user, where the second fragment content is the fragment content among the P fragment contents except the first fragment content.
[0143] The embodiment of the present application is described below by means of an example.
[0144] Assume that the fragment content 1 and fragment content 2 in the target historical browsing page are browsed by the user again, that is, the fragment content 1 and fragment content 2 have been newly browsed by the user, the initial duration of fragment content 1 before the addition is 6 seconds, the initial duration of fragment content 2 before the addition is 4 seconds, and the total duration of the target historical browsing page before the addition is 55 seconds. The newly browsed duration of fragment content 1 by the user is 5 seconds, and the newly browsed duration of fragment content 2 by the user is 6 seconds.
[0145] Then, add the total duration of the target historical browsing page before it is added, the newly added duration of fragment content 1 being browsed by users, and the newly added duration of fragment content 2 being browsed by users to obtain the total duration of the updated target historical browsing page (i.e., the result of 55 seconds + 5 seconds + 6 seconds). Add the initial duration of fragment content 1 before it is added to the newly added duration of fragment content 1 to obtain the updated duration of fragment content 1 being browsed by users (i.e., the result of 6 seconds + 5 seconds). Add the initial duration of fragment content 2 before it is added to the newly added duration of fragment content 2 to obtain the updated duration of fragment content 2 being browsed by users (i.e., the result of 4 seconds + 6 seconds). Then, update the weight value of each fragment content according to the updated duration of each fragment content being browsed by users.
[0146] In an embodiment of the present application, when the first content segment is browsed by the user again, the user's attention level to some content segments in the target historical browsing page is updated by updating the time the first content segment is browsed by the user and the total time the target historical browsing page is browsed, and updating the weight value of each content segment in the target historical browsing page.
[0147] In one or more embodiments of the present application, the key information in the historical browsing page includes: at least one key information corresponding to at least one fragment content of the historical browsing page. As an example, the at least one key information may include one or more keywords with the largest associated parameter values in the historical browsing page.
[0148] Receiving a second input of target preview information in at least one preview information includes: receiving a second input of target key information in at least one key information of a target historical browsing page.
[0149] Displaying the target segment content in the target history browsing page includes: displaying the target segment content according to the target key information, wherein the target segment content is the segment content corresponding to the target key information in the target history browsing page.
[0150] In the embodiment of the present application, when displaying the preview information of the historical browsing page, the preview information may include at least one key information in the historical browsing page that corresponds to at least one fragment content, and the user may select the target key information from the at least one key information, and then the electronic device may directly display the target fragment content corresponding to the target key information. This avoids the user from sliding up and down on the target historical browsing page to find the target fragment content, thereby simplifying the user operation.
[0151] An example of an information display method according to an embodiment of the present application is described below.
[0152] Fig.10 FIG. 1 is a flow chart of an information display method according to another embodiment of the present application. Fig.10 As shown, the information display method includes:
[0153] Step 302: during the process of displaying the web page, determining the time that each content segment in the web page is browsed by the user, and calculating the weight value of each content segment in the web page, the weight value is used to represent the time that the corresponding content segment is browsed by the user, and the larger the weight value of a content segment is, the longer the content segment is browsed by the user;
[0154] Step 304: determining whether there is a content segment in the webpage that has been browsed by the user for a time shorter than a predetermined time. If it is determined that any content segment in the webpage has been browsed by the user for a time shorter than the predetermined time, it indicates that the user has not finished reading the webpage, and step 306 is executed. If it is determined that no content segment in the webpage has been browsed by the user for a time shorter than the predetermined time, it indicates that the user has read every content segment in the webpage and has finished reading the entire webpage, and this process ends.
[0155] Step 306: obtaining valid content segments of the webpage whose browsing time by the user is greater than a predetermined time from the multiple content segments of the webpage;
[0156] Step 308: Calculate the associated parameter value of the keyword in the effective segment content. The associated parameter value is used to represent the importance of the keyword in the web page. Since the above has described how to obtain the associated parameter value, it will not be repeated here.
[0157] Step 310: Obtain a predetermined number of keywords with top associated parameter values;
[0158] Step 312: storing the title, path, a predetermined number of keywords, and the weight value of each fragment content in the web page;
[0159] Step 314: receiving a first input from a user, where the first input is used to input a target search term or to input a portion of the target search term;
[0160] Step 316: in response to the first input, obtaining a first history browsing page including the target search term; if there are multiple first history browsing pages, determining the order of the multiple first history browsing pages;
[0161] Step 318: displaying preview information of the plurality of first historical browsing pages according to the order of the plurality of first historical browsing pages;
[0162] Step 320: receiving a second input of preview information of the target historical browsing page;
[0163] Step 322: In response to the second input, display the target segment content in the target history browsing page.
[0164] As an example, in step 312, the positions of the keywords of the web page in each fragment content may also be stored. Fig.11 As shown, word A appears in position 1 and position 2 of fragment content A, position 1 may be the first line in fragment content A, and position 2 may be the second line in fragment content A; word A also appears in position 1 and position 2 of fragment content N.
[0165] As an example, in step 316, the order of each first historical browsing page can be determined according to the associated parameter value of the target search term in each first historical browsing page, wherein the larger the associated parameter value of the target search term in the first historical browsing page, the higher the order of the first historical browsing page.
[0166] As an example, in step 316, the order of the first historical browsing page is determined based on the first number of times the electronic device searches for the first historical browsing page, the second number of times the first historical browsing page is browsed by the user, and the associated parameter value of the target search term in the first historical browsing page.
[0167] As an example, in step 316, after obtaining the first historical browsing page with the target search term, the similarity between the second historical browsing page that does not include the target search term and the first historical browsing page can also be calculated, and a second historical browsing page that is similar to the first historical browsing page can be obtained from multiple second historical browsing pages that do not include the target search term.
[0168] In this case, in step 318, in addition to displaying preview information of a plurality of first historical browsing pages, preview information of a second historical browsing page is also displayed.
[0169] As an example, the preview information of the second historical browsing page can be displayed at a position adjacent to a first historical browsing page similar to the second historical browsing page. Alternatively, the preview information of the second historical browsing page can be displayed at a position after the preview information of the last first historical browsing page.
[0170] As an example, in step 318, the preview information may be displayed in the form of text, and the text of the preview information may include web page title information and at least one piece of content information, each piece of content information includes a keyword with a top Z associated parameter value and at least one word before and after the keyword. In this case, in step 320, a second input of a target piece of content information in the at least one piece of content information may be received from the user. In step 322, the target piece of content including the target piece of content information in the target historical browsing page is displayed.
[0171] As an example, in step 322, the target segment content in which the target search term appears most frequently among the multiple segment contents of the target historical browsing page may be displayed.
[0172] As an example, in step 322, for each fragment content of the target historical browsing page, the sum of the number of times the target search term appears and the number of times the third keyword appears in the same fragment content is calculated to obtain the total number of times each fragment content of the target historical browsing page appears, wherein the third keyword includes a keyword in at least one page opened by the electronic device within a preset time period; and the target fragment content with the largest total number of times among multiple fragment contents of the target historical browsing page is displayed.
[0173] Corresponding to an information display method provided by the present application, the present application provides an information display device. The information display device can be applied to electronic equipment. Fig.12 Schematic diagram of the structure of an information display device according to an embodiment of the present application. Fig.12 As shown, the information display device 400 may include:
[0174] A first receiving module 402 is used to receive a first input from a user, where the first input is used to input a target search word or to input a portion of the target search word;
[0175] The first display module 404 is used to display at least one preview information in response to the first input; wherein, at least one preview information corresponds to at least one historical browsing page, and each preview information includes at least one of the following: key information in the historical browsing page and a thumbnail of the historical browsing page, each historical browsing page is a page that has been browsed by the user, and at least one historical browsing page includes a first historical browsing page with a target search term.
[0176] In an embodiment of the present application, when a first input of a target search term or a portion of the target search term is received, indicating that the user wants to view the historical browsing pages related to the target search term that the user has browsed, at least one preview information corresponding to at least one historical browsing page is displayed. Since the preview information includes at least one of the following: key information in the historical browsing page and a thumbnail of the historical browsing page, the user can view the content summary of the historical browsing page related to the target search term according to the preview information, and then can select the preview information to open the corresponding historical browsing page. As a result, the user does not need to open the historical browsing pages one by one, nor does he need to view the content of the historical browsing pages one by one, thereby simplifying the process of the user finding the historical browsing pages and providing the user with a quick and effective way to trace back the historical browsing pages.
[0177] In one or more embodiments of the present application, when the number of the first historical browsing pages is M, where M is an integer greater than 1, the information display device 400 may further include:
[0178] A first determination module, used to determine the order of each first historical browsing page according to an association parameter value between the target search term and each first historical browsing page, wherein the association parameter value is used to characterize the degree of association between the target search term and the first historical browsing page;
[0179] The first display module 404 may be specifically configured to display preview information corresponding to M first historical browsing pages respectively according to the order of each first historical browsing page.
[0180] In the embodiment of the present application, the order of the preview information of the M historical browsing pages is determined according to the associated parameter value of the target search term in the first historical browsing page. For example, the more important the target search term is in the first historical browsing page, the closer the preview information of the first historical browsing page can be displayed. Thus, it is convenient for the user to quickly locate the required page in the preview information of the M historical browsing pages, simplifying the search process of the historical browsing pages.
[0181] In one or more embodiments of the present application, the information display device 400 may further include:
[0182] A first acquisition module is used to acquire N keywords in each first historical browsing page, where N is an integer greater than 1;
[0183] A first calculation module is used to calculate, for each of the N keywords, the product of the frequency of the keyword appearing in the first historical browsing page and the inverse document frequency of the keyword to obtain an association parameter value between the keyword and the first historical browsing page;
[0184] The storage module is used to store the associated parameter values of at least some of the N keywords.
[0185] In the embodiment of the present application, since the greater the frequency of a keyword appearing in the first historical browsing page, the more important the keyword is in the first historical browsing page, the associated parameter value used to characterize the importance of the keyword in the first historical browsing page can be determined according to the frequency of the keyword appearing in the first historical browsing page. In addition, the associated parameter value is determined not only according to the frequency of the keyword appearing in the first historical browsing page, but also according to the inverse document frequency of the keyword. In this way, it is possible to prevent the frequency of certain keywords from being too high and affecting the accuracy of the associated parameter value, thereby ensuring that the associated parameter value can more accurately characterize the importance of the keyword in the first historical browsing page.
[0186] In one or more embodiments of the present application, the first determination module includes:
[0187] A first acquisition unit is used to acquire a first number of times the electronic device searches for a first historical browsing page using the same search term or different search terms, a second number of times the first historical browsing page is browsed by a user, and an associated parameter value of a target search term in the first historical browsing page;
[0188] The first determining unit is used to determine the order of the first historical browsing pages according to the first number, the second number and the associated parameter value.
[0189] In an embodiment of the present application, the order of the first historical browsing pages is determined based on the first number, the second number and the associated parameter value of the first historical browsing page, so that the page the user wants can be displayed first, making it easier for the user to locate the preview information of the desired page among multiple preview information.
[0190] In one or more embodiments of the present application, the information display device 400 may further include:
[0191] A second calculation module is used to calculate the similarity between the first historical browsing page and each second historical browsing page for T second historical browsing pages that do not include the target search term, each second historical browsing page is a page that has been browsed by the user, and T is an integer greater than 1;
[0192] The second acquisition module is used to acquire N second historical browsing pages from the T second historical browsing pages, starting from the second historical browsing page with the greatest similarity, when the T second historical browsing pages are arranged in order of similarity, where N is a positive integer less than or equal to T; wherein at least one historical browsing page includes N second historical browsing pages.
[0193] In an embodiment of the present application, in a second historical browsing page that does not include the target search term, a second historical browsing page similar to the first historical browsing page is obtained and its preview information is displayed, so that more comprehensive search results can be displayed to the user to avoid missing search results.
[0194] In one or more embodiments of the present application, the information display device 400 may further include:
[0195] A second receiving module, configured to receive a second input of target preview information in the at least one preview information;
[0196] The second display module is used to display the target segment content in the target historical browsing page in response to the second input, where the target historical browsing page is a historical browsing page corresponding to the target preview information.
[0197] In an embodiment of the present application, a user can select a target historical browsing page to be viewed from among multiple historical browsing pages based on preview information of the multiple historical browsing pages, thereby realizing viewing of the content of the target historical browsing page.
[0198] In one or more embodiments of the present application, the second display module is specifically used for:
[0199] According to the target parameter value of each fragment content in the P fragment contents of the target historical browsing page, the target fragment content in the P fragment contents is displayed, where P is a positive integer;
[0200] The target parameter value includes at least one of the following: a weight value and a number of occurrences. The weight value is used to represent the length of time the fragment content is browsed by the user, and the number of occurrences is the number of times the target search term appears in the fragment content.
[0201] In the embodiment of the present application, the target fragment content in the target historical browsing page is displayed according to the weight value of each fragment content in the target historical browsing page and the number of times the target search term appears in each fragment content. In this way, the fragment content that the user is more concerned about can be displayed instead of the initial fragment content of the target historical browsing page being displayed fixedly. This avoids the user from performing operations (such as sliding down) to find the fragment content they want to view.
[0202] In one or more embodiments of the present application, when the target parameter value includes the number of occurrences, the target segment content is the segment content with the largest number of occurrences among the P segment contents.
[0203] In an embodiment of the present application, when a user views a target history browsing page, the target fragment content distributed in the target search word set in the target history browsing page is displayed, avoiding the user from sliding up and down on the target history browsing page to find the target fragment content distributed in the target search word set, thereby simplifying user operations.
[0204] In one or more embodiments of the present application, when the target parameter value includes the number of occurrences, the second display module may include:
[0205] a calculation unit, configured to calculate, for each of the P fragment contents, a sum of the number of times the target search term appears in the fragment content and the number of times a third keyword appears in the fragment content, to obtain a total number of times the fragment content appears, wherein the third keyword includes a keyword in at least one page opened by the electronic device within a preset time period;
[0206] The display unit is used to display target segment content according to the total number of times of each segment content, wherein the target segment content is the segment content whose total number of times among the P segment contents is greater than a preset threshold.
[0207] Because when searching for a page, if the user cannot find the desired result using a certain word, the search word will be changed and a word with a similar meaning will be used for searching. Therefore, in an embodiment of the present application, the target fragment content with the largest total number of times among the multiple fragment contents of the target historical browsing page is displayed based on the keywords and the target search word in at least one page opened by the electronic device within a preset time period. As a result, the target fragment content displayed to the user is the target fragment content where the target search word and the content that the user pays attention to within the preset time period are concentrated, so that the target fragment content displayed to the user is likely to be the fragment content that the user wants to view, avoiding the user from sliding up and down on the target historical browsing page to find the target fragment content, thereby simplifying the user operation.
[0208] In one or more embodiments of the present application, the information display device 400 may further include:
[0209] The third acquisition module is used to obtain the duration of each content segment being browsed by the user and the total duration of P content segments being browsed by the user;
[0210] The third calculation module is used to calculate the ratio of the time that each content segment is browsed by the user to the total time, so as to obtain the weight value of each content segment.
[0211] In an embodiment of the present application, the weight value of each fragment content is calculated based on the length of time each fragment content of the target historical browsing page is browsed by the user and the total length of time P fragment contents are browsed by the user. The weight value can represent the length of time the fragment content is browsed by the user. The weight value of each fragment content can be used to determine whether the user has read the target historical browsing page normally, so as to perform subsequent operations.
[0212] In one or more embodiments of the present application, the information display device 400 may further include:
[0213] A first updating module is used to update a first duration of browsing of the first content segment by the user and a total duration of browsing of the P content segments by the user when any first content segment among the P content segments is browsed by the user again;
[0214] The second updating module is used to update the weight value of each fragment content according to the updated total duration, the first duration and the second duration of the second fragment content being browsed by the user, where the second fragment content is the fragment content among the P fragment contents except the first fragment content.
[0215] In an embodiment of the present application, when the first content segment is browsed by the user again, the user's attention level to some content segments in the target historical browsing page is updated by updating the time the first content segment is browsed by the user and the total time the target historical browsing page is browsed, and updating the weight value of each content segment in the target historical browsing page.
[0216] In one or more embodiments of the present application, the key information in the historical browsing page includes: at least one key information corresponding one-to-one to at least one fragment content of the historical browsing page;
[0217] The second receiving module may be specifically configured to: receive a second input of target key information in at least one key information of the target historical browsing page;
[0218] The second display module can be specifically used to: display the target segment content according to the target key information, wherein the target segment content is the segment content corresponding to the target key information in the target history browsing page.
[0219] In the embodiment of the present application, when displaying the preview information of the historical browsing page, the preview information may include at least one key information in the historical browsing page that corresponds to at least one fragment content, and the user may select the target key information from the at least one key information, and then the electronic device may directly display the target fragment content corresponding to the target key information. This avoids the user from sliding up and down on the target historical browsing page to find the target fragment content, thereby simplifying the user operation.
[0220] It should be noted that the above embodiment takes the information display device as an example to illustrate the execution of the information display method. However, the execution of the information display method provided in the embodiment of the present application is not limited to the information display device, but can also be a control module in the information display device for executing the loading information display method.
[0221] The information display device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in the device. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0222] The information 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.
[0223] The information display device provided in the embodiment of the present application can achieve Figure 1 , Figure 4 , Figure 7 , Fig.10 To avoid repetition, the various processes implemented by the information display device in the method embodiment will not be described here.
[0224] An embodiment of the present application also provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, each process of the above-mentioned information display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0225] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0226] Fig.13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0227] The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510.
[0228] The input unit 504 may include a graphics processor 5041 and a microphone 5042. The display unit 506 may include a display panel 5061. The user input unit 507 may include a touch panel 5071 and other input devices 5072. The memory 509 may include an application program and an operating system.
[0229] Those skilled in the art will appreciate that the electronic device 500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.13 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.
[0230] The user input unit 507 is used to receive a first input from a user, where the first input is used to input a target search word or to input a portion of the target search word.
[0231] The display unit 506 is used to display at least one preview information in response to the first input; wherein, the at least one preview information corresponds one-to-one to at least one historical browsing page, and each preview information includes at least one of the following: key information in the historical browsing page and a thumbnail of the historical browsing page, each historical browsing page is a page that has been browsed by the user, and at least one historical browsing page includes a first historical browsing page with a target search term.
[0232] In an embodiment of the present application, when a first input of a target search term or a portion of the target search term is received, indicating that the user wants to view the historical browsing pages related to the target search term that the user has browsed, at least one preview information corresponding to at least one historical browsing page is displayed. Since the preview information includes at least one of the following: key information in the historical browsing page and a thumbnail of the historical browsing page, the user can view the content summary of the historical browsing page related to the target search term according to the preview information, and then can select the preview information to open the corresponding historical browsing page. As a result, the user does not need to open the historical browsing pages one by one, nor does he need to view the content of the historical browsing pages one by one, thereby simplifying the process of the user finding the historical browsing pages and providing the user with a quick and effective way to trace back the historical browsing pages.
[0233] In one or more embodiments of the present application, when the number of the first historical browsing pages is M, where M is an integer greater than 1, the processor 510 may also be configured to: determine the order of each first historical browsing page according to an association parameter value between the target search term and each first historical browsing page, wherein the association parameter value is used to characterize the degree of association between the target search term and the first historical browsing page;
[0234] The display unit 506 may be specifically configured to display preview information corresponding to the M first historical browsing pages respectively according to the order of each first historical browsing page.
[0235] In the embodiment of the present application, the order of the preview information of the M historical browsing pages is determined according to the associated parameter value of the target search term in the first historical browsing page. For example, the more important the target search term is in the first historical browsing page, the closer the preview information of the first historical browsing page can be displayed. Thus, it is convenient for the user to quickly locate the required page in the preview information of the M historical browsing pages, simplifying the search process of the historical browsing pages.
[0236] In one or more embodiments of the present application, the processor 510 may also be configured to:
[0237] For each first historical browsing page, obtain N keywords in the first historical browsing page, where N is an integer greater than 1;
[0238] For each of the N keywords, the product of the frequency of the keyword appearing in the first historical browsing page and the inverse document frequency of the keyword is calculated to obtain an association parameter value between the keyword and the first historical browsing page;
[0239] The associated parameter values of at least some of the N keywords are stored.
[0240] In the embodiment of the present application, since the greater the frequency of a keyword appearing in the first historical browsing page, the more important the keyword is in the first historical browsing page, the associated parameter value used to characterize the importance of the keyword in the first historical browsing page can be determined according to the frequency of the keyword appearing in the first historical browsing page. In addition, the associated parameter value is determined not only according to the frequency of the keyword appearing in the first historical browsing page, but also according to the inverse document frequency of the keyword. In this way, it is possible to prevent the frequency of certain keywords from being too high and affecting the accuracy of the associated parameter value, thereby ensuring that the associated parameter value can more accurately characterize the importance of the keyword in the first historical browsing page.
[0241] In one or more embodiments of the present application, the processor 510 may be specifically configured to:
[0242] Acquire a first number of times the electronic device searches for a first historical browsing page using the same search term or different search terms, a second number of times the first historical browsing page is browsed by a user, and an associated parameter value of a target search term in the first historical browsing page;
[0243] The order of the first historical browsing pages is determined according to the first number, the second number and the associated parameter value.
[0244] In an embodiment of the present application, the order of the first historical browsing pages is determined based on the first number, the second number and the associated parameter value of the first historical browsing page, so that the page the user wants can be displayed first, making it easier for the user to locate the preview information of the desired page among multiple preview information.
[0245] In one or more embodiments of the present application, the processor 510 may also be configured to:
[0246] For T second historical browsing pages that do not include the target search term, calculate the similarity between the first historical browsing page and each second historical browsing page, each second historical browsing page is a page that has been browsed by the user, and T is an integer greater than 1;
[0247] When T second historical browsing pages are arranged in order of similarity, starting from the second historical browsing page with the greatest similarity, N second historical browsing pages are obtained from the T second historical browsing pages, where N is a positive integer less than or equal to T;
[0248] The at least one historical browsing page includes N second historical browsing pages.
[0249] In an embodiment of the present application, in a second historical browsing page that does not include the target search term, a second historical browsing page similar to the first historical browsing page is obtained and its preview information is displayed, so that more comprehensive search results can be displayed to the user to avoid missing search results.
[0250] In one or more embodiments of the present application, the user input unit 507 may also be used to receive a second input of the target preview information in the at least one preview information;
[0251] The display unit 506 may also be configured to display the target segment content in the target historical browsing page in response to the second input, where the target historical browsing page is a historical browsing page corresponding to the target preview information.
[0252] In an embodiment of the present application, a user can select a target historical browsing page to be viewed from among multiple historical browsing pages based on preview information of the multiple historical browsing pages, thereby realizing viewing of the content of the target historical browsing page.
[0253] In one or more embodiments of the present application, the display unit 506 may be specifically used for:
[0254] According to the target parameter value of each fragment content in the P fragment contents of the target historical browsing page, the target fragment content in the P fragment contents is displayed, where P is a positive integer; wherein the target parameter value includes at least one of the following: a weight value and a number of occurrences, the weight value is used to characterize the length of time the fragment content is browsed by the user, and the number of occurrences is the number of times the target search term appears in the fragment content.
[0255] In the embodiment of the present application, the target fragment content in the target historical browsing page is displayed according to the weight value of each fragment content in the target historical browsing page and the number of times the target search term appears in each fragment content. In this way, the fragment content that the user is more concerned about can be displayed instead of the initial fragment content of the target historical browsing page being displayed fixedly. This avoids the user from performing operations (such as sliding down) to find the fragment content they want to view.
[0256] In one or more embodiments of the present application, when the target parameter value includes the number of occurrences, the target segment content is the segment content with the largest number of occurrences among the P segment contents.
[0257] In an embodiment of the present application, when a user views a target history browsing page, the target fragment content distributed in the target search word set in the target history browsing page is displayed, avoiding the user from sliding up and down on the target history browsing page to find the target fragment content distributed in the target search word set, thereby simplifying user operations.
[0258] In one or more embodiments of the present application, when the target parameter value includes the number of occurrences, the processor 510 is configured to: for each of the P fragment contents, calculate the sum of the number of occurrences of the target search term and the number of occurrences of the third keyword in the fragment content, and obtain the total number of occurrences of the fragment content, wherein the third keyword includes a keyword in at least one page opened by the electronic device within a preset time period;
[0259] The display unit 506 may be specifically configured to display target segment content according to the total number of times of each segment content, wherein the target segment content is the segment content whose total number of times among the P segment contents is greater than a preset threshold.
[0260] Because when searching for a page, if the user cannot find the desired result using a certain word, the search word will be changed and a word with a similar meaning will be used for searching. Therefore, in an embodiment of the present application, the target fragment content with the largest total number of times among the multiple fragment contents of the target historical browsing page is displayed based on the keywords and the target search word in at least one page opened by the electronic device within a preset time period. As a result, the target fragment content displayed to the user is the target fragment content where the target search word and the content that the user pays attention to within the preset time period are concentrated, so that the target fragment content displayed to the user is likely to be the fragment content that the user wants to view, avoiding the user from sliding up and down on the target historical browsing page to find the target fragment content, thereby simplifying the user operation.
[0261] In one or more embodiments of the present application, the processor 510 may also be configured to:
[0262] Obtain the duration of each content segment being browsed by the user and the total duration of P content segments being browsed by the user;
[0263] The ratio of the time that each content segment is browsed by the user to the total time is calculated to obtain the weight value of each content segment.
[0264] In an embodiment of the present application, the weight value of each fragment content is calculated based on the length of time each fragment content of the target historical browsing page is browsed by the user and the total length of time P fragment contents are browsed by the user. The weight value can represent the length of time the fragment content is browsed by the user. The weight value of each fragment content can be used to determine whether the user has read the target historical browsing page normally, so as to perform subsequent operations.
[0265] In one or more embodiments of the present application, the processor 510 may also be configured to:
[0266] When any first content segment among the P content segments is browsed by the user again, updating the first duration of the browsing of the first content segment by the user and updating the total duration of the browsing of the P content segments by the user;
[0267] The weight value of each fragment content is updated according to the updated total duration, the first duration and the second duration of the second fragment content being browsed by the user, where the second fragment content is the fragment content among the P fragment contents except the first fragment content.
[0268] In an embodiment of the present application, when the first content segment is browsed by the user again, the user's attention level to some content segments in the target historical browsing page is updated by updating the time the first content segment is browsed by the user and the total time the target historical browsing page is browsed, and updating the weight value of each content segment in the target historical browsing page.
[0269] In one or more embodiments of the present application, the key information in the historical browsing page includes: at least one key information corresponding one-to-one to at least one fragment content of the historical browsing page.
[0270] The user input unit 507 may be specifically used to: receive a second input of target key information in at least one key information of the target historical browsing page;
[0271] The display unit 506 can be specifically used to: display the target segment content according to the target key information, wherein the target segment content is the segment content corresponding to the target key information in the target history browsing page.
[0272] In the embodiment of the present application, when displaying the preview information of the historical browsing page, the preview information may include at least one key information in the historical browsing page that corresponds to at least one fragment content, and the user may select the target key information from the at least one key information, and then the electronic device may directly display the target fragment content corresponding to the target key information. This avoids the user from sliding up and down on the target historical browsing page to find the target fragment content, thereby simplifying the user operation.
[0273] 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, the various processes of the above-mentioned information display method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0274] The processor is the processor in the electronic device 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.
[0275] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0276] 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.
[0277] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are 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 "comprise 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 methods and devices in the embodiments 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.
[0278] 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 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, an air conditioner, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0279] 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. An information display method, applied to an electronic device, characterized in that: The method comprises: For each first historical browsing page, obtain N keywords in the first historical browsing page, where N is an integer greater than 1; For each of the N keywords, calculate the product of the frequency of occurrence of the keyword in the first historical browsing page and the inverse document frequency of the keyword to obtain an association parameter value between the keyword and the first historical browsing page; Storing the associated parameter values of at least some of the N keywords; Acquire a first number of times the electronic device searches for each first historical browsing page using the same search term or different search terms, a second number of times each first historical browsing page is browsed by a user, and an associated parameter value of the target search term in each first historical browsing page; Determine the order of each first historical browsing page according to the first number of times, the second number of times and the associated parameter value, wherein the associated parameter value is used to characterize the degree of association between the target search term and the first historical browsing page; the larger the value of the associated parameter value, the higher the order of the first historical browsing page; the larger the value of the first number of times, the lower the order of the first historical browsing page; the larger the value of the second number of times, the lower the order of the first historical browsing page; receiving a first input from a user, where the first input is used to input the target search term or to input a portion of the target search term; In response to the first input, displaying preview information corresponding to M first historical browsing pages respectively according to the order of each of the first historical browsing pages; Among them, at least one of the preview information corresponds to at least one of the historical browsing pages, and each of the preview information includes at least one of the following items: key information in the historical browsing page and a thumbnail of the historical browsing page, each of the historical browsing pages is a page that has been browsed by the user, and the at least one historical browsing page includes the first historical browsing page with the target search term.
2. The method according to claim 1, characterized in that: Before displaying preview information respectively corresponding to M first historical browsing pages according to the order of each of the first historical browsing pages, the method further includes: For T second historical browsing pages that do not include the target search term, calculate the similarity between the first historical browsing page and each of the second historical browsing pages, each of the second historical browsing pages is a page that has been browsed by the user, and T is an integer greater than 1; When the T second historical browsing pages are arranged in order of similarity, starting from the second historical browsing page with the greatest similarity, N second historical browsing pages are obtained from the T second historical browsing pages, where N is a positive integer less than or equal to T; The at least one historical browsing page includes the N second historical browsing pages.
3. The method according to claim 1, characterized in that After displaying preview information respectively corresponding to M first historical browsing pages according to the order of each of the first historical browsing pages, the method further includes: receiving a second input of target preview information in the at least one preview information; In response to the second input, the target segment content in the target historical browsing page is displayed, and the target historical browsing page is the historical browsing page corresponding to the target preview information.
4. The method according to claim 3, characterized in that The target fragment content in the target history browsing page is displayed, including: Displaying the target fragment content among the P fragment contents of the target historical browsing page according to the target parameter value of each fragment content, where P is a positive integer; Among them, the target parameter value includes at least one of the following: a weight value and a number of occurrences, the weight value is used to represent the length of time the fragment content is browsed by the user, and the number of occurrences is the number of times the target search term appears in the fragment content.
5. The method according to claim 4, characterized in that In the case where the target parameter value includes the number of occurrences, the target segment content is the segment content with the largest number of occurrences among the P segment contents.
6. The method according to claim 4, characterized in that In a case where the target parameter value includes the number of occurrences, displaying the target fragment content among the P fragment contents according to the target parameter value of each fragment content of the P fragment contents of the target historical browsing page includes: For each of the P pieces of content, calculate the sum of the number of times the target search term appears in the piece of content and the number of times a third keyword appears in the piece of content to obtain a total number of times the piece of content appears, wherein the third keyword includes a keyword in at least one page opened by the electronic device within a preset time period; The target segment content is displayed according to the total number of times of each of the segment contents, wherein the target segment content is the segment content whose total number of times among the P segment contents is greater than a preset threshold.
7. The method according to claim 4, characterized in that Before displaying the target fragment content among the P fragment contents according to the target parameter value of each fragment content among the P fragment contents of the target historical browsing page, the method further includes: Obtaining the duration of each content segment being browsed by the user and the total duration of the P content segments being browsed by the user; The ratio of the time duration of browsing each content segment by the user to the total time duration is calculated to obtain the weight value of each content segment.
8. The method according to claim 7, characterized in that After displaying the target segment content in the target history browsing page, the method further includes: When any first content segment among the P content segments is browsed by the user again, updating a first duration of browsing of the first content segment by the user and updating a total duration of browsing of the P content segments by the user; The weight value of each fragment content is updated according to the updated total duration, the first duration and the second duration of the second fragment content being browsed by the user, where the second fragment content is the fragment content among the P fragment contents except the first fragment content.
9. The method according to claim 3, characterized in that: The key information in the historical browsing page includes: at least one key information corresponding to at least one fragment content of the historical browsing page; The receiving a second input of the target preview information in the at least one preview information includes: receiving a second input of target key information in the at least one key information of the target historical browsing page; The target fragment content in the target history browsing page is displayed, including: The target segment content is displayed according to the target key information, wherein the target segment content is the segment content corresponding to the target key information in the target history browsing page.
10. An information display device, characterized in that: The device comprises: A first acquisition module, configured to acquire, for each first historical browsing page, N keywords in the first historical browsing page, where N is an integer greater than 1; a first calculation module, configured to calculate, for each of the N keywords, a product of a frequency of occurrence of the keyword in the first historical browsing page and an inverse document frequency of the keyword, to obtain an association parameter value between the keyword and the first historical browsing page; A storage module, used for storing the associated parameter values of at least some of the N keywords; A first determination module is used to obtain a first number of times that the electronic device searches for each first historical browsing page using the same search term or different search terms, a second number of times that each first historical browsing page is browsed by a user, and an associated parameter value of a target search term in each first historical browsing page; determine the order of each first historical browsing page according to the first number of times, the second number of times, and the associated parameter value, wherein the associated parameter value is used to characterize the degree of association between the target search term and the first historical browsing page; the larger the value of the associated parameter value, the higher the order of the first historical browsing page; the larger the value of the first number of times, the later the order of the first historical browsing page; the larger the value of the second number of times, the later the order of the first historical browsing page; A first receiving module, used to receive a first input from a user, where the first input is used to input the target search word or to input a portion of the target search word; A first display module, configured to display preview information corresponding to M first historical browsing pages respectively according to the order of each of the first historical browsing pages in response to the first input; Among them, at least one of the preview information corresponds to at least one of the historical browsing pages, and each of the preview information includes at least one of the following items: key information in the historical browsing page and a thumbnail of the historical browsing page, each of the historical browsing pages is a page that has been browsed by the user, and the at least one historical browsing page includes the first historical browsing page with the target search term.
11. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the information display method according to any one of claims 1 to 9.
12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the information display method according to any one of claims 1 to 9 are implemented.
