Page Processing Method, Apparatus, and Medium

By determining and pre-processing target items in an information flow based on user behavior, the method accelerates content display and optimizes storage, addressing slow item transitions and improving user engagement.

CN113821145BActive Publication Date: 2025-07-15BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111107513.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-22
Publication Date
2025-07-15
Estimated Expiration
2041-09-22

AI Technical Summary

Technical Problem

In the prior art, it takes a long time for a user to click on an information flow entry to present the main content, resulting in a slow display speed of the information flow and affecting the user's reading experience.

Method used

By analyzing user historical behavior data, pre-determine the target entry and obtain its text data from the server for pre-processing, and directly display the pre-processing results in response to user access requests.

Benefits of technology

It improves the display speed of target entries in the information flow, conforms to user operating habits, saves terminal storage space and reduces the time to obtain data from the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113821145B_ABST
    Figure CN113821145B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a page processing method, device, and medium. The method is applied to a client, and specifically includes: determining a target entry from the information stream of a page according to the historical behavior data of a user for the information stream; obtaining the text data of the target entry from a server, and preprocessing the text data of the target entry to obtain a corresponding preprocessing result; and in response to an access request of the user for the target entry, displaying the text data of the target entry according to the preprocessing result. The embodiment of the present invention can improve the display speed of entries in the information stream.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and particularly to a page processing method, apparatus, and medium. Background Art

[0002] With the continuous development of computer technology, Feed flow (information flow) technology has emerged as the times require. The so-called Feed flow refers to combining several pieces of information together to form a content aggregator so that users can continuously obtain information.

[0003] Currently, the information flow in a page usually includes multiple entries. Among them, in the area of a single entry, information such as the title and picture of the entry can be displayed. Users can perform a sliding operation within the page to switch between multiple entries. Or, users can perform a click operation on an entry of interest to read the body content of the entry.

[0004] The inventors found in the process of implementing the embodiments of the present invention that it usually takes a relatively long time from when a user performs a click operation on an entry to the complete presentation of the body content of the entry, which makes the display speed of the entries in the information flow slower. And the display speed of the entries directly determines the user's reading experience. If the display speed is too slow, it is easy to cause users to give up reading. How to improve the display speed of the entries in the information flow is a technical problem that needs to be solved by those skilled in the art. Summary of the Invention

[0005] In view of the above problems, embodiments of the present invention propose a page processing method, apparatus, and medium that overcome the above problems or at least partially solve the above problems.

[0006] To solve the above problems, embodiments of the present invention disclose a page processing method, which is applied to a client, and the method includes:

[0007] Determine a target entry from the information flow of the page according to the historical behavior data of the user for the information flow;

[0008] Obtain the body data of the target entry from the server and preprocess the body data of the target entry to obtain a corresponding preprocessing result;

[0009] In response to an access request of the user for the target entry, display the body data of the target entry according to the preprocessing result.

[0010] On the other hand, embodiments of the present invention disclose a page processing apparatus, and the apparatus includes:

[0011] A target entry determination module, configured to determine a target entry from the information flow of the page according to the historical behavior data of the user for the information flow;

[0012] A preprocessing module, configured to obtain the body data of the target entry from a server, and preprocess the body data of the target entry to obtain a corresponding preprocessing result; and

[0013] An access response module, configured to, in response to a user's access request for the target entry, display the body data of the target entry according to the preprocessing result.

[0014] On the other hand, an embodiment of the present invention discloses a device for page processing, including a memory, and one or more programs, wherein the one or more programs are stored in the memory, and when the one or more programs are executed by one or more processors, the steps of the foregoing method are implemented.

[0015] On another hand, an embodiment of the present invention discloses a machine-readable medium, on which instructions are stored, and when executed by one or more processors, cause the device to execute the foregoing method.

[0016] Embodiments of the present invention have the following advantages:

[0017] First, since the historical behavior data of the user for the information stream in the embodiment of the present invention can reflect the user's operation habits for the information stream; therefore, the target entry determined in the embodiment of the present invention can conform to the user's operation habits for the information stream. In other words, the target entry determined in the embodiment of the present invention can be an entry with a relatively high access probability in the information stream.

[0018] Second, the embodiment of the present invention obtains the body data of the above-mentioned target entry from the server, and preprocesses the body data of the above-mentioned target entry. The pre-obtaining and preprocessing of the body data of the above-mentioned target entry can reduce the time spent on displaying the body data of the above-mentioned target entry. Compared with the conventional technology that obtains the body data of the target entry from the server after receiving the access request, the embodiment of the present invention can at least reduce the time spent on obtaining the body data of the target entry from the server; therefore, the embodiment of the present invention can improve the display speed of the target entry in the information stream.

[0019] Moreover, the embodiment of the present invention selectively determines a target entry from the information stream of the page according to the historical behavior data of the user for the information stream. In this way, compared with pre-obtaining and preprocessing all entries of the information stream, the embodiment of the present invention pre-obtains and preprocesses the target entry, which can save the storage space of the terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a schematic diagram of an information stream of a page according to an embodiment of the present invention;

[0021] Figure 2It is a flowchart of the steps of a page processing method according to an embodiment of the present invention;

[0022] Figure 3 It is a schematic diagram of the information flow and habitual operation area of a page according to an embodiment of the present invention;

