A webpage processing method, apparatus, and device for webpage processing.

By determining the webpage category and applying preset layout information to standardize the layout of webpage content, the problem of poor browsing experience caused by irregular webpage content is solved, and higher readability and user satisfaction are achieved.

CN111708960BActive Publication Date: 2026-11-17BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010561220.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-18
Publication Date
2026-11-17
Estimated Expiration
2040-06-18

AI Technical Summary

Technical Problem

Irregular webpage layout leads to a poor user browsing experience, especially when text and images are mixed together, affecting readability.

Method used

By determining the webpage category, the original content is standardized and formatted using the formatting information corresponding to the preset webpage category. This includes obtaining formatting information based on the original and formatted content samples, clarifying the theme of each part, and displaying it independently.

Benefits of technology

It improved the standardization and readability of the layout, enhancing the user's browsing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111708960B_ABST
    Figure CN111708960B_ABST
Patent Text Reader

Abstract

This invention provides a webpage processing method, apparatus, and device for webpage processing. The method specifically includes: determining whether the webpage category corresponding to the webpage is a preset webpage category; if the webpage category is a preset webpage category, then formatting the original content of the webpage according to the formatting information corresponding to the preset webpage category to obtain formatted content corresponding to the webpage; wherein the formatting information is obtained based on a sample of the original content and a sample of the formatted content corresponding to the preset webpage category. This invention can improve the standardization and readability of the formatted content, thereby enhancing the user's browsing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet technology, and in particular to a webpage processing method, apparatus, and apparatus for webpage processing. Background Technology

[0002] With the popularization of internet technology, the internet has become one of the most important ways for users to obtain information. A typical webpage includes at least one type of content, such as text content or non-text content. Text content is the primary carrier of information; non-text content, such as images and audio / video playback plugins, can supplement text content.

[0003] In the process of implementing the embodiments of the present invention, the inventors discovered that in general web pages, at least one type of web page content is irregularly laid out, such as a large amount of text content mixed together, or text content mixed with images, which affects the user's browsing experience. Summary of the Invention

[0004] This invention provides a webpage processing method, apparatus, and device for webpage processing, which can improve the standardization and readability of typed content, thereby enhancing the user's browsing experience.

[0005] To address the above problems, embodiments of the present invention disclose a webpage processing method, including:

[0006] Determine whether the webpage category corresponds to a preset webpage category;

[0007] If the webpage category is a preset webpage category, then the original content of the webpage is formatted according to the formatting information corresponding to the preset webpage category to obtain the formatted content corresponding to the webpage; wherein, the formatting information is obtained based on the original content sample and the formatted content sample corresponding to the preset webpage category.

[0008] To address the above problems, this invention discloses a search method, the method comprising:

[0009] Receive search terms;

[0010] Determine the search result item corresponding to the search term; if the webpage category of the landing page corresponding to the search result item is a preset webpage category, the search result item includes: the layout content contained in the corresponding landing page; the layout content is obtained by arranging the original content of the landing page according to the layout information corresponding to the preset webpage category; the layout information is obtained based on the original content sample and the layout content sample corresponding to the preset webpage category.

[0011] On the other hand, embodiments of the present invention disclose a web page processing apparatus, including:

[0012] The judgment module is used to determine whether the webpage category corresponding to the webpage is a preset webpage category;

[0013] The layout module is used to, if the webpage category is a preset webpage category, to layout the original content of the webpage according to the layout information corresponding to the preset webpage category, so as to obtain the layout content corresponding to the webpage; wherein, the layout information is obtained based on the original content sample and the layout content sample corresponding to the preset webpage category.

[0014] On the other hand, embodiments of the present invention disclose a search device, comprising:

[0015] The receiving module is used to receive search terms;

[0016] A determining module is used to determine the search result item corresponding to the search term; when the webpage category of the landing page corresponding to the search result item is a preset webpage category, the search result item includes: the layout content contained in the corresponding landing page; the layout content is obtained by arranging the original content of the landing page according to the layout information corresponding to the preset webpage category; the layout information is obtained based on the original content sample and the layout content sample corresponding to the preset webpage category.

[0017] In another aspect, embodiments of the present invention disclose an apparatus for web page processing, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs containing instructions for performing the following operations:

[0018] Determine whether the webpage category corresponds to a preset webpage category;

[0019] If the webpage category is a preset webpage category, then the original content of the webpage is formatted according to the formatting information corresponding to the preset webpage category to obtain the formatted content corresponding to the webpage; wherein, the formatting information is obtained based on the original content sample and the formatted content sample corresponding to the preset webpage category.

[0020] In another aspect, embodiments of the present invention disclose a machine-readable medium having instructions stored thereon that, when executed by one or more processors, cause a device to perform one or more of the web page processing methods described above.

[0021] The embodiments of the present invention have the following advantages:

[0022] This invention, in its embodiments, obtains layout information corresponding to a preset webpage category based on original content samples and layout content samples. The original content samples and layout content samples represent the webpage content sample before and after layout, respectively. Since the original content samples and layout content samples reflect the layout information and layout changes of the webpage content samples before and after layout, the layout information obtained in this invention can play a standardizing and regulating role in the layout of preset webpage categories. Thus, by layouting the original content of webpages under a preset webpage category based on the layout information corresponding to that category, the standardization and readability of the layout content can be improved, thereby enhancing the user's browsing experience. Attached Figure Description

[0023] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a schematic diagram of the application environment of a web page processing method according to an embodiment of the present invention;

[0025] Figure 2 This is a flowchart illustrating the steps of an embodiment of the webpage processing method of the present invention;

[0026] Figure 3 This is a flowchart illustrating the steps of an embodiment of the search method of the present invention;

[0027] Figure 4 This is a structural block diagram of an embodiment of a web page processing device according to the present invention;

[0028] Figure 5 This is a structural block diagram of an embodiment of a web page processing device according to the present invention;

[0029] Figure 6 This is a block diagram of an apparatus 800 for web page processing according to the present invention; and

[0030] Figure 7 These are schematic diagrams of the server structure in some embodiments of the present invention. Detailed Implementation

[0031] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0032] To address the technical problem of irregular webpage content layout affecting user browsing experience, this invention provides a webpage processing solution. This solution can determine whether the webpage category corresponding to the webpage is a preset webpage category. If the webpage category is a preset webpage category, the original content of the webpage is formatted according to the formatting information corresponding to the preset webpage category to obtain the formatted content corresponding to the webpage. The formatting information can be obtained based on a sample of the original content and a sample of the formatted content corresponding to the preset webpage category.