[0023] Figure 4 It is a schematic diagram of a view control for displaying a target entry on a page according to an embodiment of the present invention;

[0024] Figure 5 It is a flowchart of the steps of a page processing method according to an embodiment of the present invention;

[0025] Figure 6 It is a schematic structural diagram of a page processing device according to an embodiment of the present invention;

[0026] Figure 7 It is a structural block diagram of a device for page processing shown according to an exemplary embodiment;

[0027] Figure 8 It is a schematic structural diagram of a server in some embodiments of the present invention. Specific embodiments

[0028] To make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0029] The embodiments of the present invention can be applied to page scenarios including information flows. The information flow specifically represents an information flow that continuously updates and presents content to users. The information flow of the page can be updated in response to the information flow update operation of the user. The information flow update operation can include, but is not limited to: a sliding operation, a refresh operation, etc.

[0030] Refer to Figure 1 , which shows a schematic diagram of the information flow of a page according to an embodiment of the present invention. Among them, the information flow of the page specifically includes n entries such as entry 1, entry 2, entry 3... entry n, where n can be an integer greater than 1. And the information flow of the page can be updated in response to an upward or downward sliding operation. In practical applications, the types of entries can include, but are not limited to: articles, audio, videos, etc. It can be understood that the specific types of entries in the embodiments of the present invention are not limited.

[0031] During the process of a user browsing the information stream, the user can perform a click operation on an item of interest to read the body content of that item. Currently, from the moment the user performs a click operation on an item to the complete presentation of the body content of that item, it usually takes a relatively long time, which results in a slow display speed of the item. For example, after receiving the user's click operation on an item, it is necessary to first obtain the body data of that item from the server, and then render the body data of that item. Both the acquisition and rendering of the body data of that item require a certain amount of time.

[0032] Regarding the technical problem of how to improve the display speed of items in the information stream, an embodiment of the present invention provides a page processing solution, which specifically includes: determining a target item from the information stream of the page according to the historical behavior data of the user for the information stream; obtaining the body data of the above target item from the server, and preprocessing the body data of the target item to obtain a corresponding preprocessing result; in response to the user's access request for the above target item, displaying the body data of the target item according to the above preprocessing result.

[0033] Since the historical behavior data of the user for the information stream can reflect the user's operation habits for the information stream, therefore, the target item determined in the embodiment of the present invention can conform to the user's operation habits for the information stream. In other words, the target item determined in the embodiment of the present invention can be an item with a relatively high access probability in the information stream.

[0034] The embodiment of the present invention obtains the body data of the above target item from the server and preprocesses the body data of the above target item. The pre-acquisition and preprocessing of the body data of the above target item can reduce the time spent on displaying the body data of the above target item. Compared with the traditional technology of obtaining the body data of the target item from the server after receiving the access request, the embodiment of the present invention can at least reduce the time spent on obtaining the body data of the target item from the server; therefore, the embodiment of the present invention can improve the display speed of the target item in the information stream.

[0035] Moreover, the embodiment of the present invention selectively determines a target item from the information stream of the page according to the historical behavior data of the user for the information stream. In this way, compared with pre-acquiring and preprocessing all items in the information stream, the embodiment of the present invention pre-acquires and preprocesses the target item, which can save the storage space of the terminal.

[0036] The page processing method provided by the embodiment of the present invention can be applied to the application environment of the client and the server. The client and the server are located in a wired or wireless network, and through this wired or wireless network, the client and the server perform data interaction.

[0037] In practical applications, the client can run on a terminal. For example, the client can be an APP (Application) running on the terminal, such as a news APP, a search APP, etc.

[0038] In a specific implementation, the above terminal may include: a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, an in-vehicle computer, a desktop computer, a set-top box, a smart TV, a wearable device, a smart speaker, and so on. It can be understood that the embodiments of the present invention do not limit the specific terminal.

[0039] In a specific implementation, the client can request an information stream from the server and provide the information stream to the user via a page. As Figure 1 shown, the information stream may include multiple entries. Information such as the title and picture of an entry can be displayed in the area of a single entry to help the user determine whether to access the corresponding entry. In the case of needing to access an entry, the user can trigger an access request for the entry, and the triggering manner of the access request may include, but is not limited to, a click operation, etc.

[0040] Before receiving an access request for any entry in the information stream, the embodiments of the present invention can determine a target entry from the information stream of the page, obtain the text data of the above target entry from the server, and preprocess the text data of the above target entry to obtain a corresponding preprocessing result.

[0041] Since the target entry is determined based on the historical behavior data of the user for the information stream, and the historical behavior data can reflect the user's operation habits for the information stream, therefore, the target entry determined by the embodiments of the present invention can conform to the user's operation habits for the information stream. In other words, the target entry determined by the embodiments of the present invention can be an entry with a relatively high access probability in the information stream. In this way, the target entry of the embodiments of the present invention can match the entry corresponding to the access request, and moreover, the preprocessing result obtained by the embodiments of the present invention can play a role after receiving the access request to improve the display speed of the entry corresponding to the access request.

[0042] Method Embodiment 1

[0043] Referring to Figure 2 , a step flowchart of a page processing method according to an embodiment of the present invention is shown. This method can be applied to a client and specifically may include the following steps:

[0044] Step 201: Determine a target entry from the information flow on the page according to the user's historical behavior data for the information flow;

[0045] Step 202: Obtain the body data of the above target entry from the server, and preprocess the body data of the above target entry to obtain a corresponding preprocessing result;

[0046] Step 203: In response to the user's access request for the above target entry, display the body data of the above target entry according to the above preprocessing result.

[0047] Figure 2 The method embodiment shown can be executed by the client to improve the display speed of the target entry corresponding to the access request.

[0048] In Step 201, the information flow on the page can be updated with the user's information flow update operation. In a specific implementation, the information flow on the page can be determined when the user's information flow update operation stops, and a target entry can be determined from the information flow on the page according to the user's historical behavior data for the information flow. Taking the information flow update operation as a sliding operation as an example, the information flow on the page can be determined when the sliding operation stops, and a target entry can be determined from the information flow on the page according to the user's historical behavior data for the information flow. Of course, the information flow update operation can also be a refresh operation, and the embodiments of the present invention do not limit the specific information flow update operation.

[0049] Users will perform user behaviors during the process of browsing the information flow. These user behaviors can include: information flow update operations, and / or, entry access operations, etc. The user's historical behavior data for the information flow can represent the historical user behaviors performed by the user during the process of browsing the information flow. This historical behavior data can reflect the user's operation habits for the information flow.

[0050] The embodiments of the present invention can provide the following technical solutions for determining a target entry from the information flow on the page:

[0051] Technical solution 1:

[0052] In Technical solution 1, determining the target entry from the information flow on the page can specifically include: determining the user's habitual operation area according to the user's historical behavior data for the information flow; determining the target entry from the information flow on the page according to the position information corresponding to the habitual operation area and the entries in the information flow on the page.

[0053] In the process of implementing the embodiments of the present invention, the inventor found that the entry access operations of users are often related to the operation habits of users. The operation habits of users may include: line-of-sight focus habits, and / or, handheld terminal habits, etc. The above operation habits make users tend to click on specific areas when performing entry access operations; moreover, different users may correspond to different specific areas, and the embodiments of the present invention may refer to this specific area as the habitual operation area. For example, some users tend to click on the top area of the screen; for another example, some users tend to click on the middle area of the screen; for yet another example, some users tend to click on the bottom area of the screen, etc. Or, some users tend to click on the left area of the screen, while some users tend to click on the right area of the screen, and so on. Therefore, there is a certain rule between the habitual operation area of users and the historical behavior data of users.

[0054] In one implementation, the historical behavior data may be applicable to the operation scenario of a touch screen. The above historical behavior data specifically includes: the touch coordinate points of the user. The determination of the habitual operation area of the user may specifically include: determining the number of touch coordinate points within the area unit; and obtaining the habitual operation area of the user from multiple area units according to the number of touch coordinate points within the area unit.

[0055] In one embodiment, the above area unit may be an area with a preset size in a coordinate system. Optionally, the above area unit may be a grid. For example, the screen may be evenly divided into m×n grids of m rows and n columns according to the width and height. Assuming that m and n take values of 100 and 200 respectively; then the screen can be evenly divided into 20,000 grids.

[0056] The embodiments of the present invention may first count the number of touch coordinate points falling into each grid, denoted as Num1(i,j), where i and j respectively represent the grid numbers, 0≤i≤m, 0≤j≤n; then, in the order from largest to smallest of the number of touch coordinate points within the area unit, obtain the target area unit from multiple area units; optionally, the target grid with the largest Num1(i,j) can be counted, and the center of the target grid can be taken as the center of the habitual operation area.

[0057] In another embodiment, the area unit may be a dynamic area centered on the touch coordinate point, that is, each touch coordinate point may correspond to an area unit. Optionally, the area unit may be a circular or polygonal area centered on the touch coordinate point. It can be understood that the embodiments of the present invention do not limit the specific shape of the area unit.

[0058] The embodiments of the present invention may obtain the target area unit from multiple area units in the order from largest to smallest of the number of touch coordinate points within the area unit, and take the center of the target area unit as the center of the habitual operation area.

[0059] After determining the center of the habitual operation area, the boundary of the habitual operation area can be determined according to the ratio of the number of touch coordinate points in the habitual operation area to the number of touch coordinate points in the entire screen area. For example, the ratio can be greater than a ratio threshold, and those skilled in the art can determine the ratio threshold according to actual application requirements, for example, the ratio threshold can be 0.4, 0.6, etc.

[0060] In a specific implementation, the target item can be determined from the information flow of the page according to the position information corresponding to the customary operation area and the items in the information flow of the page.

[0061] For example, the items falling into the customary operation area may be taken as target items.

[0062] For another example, whether the entry can be used as the target entry can be determined based on the distance between the first center of the habitual operation area and the second center of the entry in a preset direction. For example, when the habitual operation area is a horizontal area, the preset direction can be a vertical area. In this case, whether the entry can be used as the target entry can be determined based on the difference between the vertical coordinates of the first center and the second center.

[0063] In practical applications, if the absolute value of the difference is less than the product of the height of the habitual operation area and the preset ratio, the entry can be used as the target entry. The preset ratio can be a positive number less than 1, for example, it can be a value such as 0.5.