[0033] This invention, in its embodiments, obtains layout information corresponding to a preset webpage category based on original content samples and layout content samples. The original content samples and layout content samples represent the webpage content sample before and after layout, respectively. Since the original content samples and layout content samples reflect the layout information and layout changes of the webpage content samples before and after layout, the layout information obtained in this invention can play a standardizing and regulating role in the layout of preset webpage categories. Thus, by layouting the original content of webpages under a preset webpage category based on the layout information corresponding to that category, the standardization and readability of the layout content can be improved, thereby enhancing the user's browsing experience.

[0034] The preset webpage categories in this embodiment of the invention may include any of the following categories: lyrics, steps, recipes, problem-solving, and medical Q&A. It is understood that those skilled in the art can determine the preset webpage categories based on actual application needs, and this embodiment of the invention does not limit the specific preset webpage categories.

[0035] Taking the lyrics category as an example, suppose the original content of webpage A under the lyrics category specifically includes: large, disorganized blocks of text.

[0036] Suppose that the original content A of webpage A consists of the following text:

[0037] A1. A2. A3. A4. A5. A6.

[0038] In the original content, the text content of sections A1, A2, A3, A4, A5, A6, etc., is placed in a single paragraph, which is disorganized and affects readability.

[0039] In this embodiment of the invention, the layout information corresponding to the lyrics category is used to layout the original content A of webpage A, resulting in the following layout content A:

[0040] Song title: A1

[0041] Lyrics by: A2

[0042] Composer: A3

[0043] Singer: A4

[0044] Lyrics: A5

[0045] A6

[0046] …

[0047] Layout content A clearly defines the theme of each section. For example, A1 corresponds to the theme of "Song Title," A2 to "Lyrics," A3 to "Composition," A4 to "Vocal Performance," and A5 and A6 to "Lyrics." Layout content A clearly defines the theme of each section and displays the content corresponding to each theme independently, thus improving the readability of the layout.

[0048] The embodiments of the present invention can also aggregate and arrange content from different webpage categories corresponding to the same topic to present the correlation between content from different webpage categories.

[0049] For example, content from different webpage categories corresponding to the same theme can include: text content and image content, or text content and audio / video playback plugins, etc. When text and image content are disorganized, the relationship between them cannot be discerned through layout. However, embodiments of this invention can aggregate and arrange text and image content using themes.

[0050] For example, the default webpage category could be "Steps," such as computer operation steps or food preparation steps. Each step can correspond to a theme and may include both text and images. For instance, in computer operation steps, the text could be a written description of the steps, and the images could be pictures of the user interface, such as dialog boxes. Similarly, in food preparation steps, the text could be a written description of the preparation process, and the images could be pictures of ingredients, finished products, or semi-finished products.

[0051] In traditional technologies, different categories of webpage content are typically arranged independently and separately. For example, a webpage might include text areas and image areas, with text areas containing textual instructions and image areas containing images illustrating those instructions. This approach often fails to demonstrate the connection between the text and image content.

[0052] The embodiments of the present invention aggregate and arrange text content and image content according to the steps to present the relationship between text content and image content.

[0053] In one example of the present invention, the layout content of the step category may include:

[0054] Step 1: Step 1 text content

[0055] Step 1 Image Content

[0056] Step 2: Step 2 text content

[0057] Step 2 Image Content

[0058] ...

[0059] Step n: Step n text content

[0060] Step n Image Content

[0061] The layout content obtained from the embodiments of the present invention can be viewed by users. Specifically, the layout content can be presented to users while they are browsing a webpage. Therefore, the embodiments of the present invention can be applied to browsing scenarios.

[0062] At least a portion of the layout content obtained in the embodiments of the present invention can be provided to users as content for search results.

[0063] In the field of search technology, a SERP (Search Engine Results Page) is provided to users based on the search terms they enter. A SERP is the results page returned by a search engine for a specific search term. A typical SERP usually contains a list of search results items. The page corresponding to a search result item is called a landing page, which is the first page linked to after clicking on a search result item. This landing page can be a webpage or a document.

[0064] Current search results typically include the landing page's title, link, and summary. For example, the summary might include layout details; a step-by-step landing page might include a sequence of steps, while lyrics might include a sequence of topics. Because search results provide users with more organized and readable information, the amount of information included in the search results can be increased.

[0065] The web page processing method provided in this invention can be applied to application environments such as websites and / or APPs (Applications).

[0066] The webpage processing method provided in this embodiment of the invention can be applied to... Figure 1 In the application environment shown, such as Figure 1 As shown, the client 100 and the server 200 are located in a wired or wireless network, and the client 100 and the server 200 interact with each other through the wired or wireless network.

[0067] Optionally, the client 100 can run on a terminal, which specifically includes, but is not limited to: smartphones, tablets, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptops, in-vehicle computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.

[0068] According to one embodiment, the operation of formatting the original content of a webpage can be performed by the server 200. For example, the server 200 pre-determines whether the webpage category corresponding to a webpage on a preset website is a preset webpage category. If so, it formats the original content of the webpage according to the formatting information corresponding to the preset webpage category to obtain the formatted content of the webpage. In this way, when the client 100 requests webpage content, the server 200 can provide the client 100 with the formatted content of the webpage.

[0069] According to another embodiment, the operation of formatting the original content of a webpage can be performed by the client 100. When the client 100 requests webpage content, the server 200 can provide the client 100 with the original content of the webpage. The client 100 can then understand the method of this embodiment, format the original content to obtain formatted content, and display the formatted content to improve the user's browsing experience.

[0070] In this embodiment of the invention, the server 200 can also provide search results items corresponding to the landing page when the webpage is used as the landing page, based on the layout content. For example, a summary of the search results items can be obtained based on the layout content. Then, the client 100 can display the corresponding search results items on the search results page to improve the user's search experience.

[0071] Method Example 1

[0072] Reference Figure 2 The diagram illustrates a flowchart of an embodiment of the webpage processing method of the present invention, which may specifically include the following steps:

[0073] Step 201: Determine whether the webpage category corresponding to the webpage is a preset webpage category;

[0074] Step 202: If the above webpage category is a preset webpage category, then the original content of the above webpage is formatted according to the formatting information corresponding to the preset webpage category to obtain the formatted content corresponding to the above webpage; wherein, the above formatting information can be obtained based on the original content sample and the formatted content sample corresponding to the preset webpage category.