[0064] Reference Figure 3 , shows a schematic diagram of the information flow and the habitual operation area of a page in an embodiment of the present invention, wherein the information flow of the page specifically includes: items 1 to 5, and the user's habitual operation area is shown in the dotted box 301. Then, by applying the technical solution 1 of the embodiment of the present invention, it can be considered that the target items that the user is more inclined to click include: items 1 to 3, and the user's probability of clicking on items 4 and 5 is relatively low.

[0065] In summary, Technical Solution 1 determines the target item from the information flow of the page according to the location information corresponding to the habitual operation area and the items in the information flow of the page. Since the habitual operation area is obtained based on the user's personalized historical behavior data, it can reflect the user's personalized operation habits; therefore, Technical Solution 1 can obtain the target item that the user is more inclined to visit in terms of operation habits, that is, the target item with a higher access probability.

[0066] Technical solution 2,

[0067] In Technical Solution 2, the determination of the target entry from the information flow of the page may specifically include: determining the attention characteristics of the user for the entries in the information flow of the page according to the historical behavior data of the user for the information flow; and determining the target entry from the information flow of the page according to the attention characteristics.

[0068] The above attention characteristics may represent the degree of attention or the degree of preference of the user for the entry. The historical behavior data of the user for the information flow may include the entries browsed by the user. In an embodiment of the present invention, the attention characteristics of the user for the entry may be determined based on the analysis of the historical behavior data.

[0069] In one implementation, the determination of the attention characteristics of the user for the entries in the information flow of the page may specifically include: determining the user label according to the historical behavior data of the user for the information flow; and determining the attention characteristics of the user for the entries in the information flow of the page according to the user label and the characteristic information of the entries in the information flow of the page.

[0070] In practical applications, the entries in the historical behavior data may be clustered to obtain the user label. Alternatively, the user label may be obtained according to the characteristic information of the entries in the historical behavior data.

[0071] The characteristic information of the entry may include: keywords and / or popularity information.

[0072] In practical applications, statistical methods, user feedback methods or manual calibration methods may be used to determine the keywords of the entry. For example, TF-IDF (term frequency–inverse document frequency) is a statistical method. Its main idea is that if a word or phrase appears frequently TF in a document and rarely appears in other articles, it is considered that this word or phrase has good category discrimination ability and is suitable to be used as the keyword of the document. It can be understood that the specific determination method of the keywords of the entry in the embodiment of the present invention is not limited.

[0073] The popularity information can be used to represent news or information that is more concerned or welcomed by the general public. Usually, the higher the popularity of the entry, the higher the degree of attention of the user to the entry.

[0074] In the process of determining the attention characteristics of the user for the entries in the information flow of the page according to the user label and the characteristic information of the entries in the information flow of the page, the first vector corresponding to the user label and the second vector corresponding to the characteristic information of the entry may be determined respectively, and the attention characteristics of the user for the entries in the information flow of the page may be determined according to the matching degree between the first vector and the second vector.

[0075] In another implementation, a data analyzer can be used to determine the user's attention characteristics for the entries in the information flow of the page.

[0076] In an alternative embodiment of the present invention, a mathematical model can be trained based on training data to obtain a data analyzer, which can represent the mapping relationship between the input data (historical behavior data and entries) and the output data (attention characteristics). The output data of the data analyzer can include: the attention characteristics of the user of the historical behavior data for any entry. During the processing, the data analyzer can utilize the feature information of the entry.

[0077] A mathematical model is a scientific or engineering model constructed using mathematical logic methods and mathematical language. A mathematical model is a mathematical structure that generally or approximately represents, in mathematical language, the characteristics or quantitative dependencies of a certain thing system. This mathematical structure is a relational structure depicted by means of mathematical symbols. A mathematical model can be one or a set of algebraic equations, differential equations, difference equations, integral equations, or statistical equations and their combinations, which quantitatively or qualitatively describe the mutual relationships or causal relationships between the variables of the system. In addition to the mathematical models described by equations, there are also models described by other mathematical tools, such as algebra, geometry, topology, mathematical logic, etc. Among them, the mathematical model describes the behavior and characteristics of the system rather than the actual structure of the system. Among them, methods such as machine learning and deep learning methods can be used for training the mathematical model. Machine learning methods can include: linear regression, decision tree, random forest, etc. Deep learning methods can include: Convolutional Neural Networks (CNN), Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), etc.

[0078] In the process of determining the target entry from the information flow of the page according to the above attention characteristics, an entry with an attention characteristic value greater than the attention threshold can be determined from the information flow of the page as the target entry. Or, alternatively, N target entries can be selected from multiple entries in the information flow in descending order of the attention characteristic value. Among them, N can be a positive integer, and the attention characteristic value can be a specific value for measuring the attention characteristic.

[0079] In the embodiments of the present invention, optionally, the number N of the target entries can be determined according to the remaining memory of the terminal. Generally, the more sufficient the remaining memory is, the more the number of the target entries is. In a specific implementation, the upper limit value can be determined according to the remaining memory and the unit memory occupied by a target entry, and the number of the target entries can be controlled within the upper limit value.

[0080] In summary, according to the user's attention characteristics of the entries in the information stream of the page, Technical Solution 2 determines the target entry from the information stream of the page, and the target entry that the user is more inclined to access, that is, the target entry with a relatively high access probability, can be obtained.

[0081] The process of determining the target entry from the information stream of the page is introduced in detail through Technical Solution 1 to Technical Solution 2 above. It can be understood that those skilled in the art can adopt any one or combination of Technical Solution 1 to Technical Solution 2 according to actual application requirements, or other technical solutions can also be adopted.

[0082] For example, in the case of adopting the combination of Technical Solution 1 and Technical Solution 2, the embodiments of the present invention do not limit the execution order of Technical Solution 1 and Technical Solution 2. For example, Technical Solution 1 can be first used to determine the alternative entries, and then Technical Solution 2 can be used to screen the alternative entries. The screened alternative entries are the target entries. Or, Technical Solution 1 and Technical Solution 2 can be executed in parallel. Among them, the processing result of Technical Solution 1 includes the first alternative entries, the processing result of Technical Solution 2 includes the second alternative entries, and the intersection of the first alternative entries and the second alternative entries is taken to obtain the target entry.

[0083] In step 202, a request for obtaining the text data can be sent to the server, and the text data returned by the server is received. The text data can be the detailed data of the entry. Taking the entry as an article as an example, the text data can be the specific content of the article. The identity (ID) of the entry can be carried in the request for obtaining the text data.

[0084] The embodiments of the present invention can also preprocess the text data of the above-mentioned target entry to obtain the corresponding preprocessing result. The above-mentioned preprocessing result can play a role in the display process of the entry after receiving the access request, so as to improve the display speed of the entry corresponding to the access request.

[0085] In a specific implementation, the preprocessing of the text data of the target entry specifically includes:

[0086] pre-storing the text data of the target entry; or

[0087] pre-rendering the text data of the target entry.

[0088] Among them, pre-storing can pre-store the text data of the target entry locally before receiving the access request for the target entry; the corresponding preprocessing result can include information such as the storage address of the text data of the target entry. In the case where the preprocessing is pre-storing, the time cost of obtaining the text data from the server can be saved.

[0089] Pre-rendering can pre-display the body data of the target entry before receiving an access request for the target entry; the corresponding preprocessing result may include: the pre-rendered body data. In the case where the preprocessing is pre-rendering, the time cost of obtaining the body data from the server and the time cost of rendering the body data can be saved.

[0090] In practical applications, the pre-rendering of the body data of the target entry specifically may include: creating and displaying an entry page for the target entry; and loading the body data of the target entry in the above entry page.

[0091] In practical applications, the entry page may be a web (World Wide Web) page. A web page is a file organized in HTML (Hyper Text Markup Language) format on the World Wide Web.

[0092] In a specific implementation, a view control for creating and displaying an entry page for the target entry may be created. For example, the view control may be a webview control. In the case of pre-rendering, the size of the view control may be a first size, and the first size may be a smaller size. For example, the view control is a rectangle, and the first sizes of the rectangle are W1 and L1 respectively, where W1 represents the width and L1 represents the length, and both W1 and L1 are smaller values. It can be understood that the specific values of W1 and L1 in the embodiments of the present invention are not limited.

[0093] Refer to Figure 4 , which shows a schematic diagram of a view control for displaying a target entry on a page according to an embodiment of the present invention. Assume that the page is Figure 3 the page shown. The target entries corresponding to the page include: entry 1, entry 2, and entry 3. Then, the view control 401 of entry 1, the view control 402 of entry 2, and the view control 403 of entry 3 can be respectively displayed on the page. It can be understood that Figure 4 the position and the first size of the view control in

[0094] In practical applications, the data of the entry page corresponding to the target entry may be saved to a buffer pool. For example, the buffer pool may save the identifier of the target entry and the data of the corresponding entry page. The data of the entry page may include: the data of the view control.

[0095] The buffer pool may refer to a memory block for transferring data from a source to a target. Since the buffer pool needs to occupy the memory of the terminal, in the embodiments of the present invention, the number N of target entries may be determined according to the remaining memory of the terminal.

[0096] In step 203, the user can generate an access request for the above-mentioned target entry via an entry access operation. The entry access operation can be a click operation by the user on the above-mentioned target entry, etc. It can be understood that the embodiments of the present invention do not limit the specific entry access operation.

[0097] When the preprocessing is pre-stored, the preprocessing result may include: the storage address of the text data of the target entry. In this case, according to the above preprocessing result, the text data of the target entry is displayed. Specifically, it may include: reading the text data of the target entry from the above storage address, rendering the read text data, and displaying the rendering result.

[0098] When the preprocessing is pre-rendered, the data of the target entry page corresponding to the target entry can be read from the buffer pool and the data of the target entry page is displayed in the target page. Specifically, the data of the target entry page corresponding to the target entry can be read from the buffer pool according to the identifier of the target entry corresponding to the access request. The target page can be the page where the text data of the target entry corresponding to the access request is located. For example, the target page can be a newly opened page.

[0099] In an implementation manner of the present invention, the page displayed to the user can include two layers. One of the layers can be the target entry page, and the target entry page can be a web page for displaying the text data of the target entry; the other layer can be the native page of the client. The native page is equivalent to a container, which can embed a web page or other pages, such as the navigation page at the top (including the back button, more button, etc.); therefore, the native page can provide extended user interaction functions. It can be understood that for the implementation manner of the above two-layer page, in fact, the embodiments of the present invention do not limit the specific implementation manner of the page. For example, the page can also be a single-layer page.