[0075] Figure 2 At least one step in the illustrated embodiment can be executed by the server and / or the client. Of course, the embodiments of the present invention do not limit the specific subject executing each step.

[0076] In step 201, the webpage category corresponding to the webpage can be determined first, and then it can be determined whether the webpage category matches the preset webpage category.

[0077] Alternatively, classification methods can be used to determine whether a webpage belongs to a predefined webpage category. For example, a classification model can be used to determine whether a webpage belongs to a predefined webpage category.

[0078] The classification model described above can be a machine learning model. Broadly speaking, machine learning is a method that endows machines with the ability to perform functions that cannot be accomplished through direct programming. However, in a practical sense, machine learning is a method that uses data to train a model and then uses the model to make predictions. Machine learning methods can include: decision tree methods, linear regression methods, logistic regression methods, neural network methods, k-nearest neighbor methods, etc. It is understood that this embodiment of the invention does not limit the specific machine learning methods used. The classification model described above can have domain-specific classification capabilities.

[0079] In this embodiment of the invention, the webpage category corresponding to the webpage can be determined based on the webpage content. The webpage content may include: title content, and / or, body content. This embodiment of the invention can analyze the webpage content to obtain the webpage category; alternatively, the webpage content can be input into a classification model to obtain a judgment result regarding the webpage category or whether it is preset webpage content.

[0080] This invention can obtain corresponding layout information in advance for preset webpage categories, thereby possessing the ability to layout content corresponding to preset webpages. Therefore, this invention can first filter webpages based on their categories. Webpages belonging to the preset categories are retained, and layout is performed on these webpages; while webpages not belonging to the preset categories can be filtered out, meaning that webpages not belonging to the preset categories are not filtered.

[0081] The preset webpage categories in this embodiment of the invention may include any of the following categories: lyrics category, steps category, recipe category, problem-solving category, and medical Q&A category.

[0082] It is understood that those skilled in the art can determine the preset webpage categories according to actual application needs, and the embodiments of the present invention do not limit the specific preset webpage categories.

[0083] In step 202, layout information corresponding to a preset webpage category is obtained based on the original content sample and layout content sample corresponding to that category. The original content sample and layout content sample represent the webpage content sample before and after layout, respectively. Since the original content sample and layout content sample reflect the layout information and layout changes of the webpage content samples before and after layout, the layout information obtained in this embodiment of the invention can play a standardizing and regulating role in the layout of preset webpage categories.

[0084] In an optional embodiment of the present invention, the layout information may specifically include: the mapping relationship between the original content and the layout content.

[0085] This invention can characterize the mapping relationship between original content and layout content using a data analyzer. Correspondingly, the method may further include: training training data to obtain a data analyzer; the data analyzer can be used to characterize the mapping relationship between original content and layout content; the training data may include: original content samples and layout content samples.

[0086] In an optional embodiment of this application, a mathematical model can be trained based on training data to obtain a data analyzer. This training can obtain layout information and layout change information corresponding to webpage content samples before and after layout, enabling the data analyzer to have the ability to layout webpages of a preset category. The data analyzer can represent the mapping relationship between input data (original content) and output data (layout content).

[0087] A mathematical model is a scientific or engineering model constructed using mathematical logic and mathematical language. It is a mathematical structure that, using mathematical language, summarizes or approximates the characteristics or quantitative dependencies of a system. This mathematical structure is a relational structure characterized by mathematical symbols. A mathematical model can be one or a set of algebraic equations, differential equations, difference equations, integral equations, or statistical equations, or combinations thereof, which quantitatively or qualitatively describe the relationships or causal relationships between the variables of the system. Besides mathematical models described by equations, there are also models described using other mathematical tools, such as algebra, geometry, topology, and mathematical logic. In these cases, the mathematical model describes the behavior and characteristics of the system, rather than its actual structure. Machine learning and deep learning methods can be used to train mathematical models. Machine learning methods include linear regression, decision trees, and random forests, while deep learning methods include convolutional neural networks (CNNs), long short-term memory networks (LSTMs), and gated recurrent units (GRUs).

[0088] In another optional embodiment of the present invention, the original content sample and the layout content sample can be analyzed to obtain the above-mentioned layout information.

[0089] In this embodiment of the invention, optionally, the layout information includes: structural information; the structural information includes: inter-topic information and / or, intra-topic tag information; the inter-topic information is used to segment the original content; the intra-topic tag information is used to determine the tags corresponding to the topic content.

[0090] The information between topics specifically includes: the topics themselves, and the order in which the topics are arranged.

[0091] For example, the question-and-answer category can include questions and answers for predefined subjects, such as math questions and answers, language arts questions and answers, etc. Taking the math question-and-answer category as an example, the corresponding topics can include: problem analysis, solution steps, calculation formula, and answer, etc.

[0092] For example, recipe categories can include: recipe ingredient categories or recipe preparation categories. The themes of recipe ingredient categories can include: main ingredients and side ingredients, etc.

[0093] For example, topics in the medical category could include: disease analysis and recommendations.

[0094] In practical applications, semantic analysis can be performed on the original content samples of preset webpage categories to obtain the topics corresponding to the preset webpage categories. Semantic analysis methods may include sentence component analysis methods, machine learning methods, etc. It is understood that the embodiments of the present invention do not limit the specific semantic analysis methods.

[0095] The original content samples can include either text-based or non-text-based web page content. For non-text-based content such as images, the text content within the image can be identified first, followed by semantic analysis. Alternatively, image keywords can be determined based on the correspondence between images and image keywords in an image database; these keywords can represent the semantic information corresponding to the image.

[0096] Optionally, the order of topics can be determined based on their logical connection. Tags within a topic can be used to represent at least a portion of the topic content.

[0097] For example, the original content B of webpage B in the recipe category includes:

[0098] Ingredient List

[0099] Main ingredients: Half a fresh three-yellow chicken, 5-6 slices of ginger, 1 tablespoon of cooking wine, 1 teaspoon of five-spice powder, 1 / 2 teaspoon of salt, 1 tablespoon of light soy sauce, 1 tablespoon of oyster sauce. Side ingredients: 100g rehydrated winter bamboo shoots, 10 dried shiitake mushrooms, 10g wood ear mushrooms, 1 green chili pepper, 1 red chili pepper, 1 scallion.

[0100] The text content in original content B is disorganized and affects the user's browsing experience.