[0100] In specific implementation, since the view control of the target entry has been displayed in the pre-rendering stage. Therefore, when an access request is received, the view control can be placed in the target page and the size of the view control is adjusted. For example, the size of the view control can be adjusted from the first size to the second size. The second size can be the standard size of the page. Assuming the first size is W2 and L2 respectively, then W2 and L2 can be larger sizes, such as sizes close to the screen size.

[0101] In summary, for the page processing method according to the embodiments of the present invention, the historical behavior data of the user for the information stream can reflect the user's operation habits for the information stream; therefore, the target entry determined by the embodiments of the present invention can conform to the user's operation habits for the information stream. In other words, the target entry determined by the embodiments of the present invention can be an entry with a relatively high access probability in the information stream.

[0102] Secondly, the embodiments of the present invention obtain the text data of the above target entry from the server and preprocess the text data of the above target entry. The pre-obtaining and preprocessing of the text data of the above target entry can reduce the time spent on displaying the text data of the above target entry. Compared with the conventional technology of obtaining the text data of the target entry from the server after receiving the access request, the embodiments of the present invention can at least reduce the time spent on obtaining the text data of the target entry from the server; therefore, the embodiments of the present invention can improve the display speed of the target entry in the information stream.

[0103] Moreover, the embodiments of the present invention selectively determine the target entry from the information stream of the page according to the historical behavior data of the user for the information stream. In this way, compared with pre-obtaining and preprocessing all the entries in the information stream, the embodiments of the present invention pre-obtain and preprocess the target entry, which can save the storage space of the terminal.

[0104] Method Embodiment Three

[0105] Referring to Figure 5 , a step flowchart of a page processing method according to an embodiment of the present invention is shown. This method can be applied to a client and specifically may include the following steps:

[0106] Step 501: Determine a target entry from the information stream of the page according to the historical behavior data of the user for the information stream;

[0107] Step 502: Obtain the text data of the above target entry from the server;

[0108] Step 503: Perform pre-rendering on the text data of the above target entry to obtain pre-rendered text data;

[0109] Step 504: When receiving an access request from the user for the above target entry, display the pre-rendered text data in the target page corresponding to the target entry where the access request is located.

[0110] In a specific implementation, the process of performing pre-rendering on the text data of the above target entry in step 503 may specifically include: creating and displaying a view control for the entry page for the target entry, loading the text data of the above target entry in the above view control, and saving the identifier of the target entry and the data of its corresponding view control to a buffer pool.

[0111] Accordingly, step 504 displays the pre-rendered text data within the target page corresponding to the target entry of the access request, which may specifically include: when receiving an access request from a user for the above-mentioned target entry, reading the data of the corresponding view control from the buffer pool according to the identifier of the target entry corresponding to the access request, and displaying the data of the view control within the target page corresponding to the target entry of the access request.

[0112] Take Figure 3 as an example. Assume that three target entries, such as entry 1, entry 2, and entry 3, are determined from the information stream of the page, and based on pre-rendering, the view controls of the three target entries are respectively displayed, and the identifiers of the three target entries and the data of the corresponding view controls are respectively saved in the buffer pool. Then, when receiving an access request, the data of the corresponding view control can be read from the buffer pool according to the identifier of the target entry corresponding to the access request. Assume that the target entry corresponding to the access request is entry 1, then the data of the view control corresponding to entry 1 can be read from the buffer pool, and the data of the view control corresponding to entry 1 is displayed within the target page where entry 1 is located. For example, the target page may be a newly opened page.

[0113] In one implementation, during the pre-rendering stage, a view control of a first size can be displayed. The first size can be a small size, thus reducing the interference of the view control to the user. During the access stage, the view control can be adjusted to a second size. The second size can be a large size, such as the standard size of the page, thus enabling the user to read the text data normally.

[0114] In summary, for the page processing method according to the embodiments of the present invention, the historical behavior data of the user for the information stream can reflect the operation habits of the user for the information stream; therefore, the target entries determined according to the embodiments of the present invention can conform to the operation habits of the user for the information stream. In other words, the target entries determined according to the embodiments of the present invention can be the entries with a relatively high access probability in the information stream.

[0115] Secondly, according to the historical behavior data of the user for the information stream, the embodiments of the present invention selectively determine target entries from the information stream of the page. In this way, compared with pre-obtaining and pre-processing all entries of the information stream, the embodiments of the present invention pre-obtain and pre-process the target entries, which can save the storage space of the terminal.

[0116] Moreover, before receiving an access request for a target entry, the embodiments of the present invention pre-render the body data of the target entry. After receiving the access request for the target entry, the pre-rendered body data can be directly displayed in the target page corresponding to the target entry where the access request is located. Since the time cost of obtaining the body data from the server and the time cost of rendering the body data can be saved, the display speed of the entries in the information flow can be effectively improved.

[0117] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of combinations of movement actions. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described order of movement actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the movement actions involved are not necessarily essential for the embodiments of the present invention.

[0118] Device embodiments

[0119] Figure 6 It is a schematic structural diagram of a page processing device provided by an embodiment of the present invention, and the page processing device is usually implemented in a hardware and / or software manner.