[0101] This invention can derive "Main Ingredient" and "Additional Ingredient" themes from the original content B. For each theme, tags are determined for at least a portion of its content. For example, the tags for "half a piece," "5 or 6 slices," and "1 tablespoon" are "Dosage" tags. Therefore, the content corresponding to the "Dosage" tag can be arranged independently to improve readability.

[0102] In this embodiment of the invention, optionally, the thematic content corresponding to two related tags can be paired and arranged. For example, in the original content B, the "main ingredient" tag is associated with the "dosage" tag, and the "ingredients" tag is associated with the "dosage" tag.

[0103] Here is an example of layout content B:

[0104] Main ingredients

[0105]

[0106] Ingredients

[0107]

[0108] It is understood that the above layout content B abstracts two themes and pairs the content corresponding to two related tags within each theme, thus presenting the correlation and readability between different tags. It is also understood that layout content B is merely an example; in practice, those skilled in the art can use other layout content according to actual application needs. For example, they can set tag identifiers within the layout content.

[0109] In this embodiment of the invention, optionally, the layout content specifically includes: thematic content arranged according to the information between themes. This embodiment of the invention can arrange the thematic content of each theme sequentially according to the order between themes, thereby improving the orderliness and regularity of the layout content.

[0110] In an optional embodiment of the present invention, the layout information includes: multiple themes and the order between the themes. Then, the layout of the original content of the above webpage may include: extracting the theme content corresponding to multiple themes from the original content; and arranging the theme content corresponding to multiple themes in sequence according to the order between the themes to obtain the layout content.

[0111] Optionally, topic content corresponding to a topic can be extracted from the original content based on the matching degree between the original content and the topic. Alternatively, the original content can be clustered to obtain the topics corresponding to the original content. In this embodiment of the invention, the topic content may specifically include: topic content arranged according to tag information within the topic. Specifically, topic content corresponding to one tag can be arranged independently, or topic content corresponding to at least two tags can be paired and arranged.

[0112] In an optional embodiment of the present invention, the layout information further includes: tags corresponding to the theme content. Then, the layout of the original content of the above webpage may further include: extracting the theme content corresponding to the tags from the theme content; arranging the theme content corresponding to one tag independently, or arranging the theme content corresponding to at least two tags in pairs.

[0113] In this embodiment of the invention, optionally, the content of a topic may include: content from at least two web page categories that match the topic; the content from the at least two web page categories is arranged according to a preset rule.

[0114] For example, content from different webpage categories corresponding to the same theme can include: text content and image content, or text content and audio / video playback plugins, etc. When text and image content are disorganized, the relationship between them cannot be discerned through layout. However, embodiments of this invention can aggregate and arrange text and image content using themes.

[0115] For example, at least two types of webpage content can be arranged within a theme area of ​​the same topic according to preset rules. These preset rules may include left-right or top-bottom arrangement rules. When using left-right or top-bottom arrangement rules, the arrangement order of the content from the at least two types of webpages can be a preset order. For example, when using a top-bottom arrangement rule, text content is on top and image content is on the bottom. Similarly, when using a left-right arrangement rule, text content is on the left and image content is on the right. It is understood that this embodiment of the invention does not limit the specific preset order.

[0116] The layout content of this invention can be used to present to users. For example, in a browsing scenario, the layout content corresponding to the webpage can be provided based on the user's loading request for the webpage. Alternatively, in a search scenario, the layout content corresponding to the landing page can be provided based on the user's trigger request for the search result item.

[0117] In summary, the webpage processing method of this invention obtains layout information corresponding to a preset webpage category based on the original content sample and layout content sample corresponding to that category. The original content sample and layout content sample represent the webpage content sample before and after layout, respectively. Since the original content sample and layout content sample reflect the layout information and layout changes of the webpage content samples before and after layout, the layout information obtained by this invention can play a standardizing and regulating role in the layout of preset webpage categories. Thus, by layouting the original content of webpages under a preset webpage category based on the layout information corresponding to that category, the standardization and readability of the layout content can be improved, thereby enhancing the user's browsing experience.

[0118] Method Example 2

[0119] Reference Figure 3 The flowchart illustrates a step-by-step process of an embodiment of the search method of the present invention, which may specifically include the following steps:

[0120] Step 301: Receive search terms;

[0121] Step 302: Determine the search result item corresponding to the above search term; if the webpage category of the landing page corresponding to the above search result item is a preset webpage category, the above search result item includes: the layout content contained in the corresponding landing page; the above layout content can be obtained by arranging the original content of the above landing page according to the layout information corresponding to the above preset webpage category; the above layout information can be obtained according to the original content sample and the layout content sample corresponding to the above preset webpage category.

[0122] At least one step included in the embodiments of the present invention can be executed by the client and / or the server. It is understood that the embodiments of the present invention do not limit the specific subject executing the steps included in the method.

[0123] At least a portion of the typesetting content obtained in the embodiments of the present invention can be provided to users as content in search results items. Since more organized and readable information can be provided to users via search results items, the amount of information included in the search results items can be increased.

[0124] Current search results typically include: the title, link, and summary of the landing page. In an optional embodiment of the present invention, the summary may include: layout content.

[0125] In this embodiment of the invention, optionally, the summary of the search results item may include: content from multiple topics arranged sequentially on the landing page, to improve the organization and logic of the search results item. It is understood that the categories of the topic content in the summary may include: text content and / or non-text categories.

[0126] For landing pages categorized as "Steps," the corresponding themes can be multiple steps arranged in sequence. Similarly, for landing pages categorized as "Lyrics," the corresponding themes could include: "Song Title," "Lyrics," "Composition," "Singing," and "Lyrics." Furthermore, for landing pages categorized as "Math Problem Solving," the corresponding themes could include: Problem Analysis, Solution Steps, Calculation Formula, and Answer.

[0127] Alternatively, recipe categories can include either recipe ingredient categories or recipe preparation categories. Recipe ingredient categories can cover topics such as main ingredients and side ingredients. Recipe preparation categories can cover topics such as sequentially arranged steps. Furthermore, medical categories could include topics such as disease analysis and recommendations.

[0128] It is understood that the summary of search results includes content from multiple topics arranged sequentially on the landing page, but this is only an optional embodiment. In practice, those skilled in the art can place other formatted content in the summary according to actual application needs.

[0129] In this embodiment of the invention, the search results items corresponding to the landing page can be predetermined, and the correspondence between the landing page and the search results items can be saved. Specifically, determining the search results items corresponding to the landing page includes: extracting preset content from the layout of the landing page as search results items. For example, extracting the title as the title of the search results item; or extracting content from multiple sequentially arranged topics as a summary of the search results item, etc.

[0130] In this embodiment of the invention, after determining the landing page corresponding to the search term, a search can be performed in the correspondence between the landing page and the search result item to obtain the search result item corresponding to the search term.

[0131] After determining the search results items corresponding to the search terms, the search results page can be obtained based on the search results items and then provided to the user.

[0132] Since the embodiments of the present invention can display isolated layout content in the search results, users can obtain the information they need without page redirection, thus shortening the user's operation path and improving the user's information acquisition efficiency.

[0133] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0134] Device Examples

[0135] Reference Figure 4 The diagram illustrates a structural block diagram of an embodiment of a web page processing device according to the present invention, which may specifically include:

[0136] The judgment module 401 is used to determine whether the webpage category corresponding to the webpage is a preset webpage category;

[0137] The layout module 402 is used to, if the webpage category is a preset webpage category, to layout the original content of the webpage according to the layout information corresponding to the preset webpage category, so as to obtain the layout content corresponding to the webpage; wherein, the layout information is obtained based on the original content sample and the layout content sample corresponding to the preset webpage category.

[0138] Optionally, the preset webpage category may include any of the following categories:

[0139] Categories include lyrics, steps, recipes, puzzles, and medical Q&A.

[0140] Optionally, the layout information may include: structural information; the structural information may include: inter-topic information and / or, intra-topic tag information; the inter-topic information is used to segment the original content; the intra-topic tag information is used to determine the tags corresponding to the topic content.

[0141] Optionally, the layout information may include: multiple themes and the order between the themes, then the layout module may include:

[0142] The first extraction module is used to extract the topic content corresponding to multiple topics from the original content;

[0143] The first layout module is used to arrange the content of multiple topics in sequence according to the order of topics, so as to obtain the layout content.

[0144] Optionally, the layout information may further include tags corresponding to the topic content, then the layout module may further include:

[0145] The second extraction module is used to extract the topic content corresponding to the tags from the topic content;

[0146] The second layout module is used to arrange the topic content corresponding to a tag independently, or to arrange the topic content corresponding to at least two tags in pairs.

[0147] Optionally, the typesetting module may further include:

[0148] The third layout module is used to arrange content of at least two webpage categories within a theme area of ​​the same theme, according to preset rules.

[0149] Reference Figure 5 The diagram illustrates a structural block diagram of an embodiment of the search device of the present invention, which may specifically include:

[0150] Receiver module 501 is used to receive search terms;

[0151] The determining module 502 is used to determine the search result item corresponding to the search term; when the webpage category of the landing page corresponding to the search result item is a preset webpage category, the search result item may include: the layout content contained in the corresponding landing page; the layout content is obtained by arranging the original content of the landing page according to the layout information corresponding to the preset webpage category; the layout information is obtained based on the original content sample and the layout content sample corresponding to the preset webpage category.

[0152] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0153] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0154] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0155] This invention provides an apparatus for webpage processing, including a memory and one or more programs. The one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: determining whether the webpage category corresponding to the webpage is a preset webpage category; if the webpage category is a preset webpage category, then formatting the original content of the webpage according to the formatting information corresponding to the preset webpage category to obtain formatted content corresponding to the webpage; wherein the formatting information is obtained based on a sample of the original content and a sample of the formatted content corresponding to the preset webpage category.

[0156] Figure 6 This is a block diagram illustrating an apparatus 800 for web page processing according to an exemplary embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0157] Reference Figure 6 The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0158] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

[0159] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of this data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 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 storage, flash memory, magnetic disk, or optical disk.

[0160] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800.

[0161] Multimedia component 808 includes a screen that provides an output interface between the device 800 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 may be implemented as a touchscreen 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 may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0162] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice web page processing mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

[0163] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0164] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0165] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency web page processing (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0166] In an exemplary embodiment, the apparatus 800 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 to perform the methods described above.

[0167] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0168] Figure 7This is a schematic diagram of the server structure in some embodiments of the present invention. The server 1900 can vary significantly due to different configurations or performance, and may include one or more central processing units (CPUs) 1922 (e.g., one or more processors) and memory 1932, and one or more storage media 1930 (e.g., one or more mass storage devices) for storing application programs 1942 or data 1944. The memory 1932 and storage media 1930 can be temporary or persistent storage. The program stored in the storage media 1930 may include one or more modules (not shown in the diagram), each module may include a series of instruction operations on the server. Furthermore, the CPU 1922 may be configured to communicate with the storage media 1930 and execute the series of instruction operations in the storage media 1930 on the server 1900.

[0169] The server 1900 may also 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 Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0170] A non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to perform... Figure 2 or Figure 3 The webpage processing method shown.

[0171] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to perform a webpage processing method, the method comprising: determining whether the webpage category corresponding to the webpage is a preset webpage category; if the webpage category is a preset webpage category, then formatting the original content of the webpage according to the formatting information corresponding to the preset webpage category to obtain the formatted content corresponding to the webpage; wherein the formatting information is obtained based on the original content sample and the formatted content sample corresponding to the preset webpage category.

[0172] This invention discloses, in embodiment A1, a webpage processing method, comprising:

[0173] Determine whether the webpage category corresponds to a preset webpage category;

[0174] If the webpage category is a preset webpage category, then the original content of the webpage is formatted according to the formatting information corresponding to the preset webpage category to obtain the formatted content corresponding to the webpage; wherein, the formatting information is obtained based on the original content sample and the formatted content sample corresponding to the preset webpage category.

[0175] A2. According to the method described in A1, the preset webpage category includes any one of the following categories:

[0176] Categories include lyrics, steps, recipes, puzzles, and medical Q&A.

[0177] A3. According to the method described in A1, the layout information includes: structural information; the structural information includes: inter-topic information and / or, intra-topic tag information; the inter-topic information is used to segment the original content; the intra-topic tag information is used to determine the tags corresponding to the topic content.

[0178] A4. According to the method described in A1, the layout information includes: multiple themes and the order between the themes. Therefore, the layout of the original content of the aforementioned webpage includes:

[0179] Extract the content corresponding to multiple themes from the original content;

[0180] Based on the order of the topics, the content corresponding to multiple topics is arranged sequentially to obtain the layout content.