[0120] The page processing device may specifically include the following modules: a target entry determination module 601, a preprocessing module 602, and an access response module 603.

[0121] Among them, the target entry determination module 601 is used to determine a target entry from the information flow of the page according to the historical behavior data of the user for the information flow;

[0122] The preprocessing module 602 is used to obtain the body data of the target entry from the server and preprocess the body data of the target entry to obtain a corresponding preprocessing result; and

[0123] The access response module 603 is used to respond to the user's access request for the target entry and display the body data of the target entry according to the preprocessing result.

[0124] Optionally, the target entry determination module 601 may specifically include:

[0125] The area determination module is used to determine the user's habitual operation area according to the historical behavior data of the user for the information flow;

[0126] The first entry determination module is used to determine a target entry from the information flow of the page according to the position information corresponding to the above-mentioned habitual operation area and the entries in the information flow of the page.

[0127] Optionally, the above historical behavior data may specifically include: the touch coordinate points of the user, and the above area determination module may specifically include:

[0128] A quantity determination module, configured to determine the quantity of touch coordinate points within the area unit;

[0129] A selection module, configured to obtain the user's habitual operation area from multiple area units according to the quantity of touch coordinate points within the above area unit.

[0130] Optionally, the above target entry determination module may specifically include:

[0131] A feature determination module, configured to determine the attention features of the user for the entries in the information stream of the page according to the historical behavior data of the user for the information stream;

[0132] A second entry determination module, configured to determine the target entry from the information stream of the page according to the above attention features.

[0133] Optionally, the above feature determination module may specifically include:

[0134] A user label determination module, configured to determine user labels according to the historical behavior data of the user for the information stream;

[0135] An attention feature determination module, configured to determine the attention features of the user for the entries in the information stream of the page according to the above user labels and the feature information of the entries in the information stream of the page.

[0136] Optionally, the preprocessing module 602 may specifically include:

[0137] A pre-storage module, configured to pre-store the text data of the above target entry; or

[0138] A pre-rendering module, configured to pre-render the text data of the above target entry.

[0139] Optionally, the above pre-rendering module may specifically include:

[0140] A creation module, configured to create and display an entry page for the target entry;

[0141] A loading module, configured to load the text data of the above target entry in the above entry page.

[0142] Optionally, the above creation module may specifically include:

[0143] A view control creation module, configured to create and display a view control of the entry page for the target entry; the size of the above view control is a first size.

[0144] Optionally, the access response module 603 may specifically include:

[0145] An adjustment module, configured to adjust the size of the view control from a first size to a second size.

[0146] Optionally, the number of the target entries may be determined according to the remaining memory of the terminal. In other words, the number of the target entries may be determined according to the remaining memory of the terminal.

[0147] For the apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For related parts, please refer to the partial description of the method embodiments.

[0148] Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, reference may be made to each other.

[0149] Regarding the apparatus in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0150] An embodiment of the present invention further provides an apparatus for training, including a memory, and one or more programs, where one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include operation instructions for performing the operations included in the foregoing method.

[0151] Figure 7 It is a block diagram of an apparatus 1100 for page processing shown according to an exemplary embodiment. For example, the apparatus 1100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0152] Referring to Figure 7 , the apparatus 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power supply component 1106, a multimedia component 1108, an audio component 1110, an input / output (I / O) interface 1112, a sensor component 1114, and a communication component 1116.

[0153] The processing component 1102 generally controls the overall operation of the device 1100, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing element 1102 may include one or more processors 1120 to execute download instructions to complete all or part of the steps of the above-described method. In addition, the processing component 1102 may include one or more modules to facilitate the interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate the interaction between the multimedia component 1108 and the processing component 1102.

[0154] The memory 1104 is configured to store various types of data to support the operation of the device 1100. Examples of such data include download instructions for any application or method operating on the device 1100, contact data, phone book data, messages, pictures, videos, and the like. The memory 1104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0155] The power component 1106 provides power to various components of the device 1100. The power component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1100.

[0156] The multimedia component 1108 includes a screen that provides an output interface between the device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe movement actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1108 includes a front camera and / or a rear camera. When the device 1100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0157] The audio component 1110 is configured to output and / or input audio signals. For example, the audio component 1110 includes a microphone (MIC) that is configured to receive external audio signals when the device 1100 is in an operating mode, such as a call mode, a recording mode, and a page handling mode. The received audio signals can be further stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio component 1110 further includes a speaker for outputting audio signals.

[0158] The I / O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, and the peripheral interface modules may be a keyboard, a click wheel, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.

[0159] The sensor component 1114 includes one or more sensors for providing status assessments of various aspects of the device 1100. For example, the sensor component 1114 can detect the on / off state of the device 1100, the relative positioning of components, such as the display and keypad of the device 1100, the sensor component 1114 can also detect a change in the position of the device 1100 or a component of the device 1100, the presence or absence of user contact with the device 1100, the orientation or acceleration / deceleration of the device 1100, and the temperature change of the device 1100. The sensor component 1114 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 1114 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1114 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0160] The communication component 1116 is configured to facilitate communication between the device 1100 and other devices in a wired or wireless manner. The device 1100 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0161] In an exemplary embodiment, the apparatus 1100 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0162] In an exemplary embodiment, a non-transitory computer-readable storage medium including download instructions is also provided, such as a memory 1104 including download instructions. The above download instructions can be executed by a processor 1120 of the apparatus 1100 to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0163] Figure 8 It is a schematic structural diagram of a server in some embodiments of the present invention. The server 1900 may vary greatly due to different configurations or performances, and may include one or more central processing units (CPUs) 1922 (for example, one or more processors) and a memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 may be transient storage or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Further, the central processor 1922 may be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.