[0181] A5. According to the method described in A4, the layout information further includes: tags corresponding to the theme content. Therefore, the layout of the original content of the above webpage further includes:

[0182] Extract the topic content corresponding to the tags from the topic content;

[0183] Arrange the content corresponding to a tag independently, or arrange the content corresponding to at least two tags in pairs.

[0184] A6. According to the method described in A4, the step of formatting the original content of the above-mentioned webpage further includes:

[0185] According to preset rules, at least two types of web page content are arranged within the same theme area.

[0186] This invention discloses B7, a search method, the method comprising:

[0187] Receive search terms;

[0188] Determine the search result item corresponding to the search term; if the webpage category of the landing page corresponding to the search result item is a preset webpage category, the search result item includes: the layout content contained in the corresponding landing page; the layout content is obtained by arranging the original content of the landing page according to the layout information corresponding to the preset webpage category; the layout information is obtained based on the original content sample and the layout content sample corresponding to the preset webpage category.

[0189] This invention discloses C8, a web page processing apparatus, comprising:

[0190] The judgment module is used to determine whether the webpage category corresponding to the webpage is a preset webpage category;

[0191] The layout module is used to, if the webpage category is a preset webpage category, to layout the original content of the webpage according to the layout information corresponding to the preset webpage category, so as to obtain the layout content corresponding to the webpage; wherein, the layout information is obtained based on the original content sample and the layout content sample corresponding to the preset webpage category.

[0192] C9. According to the apparatus described in C8, the preset webpage category includes any of the following categories:

[0193] Categories include lyrics, steps, recipes, puzzles, and medical Q&A.

[0194] C10. According to the apparatus described in C8, the layout information includes: structural information; the structural information includes: inter-topic information and / or, intra-topic tag information; the inter-topic information is used to segment the original content; the intra-topic tag information is used to determine the tags corresponding to the topic content.

[0195] C11. According to the apparatus described in C8, where the typesetting information includes multiple themes and the order between the themes, the typesetting module includes:

[0196] The first extraction module is used to extract the topic content corresponding to multiple topics from the original content;

[0197] The first layout module is used to arrange the content of multiple topics in sequence according to the order of topics, so as to obtain the layout content.

[0198] C12. According to the apparatus described in C11, if the layout information further includes: tags corresponding to the topic content, then the layout module further includes:

[0199] The second extraction module is used to extract the topic content corresponding to the tags from the topic content;

[0200] The second layout module is used to arrange the topic content corresponding to a tag independently, or to arrange the topic content corresponding to at least two tags in pairs.

[0201] C13. According to the apparatus described in C11, the typesetting module further includes:

[0202] The third layout module is used to arrange content of at least two webpage categories within a theme area of ​​the same theme, according to preset rules.

[0203] This invention discloses D14, a search device, and the method includes:

[0204] The receiving module is used to receive search terms;

[0205] A determining module is used to determine the search result item corresponding to the search term; when the webpage category of the landing page corresponding to the search result item is a preset webpage category, the search result item includes: the layout content contained in the corresponding landing page; the layout content is obtained by arranging the original content of the landing page according to the layout information corresponding to the preset webpage category; the layout information is obtained based on the original content sample and the layout content sample corresponding to the preset webpage category.

[0206] This invention discloses an E15, an apparatus for web page processing, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

[0207] Determine whether the webpage category corresponds to a preset webpage category;

[0208] If the webpage category is a preset webpage category, then the original content of the webpage is formatted according to the formatting information corresponding to the preset webpage category to obtain the formatted content corresponding to the webpage; wherein, the formatting information is obtained based on the original content sample and the formatted content sample corresponding to the preset webpage category.

[0209] E16. In the apparatus according to E15, the preset webpage category includes any of the following categories:

[0210] Categories include lyrics, steps, recipes, puzzles, and medical Q&A.

[0211] E17. According to the apparatus described in E15, the layout information includes: structural information; the structural information includes: inter-topic information and / or, intra-topic tag information; the inter-topic information is used to segment the original content; the intra-topic tag information is used to determine the tags corresponding to the topic content.

[0212] E18. According to the apparatus described in E15, where the layout information includes multiple topics and the order between the topics, the layout of the original content of the aforementioned webpage includes:

[0213] Extract the content corresponding to multiple themes from the original content;

[0214] Based on the order of the topics, the content corresponding to multiple topics is arranged sequentially to obtain the layout content.

[0215] E19. According to the apparatus described in E18, if the layout information further includes tags corresponding to the topic content, then the layout of the original content of the aforementioned webpage further includes:

[0216] Extract the topic content corresponding to the tags from the topic content;

[0217] Arrange the content corresponding to a tag independently, or arrange the content corresponding to at least two tags in pairs.

[0218] E20. According to the apparatus described in E18, the step of formatting the original content of the aforementioned webpage further includes:

[0219] According to preset rules, at least two types of web page content are arranged within the same theme area.

[0220] This invention discloses F21, an apparatus for searching, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs containing instructions for performing the following operations:

[0221] Receive search terms;

[0222] Determine the search result item corresponding to the search term; if the webpage category of the landing page corresponding to the search result item is a preset webpage category, the search result item includes: the layout content contained in the corresponding landing page; the layout content is obtained by arranging the original content of the landing page according to the layout information corresponding to the preset webpage category; the layout information is obtained based on the original content sample and the layout content sample corresponding to the preset webpage category.

[0223] This invention discloses G22, a machine-readable medium having instructions stored thereon that, when executed by one or more processors, cause a device to perform one or more of the web page processing methods described in A1 to A7.

[0224] This invention discloses H23, a machine-readable medium having instructions stored thereon that, when executed by one or more processors, cause a device to perform the search method as described in B8.

[0225] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.

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

[0227] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

[0228] The foregoing has provided a detailed description of a webpage processing method, a webpage processing apparatus, and a device for webpage processing provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method of processing a web page, characterized by, The method includes: Determine whether the webpage category corresponding to the webpage is a preset webpage category; wherein, the preset webpage category includes any of the following categories: lyrics category, steps category, recipe category, problem-solving category, and medical Q&A category; If the webpage category is a preset webpage category, then the original content of the webpage is formatted according to the formatting information corresponding to the preset webpage category to obtain the formatted content corresponding to the webpage; wherein, the formatting information includes: the mapping relationship between the original content corresponding to the preset webpage category and the formatted content represented by the data analyzer; the data analyzer is obtained by training on training data, the training data consisting of multiple original content samples corresponding to the preset webpage category and formatted content samples corresponding one-to-one with each original content sample; the original content includes disordered content; the formatted content corresponding to the webpage includes content with preset rules, the preset rules being that the theme of each part is clearly defined and the content corresponding to the theme is... The mapping relationship includes: the correlation between the text content corresponding to the independently displayed and / or presented steps and the image content corresponding to those steps; the mapping relationship includes: structural information; the structural information includes: inter-topic information, and / or, intra-topic tag information; the inter-topic information includes: multiple topics and the order between topics, used to segment the original content; the intra-topic tag information is used to determine the tags corresponding to the topic content; the content of different webpage categories corresponding to the same topic includes: text content and image content, or text content and audio / video playback plugins; when the preset webpage category is a step category, the layout information includes: multiple topics, one step corresponds to one topic, and one step includes: corresponding text content and image content; The step of formatting the original content of the webpage includes: Semantic analysis is performed on the original content, and multiple topics contained in the original content are identified based on the semantic analysis results. The topic content corresponding to each topic is extracted from the original content. Where multiple related tags exist in the topic content corresponding to a topic, the topic content corresponding to the topic is obtained by pairing and arranging the topic content corresponding to the multiple tags. Based on the order of the topics, the content corresponding to multiple topics is arranged sequentially to obtain the layout content.

2. The method of claim 1, wherein, The formatting of the original content of the aforementioned webpage also includes: Extract the topic content corresponding to the tags from the topic content; Arrange the content corresponding to a tag independently, or arrange the content corresponding to at least two tags in pairs.

3. The method of claim 2, wherein, The formatting of the original content of the aforementioned webpage also includes: According to preset rules, at least two types of web page content are arranged within the same theme area.

4. A search method, characterized in that, The method includes: Receive search terms; Determine the search result item corresponding to the search term; when the webpage category of the landing page corresponding to the search result item is a preset webpage category, the search result item includes: the layout content contained in the corresponding landing page; the layout content is obtained by arranging the original content of the landing page according to the layout information corresponding to the preset webpage category; the layout information includes: the mapping relationship between the original content and the layout content corresponding to the preset webpage category as represented by the data analyzer; the data analyzer is obtained by training on training data, the training data consists of multiple original content samples corresponding to the preset webpage category and layout content samples corresponding one-to-one with each original content sample; the preset webpage category includes any of the following categories: lyrics category, step category, recipe category, problem-solving category, and medical Q&A category; the original content includes disordered content; the layout content corresponding to the webpage includes content with preset rules, the preset rules are that the theme of each part is clearly defined and the content corresponding to the theme is displayed independently and / or the correlation between the text content corresponding to the step and the image content corresponding to the step is presented; the mapping relationship includes The structure information includes: inter-topic information and / or intra-topic tag information; the inter-topic information includes: multiple topics and the order between topics, used to segment the original content; the intra-topic tag information is used to determine the tags corresponding to the topic content; the content of different webpage categories corresponding to the same topic includes: text content and image content, or text content and audio / video playback plugins; when the preset webpage category is a step category, the layout information includes: multiple topics, one step corresponds to one topic, and one step includes: corresponding text content and image content; the layout of the original content of the landing page includes: performing semantic analysis on the original content, identifying multiple topics contained in the original content according to the semantic analysis results, and extracting the topic content corresponding to each topic from the original content; wherein, when there are multiple related tags in the topic content corresponding to a topic, the topic content corresponding to the topic is obtained by pairing and arranging the topic content corresponding to the multiple tags; according to the order between topics, the topic content corresponding to multiple topics is arranged in sequence to obtain the layout content.

5. A webpage processing device, characterized in that, include: The judgment module is used to determine whether the webpage category corresponding to the webpage is a preset webpage category; wherein, the preset webpage category includes any of the following categories: lyrics category, steps category, recipe category, problem-solving category, and medical Q&A category; A layout module is used to, if the webpage category is a preset webpage category, to layout the original content of the webpage according to the layout information corresponding to the preset webpage category, so as to obtain the layout content corresponding to the webpage; wherein, the layout information includes: a mapping relationship between the original content corresponding to the preset webpage category and the layout content represented by a data analyzer; the data analyzer is obtained by training on training data, the training data consisting of multiple original content samples corresponding to the preset webpage category and layout content samples corresponding one-to-one with each original content sample; the original content includes disordered content; the layout content corresponding to the webpage includes content with a preset pattern, the preset pattern being that the theme of each part is clearly defined and corresponds to the theme. The content is displayed independently and / or the correlation between the text content corresponding to the step and the image content corresponding to the step is presented; the mapping relationship includes: structural information; the structural information includes: inter-topic information, and / or, intra-topic tag information; the inter-topic information includes: multiple topics, and the order between topics, used to segment the original content; the intra-topic tag information is used to determine the tags corresponding to the topic content; the content of different web page categories corresponding to the same topic includes: text content and image content, or text content and audio / video playback plugins; when the preset web page category is a step category, the layout information includes: multiple topics, one step corresponds to one topic, and one step includes: corresponding text content and image content; When the layout module typesets the original content of the webpage, it is used for: Semantic analysis is performed on the original content, and multiple topics contained in the original content are identified based on the semantic analysis results. The topic content corresponding to each topic is extracted from the original content. Where multiple related tags exist in the topic content corresponding to a topic, the topic content corresponding to the topic is obtained by pairing and arranging the topic content corresponding to the multiple tags. Based on the order of the topics, the content corresponding to multiple topics is arranged sequentially to obtain the layout content.

6. The apparatus according to claim 5, characterized in that, The layout information also includes: tags corresponding to the theme content; therefore, the layout module also includes: The second extraction module is used to extract the topic content corresponding to the tags from the topic content; The second layout module is used to arrange the topic content corresponding to a tag independently, or to arrange the topic content corresponding to at least two tags in pairs.

7. The apparatus according to claim 5, characterized in that, The typesetting module also includes: The third layout module is used to arrange content of at least two webpage categories within a theme area of ​​the same theme, according to preset rules.