[0164] The server 1900 may further include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input / output interfaces 1958, one or more keyboards 1956, and / or one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0165] When the download instruction in the storage medium is executed by a processor of a device (a terminal or a server), the device is enabled to execute a page processing method, the method including: determining a target entry from the information stream of a page according to historical behavior data of a user with respect to the information stream; obtaining text data of the target entry from a server, and preprocessing the text data of the target entry to obtain a corresponding preprocessing result; and in response to an access request of the user with respect to the target entry, displaying the text data of the target entry according to the preprocessing result.

[0166] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include known common knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.

[0167] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.

[0168] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

[0169] The above has introduced in detail a page processing method, a page processing device, a device for page processing, and a machine-readable medium provided by an embodiment of the present invention. Specific examples are used herein to elaborate on the principles and implementation manners of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, there will be changes in the specific implementation manners and application scopes according to the idea of the present invention. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A page processing method, characterized in that, Applied to a client, the method includes: Based on the touch coordinate points of the user on the screen area of the touch screen in the historical behavior data of the user for the information stream, determine the number of touch coordinate points in each area unit in the screen area. According to the number of touch coordinate points in each area unit, obtain the target area unit from multiple area units in the screen area, and take the center of the target area unit as the center of the user's habitual operation area. Determine the boundary of the habitual operation area based on the ratio of the number of touch coordinate points in the habitual operation area to the number of touch coordinate points in the screen area, so as to obtain the habitual operation area; determine alternative entries according to the position information corresponding to the entries in the information stream of the page and the habitual operation area; Based on the historical behavior data of the user for the information stream, determine the attention characteristics of the user for the entries in the information stream of the page; determine the target entry from the alternative entries according to the attention characteristics; determine the upper limit value according to the remaining memory of the terminal and the unit memory occupied by one target entry, and control the number of the target entries within the upper limit value; Obtain the text data of the target entry from the server, and preprocess the text data of the target entry to obtain the corresponding preprocessing result; In response to the user's access request for the target entry, display the text data of the target entry according to the preprocessing result.

2. The method according to claim 1, wherein The determining the attention characteristics of the user for the entries in the information stream of the page includes: Based on the historical behavior data of the user for the information stream, determine the user label; Based on the user label and the feature information of the entries in the information stream of the page, determine the attention characteristics of the user for the entries in the information stream of the page.

3. The method according to claim 1 or 2, characterized in that, The preprocessing the text data of the target entry includes: Pre-storing the text data of the target entry; or Create and display an entry page for the target entry; load the text data of the target entry in the entry page, and the entry page is a web page; the entry page and the native page of the client form a display page, and the native page embeds a web page and a navigation page.

4. The method according to claim 3, wherein The creating and displaying an entry page for the target entry includes: Create and display a view control for the entry page of the target entry; the size of the view control is the first size.

5. The method according to claim 4, wherein The displaying the text data of the target entry includes: Adjust the size of the view control from the first size to the second size.

6. A page processing device, characterized in that, The device is applied to a client and includes: A target entry determination module, specifically configured to determine the number of touch coordinate points in each regional unit in the screen area according to the touch coordinate points of the user on the screen area of the touch screen in the historical behavior data of the user for the information stream, obtain a target regional unit from multiple regional units of the screen area according to the number of touch coordinate points in each regional unit, and take the center of the target regional unit as the center of the user's habitual operation area. Determine the boundary of the habitual operation area according to the ratio of the number of touch coordinate points in the habitual operation area to the number of touch coordinate points in the screen area, so as to obtain the habitual operation area; determine alternative entries according to the position information corresponding to the entries in the information stream of the page and the habitual operation area; determine the user's attention characteristics for the entries in the information stream of the page according to the historical behavior data of the user for the information stream; determine a target entry from the alternative entries according to the attention characteristics; determine an upper limit value according to the remaining memory of the terminal and the unit memory occupied by a target entry, and control the number of the target entries within the upper limit value; A preprocessing module, configured to obtain the text data of the target entry from the server and preprocess the text data of the target entry to obtain a corresponding preprocessing result; An access response module, configured to respond to a user's access request for the target entry, and display the text data of the target entry according to the preprocessing result.

7. An apparatus for page processing, characterized in that, It includes a memory and one or more programs, wherein one or more programs are stored in the memory, and when the program is executed by one or more processors, the steps of the method described in any one of claims 1 to 5 are implemented.

8. A machine-readable medium, on which a download instruction is stored, and when executed by one or more processors, causes the device to execute the method described in one or more of claims 1 to 5.

Citation Information

Patent Citations

  • Preloading method and device for webpage information

    CN107066632A

  • Webpage loading method and device

    CN109948090A

  • Page display method and device, storage medium and electronic equipment

    CN112307240A