8. A search device, characterized in that, The device includes: The receiving module is used to receive search terms; A determination module is used to determine the search result item corresponding to the search term; when the webpage category of the landing page corresponding to the search result item is a preset webpage category, the search result item includes: the layout content contained in the corresponding landing page; the layout content is obtained by arranging the original content of the landing page according to the layout information corresponding to the preset webpage category; the layout information includes: the mapping relationship between the original content and the layout content corresponding to the preset webpage category represented by the data analyzer; the data analyzer is trained on training data, which consists of multiple original content samples corresponding to the preset webpage category and layout content samples corresponding one-to-one with each original content sample; the preset webpage category includes any of the following categories: lyrics category, step category, recipe category, problem-solving category, and medical Q&A category; the original content includes disordered content; the layout content corresponding to the webpage includes content with preset rules, the preset rules being that the theme of each part is clearly defined and the content corresponding to the theme is displayed independently and / or the correlation between the text content corresponding to the step and the image content corresponding to the step is presented; the mapping The relationships include: structural information; the structural information includes: inter-topic information and / or, intra-topic tag information; the inter-topic information includes: multiple topics, and the order between topics used to segment the original content; the intra-topic tag information is used to determine the tags corresponding to the topic content; the content of different webpage categories corresponding to the same topic includes: text content and image content, or text content and audio / video playback plugins; when the preset webpage category is a step category, the layout information includes: multiple topics, one step corresponds to one topic, and one step includes: corresponding text content and image content; the layout of the original content of the landing page includes: performing semantic analysis on the original content, identifying multiple topics contained in the original content based on the semantic analysis results, and extracting the topic content corresponding to each topic from the original content; wherein, when there are multiple related tags in the topic content corresponding to a topic, the topic content corresponding to the topic is obtained by pairing and arranging the topic content corresponding to the multiple tags; according to the order between topics, the topic content corresponding to multiple topics is arranged in sequence to obtain the layout content.

9. An apparatus for web page processing, characterized in that, It includes memory and one or more programs, wherein one or more programs are stored in memory and configured to be executed by one or more processors. The one or more programs contain instructions for performing the following operations: Determine whether the webpage category corresponding to the webpage is a preset webpage category; wherein, the preset webpage category includes any of the following categories: lyrics category, steps category, recipe category, problem-solving category, and medical Q&A category; If the webpage category is a preset webpage category, then the original content of the webpage is formatted according to the formatting information corresponding to the preset webpage category to obtain the formatted content corresponding to the webpage; wherein, the formatting information includes: the mapping relationship between the original content corresponding to the preset webpage category and the formatted content represented by the data analyzer; the data analyzer is obtained by training on training data, the training data consisting of multiple original content samples corresponding to the preset webpage category and formatted content samples corresponding one-to-one with each original content sample; the original content includes disordered content; the formatted content corresponding to the webpage includes content with preset rules, the preset rules being that the theme of each part is clearly defined and the content corresponding to the theme is... The mapping relationship includes: the correlation between the text content corresponding to the independently displayed and / or presented steps and the image content corresponding to those steps; the mapping relationship includes: structural information; the structural information includes: inter-topic information, and / or, intra-topic tag information; the inter-topic information includes: multiple topics and the order between topics, used to segment the original content; the intra-topic tag information is used to determine the tags corresponding to the topic content; the content of different webpage categories corresponding to the same topic includes: text content and image content, or text content and audio / video playback plugins; when the preset webpage category is a step category, the layout information includes: multiple topics, one step corresponds to one topic, and one step includes: corresponding text content and image content; The step of formatting the original content of the webpage includes: Semantic analysis is performed on the original content, and multiple topics contained in the original content are identified based on the semantic analysis results. The topic content corresponding to each topic is extracted from the original content. Where multiple related tags exist in the topic content corresponding to a topic, the topic content corresponding to the topic is obtained by pairing and arranging the topic content corresponding to the multiple tags. Based on the order of the topics, the content corresponding to multiple topics is arranged sequentially to obtain the layout content.

10. The apparatus according to claim 9, characterized in that, The layout information also includes: tags corresponding to the theme content; therefore, the layout of the original content of the above webpage also includes: Extract the topic content corresponding to the tags from the topic content; Arrange the content corresponding to a tag independently, or arrange the content corresponding to at least two tags in pairs.

11. The apparatus according to claim 9, characterized in that, The formatting of the original content of the aforementioned webpage also includes: According to preset rules, at least two types of web page content are arranged within the same theme area.

12. A device for searching, characterized in that, It includes memory and one or more programs, wherein one or more programs are stored in memory and configured to be executed by one or more processors. The one or more programs contain instructions for performing the following operations: Receive search terms; Determine the search result item corresponding to the search term; When the webpage category of the landing page corresponding to the search result item is a preset webpage category, the search result item includes: the layout content contained in the corresponding landing page; the layout content is obtained by arranging the original content of the landing page according to the layout information corresponding to the preset webpage category; the layout information includes: the mapping relationship between the original content and the layout content corresponding to the preset webpage category as represented by the data analyzer; the data analyzer is obtained by training on training data, which consists of multiple original content samples corresponding to the preset webpage category and layout content samples corresponding one-to-one with each original content sample; the preset webpage category includes any of the following categories: lyrics category, step category, recipe category, problem-solving category, and medical Q&A category; the original content includes disordered content; the layout content corresponding to the webpage includes content with preset rules, the preset rules are that the theme of each part is clearly defined and the content corresponding to the theme is displayed independently and / or the correlation between the text content corresponding to the step and the image content corresponding to the step is presented; the mapping relationship includes: structural information; the The structural information includes: inter-topic information and / or intra-topic tag information; the inter-topic information includes: multiple topics and the order between topics, used to segment the original content; the intra-topic tag information is used to determine the tags corresponding to the topic content; the content of different webpage categories corresponding to the same topic includes: text content and image content, or text content and audio / video playback plugins; when the preset webpage category is a step category, the layout information includes: multiple topics, one step corresponds to one topic, and one step includes: corresponding text content and image content; the layout of the original content of the landing page includes: performing semantic analysis on the original content, identifying multiple topics contained in the original content based on the semantic analysis results, and extracting the topic content corresponding to each topic from the original content; wherein, when there are multiple related tags in the topic content corresponding to a topic, the topic content corresponding to the topic is obtained by pairing and arranging the topic content corresponding to the multiple tags; according to the order between topics, the topic content corresponding to multiple topics is arranged sequentially to obtain the layout content.

13. A machine-readable medium having instructions stored thereon that, when executed by one or more processors, cause a device to perform the web page processing method as described in one or more of claims 1 to 3.

14. A machine-readable medium having instructions stored thereon that, when executed by one or more processors, cause a device to perform the search method as described in claim 4.

Citation Information

Patent Citations

  • Method and device for displaying web page and intelligent television system

    CN105975462A