Page processing method and device, electronic equipment, storage medium and program product
By obtaining and processing entity word data to generate target pages, it solves the problem that it is difficult to accurately select keywords on mobile devices, and improves the convenience and experience of users' operations.
Patent Information
- Application Number
- CN202510571820.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-07-25
AI Technical Summary
Due to the limited size of mobile smart devices, it is difficult for users to accurately select keywords at one time, resulting in complex page operations and poor user experience.
In response to the page access request, the entity word data returned by the server is obtained, and the entity word is clickable to generate the target page.
It lowers the operation threshold for users to conduct secondary searches on the page and improves the user experience.
Smart Images

Figure CN120372117A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and particularly to the field of page processing. Specifically, a page processing method, apparatus, electronic device, storage medium, and program product are provided. Background Art
[0002] With the development of mobile intelligent devices and Internet technologies, using mobile intelligent devices to access information and read through the Internet has gradually become a mainstream way. During the reading process, users can also, according to actual needs, select keywords by manually swiping words and conduct further searches.
[0003] However, due to the limited size of mobile intelligent devices, the above-mentioned way of selecting keywords requires a high degree of precision in operation. It is difficult for users to accurately complete the selection of keywords at one time, and usually, manual operations are also required to modify the selected content to ensure accurate selection of keywords. This leads to complex operations for users to conduct secondary searches on the page, with a high operation threshold and poor user experience. Summary of the Invention
[0004] The present disclosure provides a page processing method, apparatus, electronic device, storage medium, and program product.
[0005] According to one aspect of the present disclosure, a page processing method is provided, including: in response to a page access request, sending address information of a page to be accessed to a server to obtain entity word data of the page to be accessed returned by the server; based on the entity word data, locating at least one entity word from the page to be accessed; and performing clickable processing on the entity word to obtain a target page.
[0006] According to another aspect of the present disclosure, a page processing method is provided, including: in response to receiving address information of a page to be accessed from a client, determining entity word data of the page to be accessed based on the address information of the page to be accessed; and sending the entity word data of the page to be accessed to the client, so that the client locates at least one entity word from the page to be accessed based on the entity word data and performs clickable processing on the entity word to obtain a target page.
[0007] According to another aspect of the present disclosure, a page processing apparatus is provided, including: an information sending module, configured to send address information of a page to be accessed to a server in response to a page access request to obtain entity word data of the page to be accessed returned by the server; an entity word locating module, configured to locate at least one entity word from the page to be accessed based on the entity word data; and an entity word processing module, configured to perform clickable processing on the entity word to obtain a target page.
[0008] According to another aspect of the present disclosure, there is provided a page processing device, including: an entity word determination module, configured to determine entity word data of a page to be accessed in response to receiving address information of the page to be accessed from a client based on the address information of the page to be accessed; and an entity word sending module, configured to send the entity word data of the page to be accessed to the client, so that the client locates at least one entity word from the page to be accessed based on the entity word data and performs clickable processing on the entity word to obtain a target page.
[0009] According to another aspect of the present disclosure, there is provided an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method as described above.
[0010] According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method as described above.
[0011] According to another aspect of the present disclosure, there is provided a computer program product, including a computer program which, when executed by a processor, implements the method as described above.
[0012] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:
[0014] Figure 1 Schematically shows an exemplary system architecture to which the page processing method and device according to an embodiment of the present disclosure can be applied;
[0015] Figure 2 Schematically shows a flowchart of the page processing method according to an embodiment of the present disclosure;
[0016] Figure 3A Schematically shows the page display style and page text of the server side of the page processing method according to an embodiment of the present disclosure;
[0017] Figure 3B Schematically shows the page display style and page text of the client side of the page processing method according to an embodiment of the present disclosure;
[0018] Figure 3CSchematically shows the page display style and page text of a client of a page processing method according to another embodiment of the present disclosure;
[0019] Figure 4 Schematically shows a flowchart of a page processing method according to another embodiment of the present disclosure;
[0020] Figure 5 Schematically shows a block diagram of a page processing apparatus according to an embodiment of the present disclosure;
[0021] Figure 6 Schematically shows a block diagram of a page processing apparatus according to another embodiment of the present disclosure; and
[0022] Figure 7 Shows a schematic block diagram of an exemplary electronic device 700 that can be used to implement the embodiments of the present disclosure. Detailed Description of the Invention
[0023] The following describes exemplary embodiments of the present disclosure with reference to the accompanying drawings. Various details of the embodiments of the present disclosure are included to assist in understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0024] Figure 1 Schematically shows an exemplary system architecture to which the page processing method and apparatus according to an embodiment of the present disclosure can be applied.
[0025] It should be noted that Figure 1 The shown is only an example of the system architecture to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. For example, in another embodiment, the exemplary system architecture to which the page processing method and apparatus can be applied may include terminal devices, but the terminal devices can implement the page processing method and apparatus provided by the embodiments of the present disclosure without interacting with the server.
[0026] As Figure 1 shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0027] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as knowledge reading applications, web browser applications, search applications, instant messaging tools, email clients, and / or social platform software, etc. (for example only).
[0028] Terminal devices 101, 102, and 103 can be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers, etc.
[0029] Server 105 can be a server providing various services, such as a background management server that supports the content browsed by users using terminal devices 101, 102, and 103 (for example only). The background management server can analyze and process data such as received user requests, etc., and feedback the processing results (such as web pages, information, or data, etc. obtained or generated according to user requests) to the terminal device.
[0030] It should be noted that the page processing method provided by the embodiments of the present disclosure can generally be executed by terminal devices 101, 102, or 103. Correspondingly, the page processing device provided by the embodiments of the present disclosure can also be set in terminal devices 101, 102, or 103.
[0031] Alternatively, the page processing method provided by the embodiments of the present disclosure can generally also be executed by server 105. Correspondingly, the page processing device provided by the embodiments of the present disclosure can generally be set in server 105. The page processing method provided by the embodiments of the present disclosure can also be executed by a server or a server cluster different from server 105 and capable of communicating with terminal devices 101, 102, 103, and / or server 105. Correspondingly, the page processing device provided by the embodiments of the present disclosure can also be set in a server or a server cluster different from server 105 and capable of communicating with terminal devices 101, 102, 103, and / or server 105.
[0032] For example, when a user reads an e - book online, server 105 can obtain the page text that the user needs to access through terminal devices 101, 102, and 103, perform matching in the database based on the page text. If the matching is successful, it can obtain the entity words corresponding to the page text from the database and send the entity words to terminal devices 101, 102, and 103 so as to perform click - able processing on the obtained entity words on terminal devices 101, 102, and 103.
[0033] It should be understood, Figure 1The numbers of the terminal devices, networks, and servers in it are merely illustrative. According to the implementation requirements, there can be any number of terminal devices, networks, and servers.
[0034] In the technical solution of the present disclosure, the processing of the collection, storage, use, processing, transmission, provision, disclosure, and application, etc., of the user's personal information all comply with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and it does not violate public order and good customs.
[0035] In the technical solution of the present disclosure, before obtaining or collecting the user's personal information, the authorization or consent of the user is obtained.
[0036] Figure 2 Schematically shows a flowchart of a page processing method according to an embodiment of the present disclosure.
[0037] As Figure 2 shown, the method includes operations S210 to S230.
[0038] In operation S210, in response to a page access request, send the address information of the page to be accessed to the server to obtain the entity word data of the page to be accessed returned by the server.
[0039] According to an embodiment of the present disclosure, the page access request can be generated by the user when accessing a page through a search engine or a browser and initiated to the client, and can include the address information of the page to be accessed that the user needs to access. Among them, the address information can be, for example, a Uniform Resource Locator (URL), and can also include a domain name, an Internet Protocol Address (IP address), a file path, etc.
[0040] According to an embodiment of the present disclosure, the client parses the page access request, determines the address information of the page to be accessed carried in the page access request, and sends the address information of the page to be accessed to the server.
[0041] According to an embodiment of the present disclosure, after receiving the address information of the page to be accessed, the server can determine the page to be accessed based on the address information, and further determine the entity word data of the page to be accessed. After determining the entity word data, the server can send the determined entity word data of the page to be accessed to the client so that the client can perform subsequent processing based on the entity word data. Among them, the entity word data can include the entity words in the page to be accessed for which the user may have a need for in-depth search.
[0042] In operation S220, based on the entity word data, locate at least one entity word from the page to be accessed.
[0043] According to an embodiment of the present disclosure, after receiving the entity word data sent by the server, the client can parse the page to be accessed, determine the page text of the page to be accessed, and match the page text according to the entity word data to locate the entity word that matches the entity word data from the page text.
[0044] In operation S230, the entity word is processed to be clickable to obtain the target page.
[0045] According to an embodiment of the present disclosure, by processing the entity word to be clickable, ordinary text words in the page to be accessed can be converted into elements that can be clicked by the user. After the clickable processing is completed, the user can click on the processed entity word. After the operation, responses such as jumping to a link related to the entity word or directly displaying the explanatory note of the entity word can be made, so that the user can further understand the entity word based on the content in the link or the content of the explanatory note.
[0046] According to an embodiment of the present disclosure, the clickable processing of the entity word can be completed by adding a hyperlink to the entity word, binding a JavaScript event to the entity word, etc. Among them, in the case where the clickable processing of the entity word is completed by the hyperlink method, after the user clicks on the processed entity word, they can jump to the search page corresponding to the address in the hyperlink, where the search page can be obtained by searching for the entity word as a keyword in a search engine. In the case where the clickable processing of the entity word is completed by binding a JavaScript event to the entity word, after the user clicks on the processed entity word, the explanatory note and other content of the entity word can be displayed in the form of a pop-up window, where the content of the explanatory note can be obtained by searching for the entity word as a keyword in a search engine and extracting it from the searched page.
[0047] According to an embodiment of the present disclosure, the clickable processed entity word can also be subjected to a saliency enhancement process so that the user can quickly and accurately find the entity word on the target page. The saliency enhancement process can include text highlighting processing, text style transformation processing, etc. The text style includes text color, whether the text is bold, whether the text is underlined, the text font, etc.
[0048] According to an embodiment of the present disclosure, when a user browses a page through a client, the address information of the page to be accessed is sent to a server, and the entity word data returned by the page to be accessed is received. Based on the entity word data locally on the client, the entity words in the page to be accessed are processed to be clickable. After obtaining the target page, the target page is displayed to the user. Since the entity word data is a word with a relatively high user click / search frequency determined in advance, when the user needs to search for an entity word during the process of browsing the target page, the clickable entity word can be directly clicked, and the relevant content of the entity word can be displayed for the client, thereby realizing the dynamic transformation of the page, significantly reducing the operation threshold for the user to perform a secondary search on the page, and improving the user experience.
[0049] According to an embodiment of the present disclosure, the entity word data includes at least one word element and the positioning information of each of the at least one word element, and the at least one word element corresponds to at least one entity word respectively; wherein, based on the entity word data, locating at least one entity word from the page to be accessed includes: determining a target text part from the page text of the page to be accessed based on the positioning information of the word element; and locating the entity word corresponding to the word element from the target text part based on the word element.
[0050] According to an embodiment of the present disclosure, the word element can be at least one entity word determined by the server after parsing the page to be accessed, determining the page text of the page to be accessed, and according to the page text.
[0051] According to an embodiment of the present disclosure, since there may be multiple identical word elements in the page text, in this case, only locating from the page to be accessed according to the word element itself can obtain multiple positioning results, and it is difficult to determine the word element specifically corresponding to the entity word data. Therefore, the positioning information of the word element can be set in the entity word data to assist in uniquely determining the word element corresponding to the entity word data from the page to be accessed.
[0052] For example, although the multiple word elements in the page text are the same, the context information of each of the multiple word elements can be different. Therefore, the positioning information of the word element can include the word element and the context information of the word element.
[0053] According to an embodiment of the present disclosure, for some special word elements that usually appear in fixed collocations, if the context information of the word element is only limited to the phrase where the word element is located, there will still be a problem of obtaining multiple positioning results and it is difficult to distinguish and locate accurately in detail. Therefore, the scope of the context information can be selected according to the actual situation with different granularities such as the phrase, short sentence, whole sentence, text segment where the word element is located.
[0054] Taking the granularity of the context information as the entire sentence where the word element is located as an example, based on the context information of the word element, text matching is performed in the page text of the page to be accessed, and a target sentence corresponding to the context information of the word element is obtained, and a target text part is obtained.
[0055] According to an embodiment of the present disclosure, since the positioning of the entity word needs to be accurate and unique, therefore, an exact matching method is adopted for text matching, that is, in the page text, information that is exactly the same as the context information of the word element is searched for as the target sentence, and the target sentence is used as the target text part.
[0056] According to an embodiment of the present disclosure, based on the word element, by adopting the exact matching method, the entity word corresponding to the word element can be located from the target text part.
[0057] According to an embodiment of the present disclosure, according to the positioning information of this element, the target text part can be determined from the page text of the page to be accessed according to the context information of the word element, narrowing the scope of subsequent positioning and matching, and improving the matching efficiency. Based on the word element, the entity word corresponding to the word element can be accurately matched from the target text part, ensuring the accuracy of the matching.
[0058] According to an embodiment of the present disclosure, the positioning information includes the page display style of the server and the initial positioning feature of the word element; wherein, based on the positioning information of the word element, determining the target text part from the page text of the page to be accessed includes: adjusting the initial positioning feature of the word element based on the page display style of the server and the page display style of the client to obtain a target positioning feature; and based on the target positioning feature, matching the target text part from the page text of the page to be accessed.
[0059] According to an embodiment of the present disclosure, the initial positioning feature can be used to represent the position where the word element is located on the page to be accessed under the page display style of the server, for example, paragraph A, line B.
[0060] According to an embodiment of the present disclosure, when the page display style of the server is the same as the page display style of the client, the initial positioning feature can be used as the target positioning feature. When the page display style of the server is different from the page display style of the client, based on the difference between the page display style of the server and the page display style of the client, the position of the word element at the position corresponding to the initial positioning feature under the page display style of the server in the page display style of the client can be determined, and this position is determined as the target positioning feature.
[0061] For example, when the page display style on the server side indicates that each line includes 40 characters, and the page display style on the client side indicates that each line includes 20 characters, and the initial positioning feature indicates that the position of the word element on the page to be accessed is in the 4th line of the 3rd paragraph, the position of the word element on the page to be accessed can be calculated under the page display style of the client side. Among them, the paragraph number does not need to be changed, and the line number can be determined according to the number of characters included in each line under different page display styles. Therefore, it can be determined that the target positioning feature indicates that the position of the word element on the page to be accessed on the client side is in the 7th - 8th line of the 3rd paragraph.
[0062] According to an embodiment of the present disclosure, after determining the target positioning feature, the text located at the target positioning feature can be determined as the target text part from the page text under the page display style of the client side.
[0063] According to an embodiment of the present disclosure, based on the page display style of the client side, the page display style of the server side, and the initial positioning feature of the word element, the target positioning feature of the word element in the client side can be determined, so as to quickly locate in the page text of the page to be accessed based on the target positioning feature, and thus match to obtain the target text part. Since the initial positioning feature and the target positioning feature can be represented in the form of paragraph numbers and line numbers, according to the target positioning feature, a relatively small target text part can be located, so as to perform further keyword matching in the target text part subsequently. Therefore, the efficiency and accuracy of the matching process are improved.
[0064] According to an embodiment of the present disclosure, based on the word element, the entity word corresponding to the word element is located from the target text part, including: using the word element as a keyword to perform keyword matching on the target text part to obtain a matching result; and based on the matching result, the entity word corresponding to the word element is located from the target text part.
[0065] According to an embodiment of the present disclosure, the matching result can be used to represent the position of the word element in the target text part.
[0066] According to an embodiment of the present disclosure, when the matching result indicates that there are more than one entity word corresponding to the word element in the target text part, the entity word data may further include the serial number of the entity word to be located among the multiple word elements in the target text part, so as to accurately determine the entity word from the multiple entity words obtained by exact matching according to the serial number.
[0067] According to an embodiment of the present disclosure, by performing further exact matching according to the word element from the target text part, the entity word can be accurately located, thereby improving the accuracy of determining the entity word.
[0068] According to an embodiment of the present disclosure, at least one word element is configured to be arranged based on the text content order of the page to be accessed; wherein, based on the positioning information of the word element, a target text portion is determined from the page text of the page to be accessed, including: for the i-th word element, performing a deletion process on the page text based on the position of the entity word corresponding to the (i - 1)-th word element in the page text to obtain a deleted page text, where i is an integer greater than 1; and determining the target text portion from the deleted page text based on the positioning information of the i-th word element.
[0069] According to an embodiment of the present disclosure, the text content of the page text of the page to be accessed includes at least one entity word, where each entity word may include a character, a word, or a phrase. According to the page text, the text content order of the page to be accessed can be determined, and according to the text content order, the order relationship between at least one text content included in the page text can be determined. Since at least one word element corresponds to at least one entity word respectively, at least one entity word can be converted into word elements respectively, and the at least one word element can be arranged according to the order relationship between at least one text content.
[0070] According to an embodiment of the present disclosure, since at least one word element is configured to be arranged based on the text content order, and the text content before a certain word element does not include other word elements after that word element, therefore, when performing the matching of that word element, the text content before the previous word element of that word element can be deleted.
[0071] According to an embodiment of the present disclosure, for the i-th word element, the i - 1 word elements before the i-th word element can be deleted, and the target text portion is determined from the deleted page text. Wherein, according to the positioning information of the i-th word element, the entity word corresponding to the i-th word element can be located in the deleted page text, so as to determine the target text portion.
[0072] According to an embodiment of the present disclosure, during the process of positioning the current word element among at least one word element arranged based on the text content order of the page to be accessed, another word element before the current word element can be determined, and the page text before that another word element in the text content is deleted to obtain a deleted page text, and then the current word element is located and the target text portion is determined in the deleted page text. It can be seen from the above analysis that performing the above deletion does not affect the accuracy of the matching process. Therefore, it is possible to reduce the size of the text to be matched while ensuring the matching accuracy, and improve the efficiency and accuracy of the determination process of the target text portion.
[0073] According to an embodiment of the present disclosure, performing clickable processing on an entity word to obtain a target page includes: obtaining address information of a search page for the entity word; generating a page label based on the address information; and modifying the entity word with the page label to perform clickable processing on the entity word and obtain the target page.
[0074] According to an embodiment of the present disclosure, the search page for the entity word can be determined by inputting the entity word into a search engine, performing a search, and then determining according to the relevance of the search results. From the multiple alternative pages included in the search results, a page with relatively high relevance can be selected as the search page, and its address information can be obtained.
[0075] According to an embodiment of the present disclosure, generating a page label based on the address information, where the page label may include a saliency enhancement process for the entity word. For example, the page label may be an underline, a highlighted area, etc. with a hyperlink that can jump to the address information added.
[0076] According to an embodiment of the present disclosure, modifying the entity word with the page label can use the saliency enhancement processing method corresponding to the page label to modify the entity word to obtain the target page. For example, when the page label is an underline, the modified entity word is the entity word with an underline added. And since the page label has a hyperlink added, after modifying the entity word with the page label, clicking on the entity word can jump to the search page through the hyperlink, thereby performing clickable processing on the entity word.
[0077] According to an embodiment of the present disclosure, generating a page label based on the address information of the search page for the entity word and modifying the entity word with the page label to complete the clickable processing of the entity word. Therefore, when clicking on the clickable processed entity word, an operation corresponding to the page label is triggered, and it jumps to the search page for the entity word, which can ensure the accuracy of the clickable processing.
[0078] Figure 3A Schematically shows the page display style and page text of the server side of the page processing method according to an embodiment of the present disclosure.
[0079] As Figure 3A shown, the page includes a title and a body text, and the body text includes two paragraphs. Among them, the entity word data of the page to be accessed returned by the server side includes entity word 1 in the title, entity words 2 and 3 in the first line of the first paragraph of the body text, and entity word 4 in the first line of the second paragraph of the body text. According to the page display style of the server side, it can be determined that the initial positioning feature indicates that entity word 1 is in the title, entity words 2 and 3 are in the first line of the first paragraph of the body text, and entity word 4 is in the first line of the second paragraph of the body text.
[0080] Figure 3BSchematically shows the page display style and page text of a client of a page processing method according to an embodiment of the present disclosure.
[0081] As Figure 3B shown, in this embodiment, the page display style of the client is the same as Figure 3A that of the server in [reference], so the initial positioning feature can be determined as the target positioning feature. According to the target positioning feature, it can be determined from the page text that the title includes entity word 1, the first line of the first paragraph of the text includes entity words 2 and 3, and the first line of the second paragraph of the text includes entity word 4.
[0082] After determining at least one entity word, the entity words are respectively processed to be clickable. Compared with the entity words before the clickable processing, the clickable entity words have new underlines and query identifiers, which are used to prompt the user that the entity words can be clicked for further query.
[0083] Figure 3C Schematically shows the page display style and page text of a client of a page processing method according to another embodiment of the present disclosure.
[0084] As Figure 3C shown, in this embodiment, the page display style of the client is different from Figure 3A that of the server in [reference], and in the page display style of the client, the number of characters that can be accommodated in each line is half of the number of words that can be accommodated in each line of the server's page display style. Therefore, according to the page display style of the client, the page display style of the server, and the initial positioning feature, the target positioning feature can be determined. The target positioning feature indicates that the title includes entity word 1, the first to second lines of the first paragraph of the text include entity words 2 and 3, and the first to second lines of the second paragraph of the text include entity word 4.
[0085] After determining at least one entity word, the entity words are respectively processed to be clickable. Compared with the entity words before the clickable processing, the clickable entity words have new underlines and query identifiers, which are used to prompt the user that the entity words can be clicked for further query.
[0086] According to an embodiment of the present disclosure, the page processing method further includes: in response to receiving a click operation on a target entity word in a target page, presenting a search page with the target entity word as a search keyword.
[0087] According to an embodiment of the present disclosure, after the clickable processing of the entity word is completed, the user can click on the entity word on the target page. After the user clicks on the target entity word on the target page, the client can trigger the hyperlink on the target entity word based on the click operation and the target entity word targeted by the click operation, and jump to the search page corresponding to the address information of the hyperlink, that is, the search page with the target entity word as the search keyword.
[0088] According to an embodiment of the present disclosure, in response to the click operation on the target entity word, it jumps to the search page through hyperlinks and other means to display the detailed information of the target entity word, which simplifies the operation when the user needs to search for the entity word in the target page, and improves the convenience and accuracy of the operation.
[0089] Figure 4 Schematically shows a flowchart of a page processing method according to another embodiment of the present disclosure.
[0090] As Figure 4 shown, the method includes operations S410 to S420.
[0091] In operation S410, in response to receiving the address information of the page to be accessed from the client, based on the address information of the page to be accessed, determine the entity word data of the page to be accessed.
[0092] According to an embodiment of the present disclosure, after the user initiates an access operation to the page to be accessed through the client, the server can receive the address information of the page to be accessed.
[0093] According to an embodiment of the present disclosure, the server can first determine whether the page to be accessed is a pre-processed page according to the address information of the page to be accessed. If it is determined that there is entity word data corresponding to the address information in the server's database, the entity word data can be directly read from the database. If it is determined that there is no entity word data corresponding to the address information in the server's database, the address information can be processed in real time on the server to obtain the entity word data of the page to be accessed.
[0094] In operation S420, send the entity word data of the page to be accessed to the client, so that the client can locate at least one entity word from the page to be accessed based on the entity word data, and perform clickable processing on the entity word to obtain the target page.
[0095] According to an embodiment of the present disclosure, after receiving the address information of the page to be accessed, the server can determine entity word data based on the address information and send the entity word data of the page to be accessed to the client, so that the client can process the page to be accessed into a target page including clickable entity words. By using the server to execute the process of determining entity word data, the processing load of the client can be reduced and the performance of the client can be ensured.
[0096] According to an embodiment of the present disclosure, the page processing method further includes: obtaining a plurality of pages; extracting feature data based on the page text of the pages to obtain entity word data of the pages; and storing the entity word data of the pages in a database with the address information of the pages as an index.
[0097] According to an embodiment of the present disclosure, multiple pages with the highest access frequencies can be selected according to the respective access frequencies of the pages, and the above-mentioned multiple pages can be obtained respectively. As long as the pages can be obtained, the specific obtaining means are not limited herein.
[0098] For example, pages can be obtained by directly scraping the page content, or the front-end code of the page can be obtained through developer tools, and then the front-end code can be parsed to obtain the page according to the content in the corresponding tags. Pages can also be obtained by automatically intercepting page images and then converting the image content into text through optical character recognition means.
[0099] According to an embodiment of the present disclosure, words that conform to a preset part of speech can be determined as entity words from the page text, and entity word data can be obtained by combining the entity words with the positioning information of the entity words in the page text.
[0100] According to an embodiment of the present disclosure, after completing the analysis of the page text, at least one entity word data corresponding to the page is stored in the database with the address information of the page as an index, so that when querying based on the address information of the page to be accessed later, it can be quickly determined whether there is a record corresponding to the address information in the database.
[0101] According to an embodiment of the present disclosure, by obtaining a plurality of pages, extracting feature data from the pages, determining entity word data of the pages, and storing the address information and entity word data of the pages in the database, a large amount of data can be obtained in advance. Therefore, when responding to the request of the client, direct query and matching can be performed in the database, which improves the response speed and optimizes the user experience. In addition, since the page text of the pages can be obtained by obtaining the pages, for any page on the Internet, the page processing method can be used to determine entity word data, which increases the applicable range of the page processing method.
[0102] According to an embodiment of the present disclosure, feature data extraction is performed on page text of a page to obtain entity word data of the page, including: performing word segmentation on the page text of the page to obtain a plurality of segmented words; screening at least one word element from the plurality of segmented words based on the part of speech of the segmented words; determining the positioning information of each of the at least one word element from the page text; and obtaining the entity word data of the page based on the at least one word element and the positioning information of each of the at least one word element.
[0103] According to an embodiment of the present disclosure, natural language processing means can be used to segment the page text into appropriate granularity to obtain a plurality of segmented words. Among them, the granularity of word segmentation can be determined according to ways such as professional dictionaries, word frequency statistics, grammar and semantic rules, etc.
[0104] According to an embodiment of the present disclosure, the part of speech of the segmented words is determined, and the segmented words with preset parts of speech are determined as word elements. Among them, the preset parts of speech can include nouns, verbs, etc. Since the segmented words with these parts of speech have practical meanings, these segmented words have a greater impact on semantics and need to be retained during the screening process. Stop words such as pronouns, prepositions, conjunctions, and auxiliary words, which have a smaller impact on semantics, do not need to be retained during the screening process.
[0105] According to an embodiment of the present disclosure, after determining at least one word element, the positioning information of each of the at least one word element is determined from the page text, where the positioning information can be used to represent the position of each of the at least one word element in the page text.
[0106] According to an embodiment of the present disclosure, the page text is segmented, and at least one word element that meets the requirements is screened from the obtained plurality of segmented words according to the part of speech, and further the entity word data of the page is obtained. By deleting stop words such as pronouns, prepositions, conjunctions, and auxiliary words, which have a smaller impact on semantics, it can be ensured that the deleted segmented words have a smaller impact on semantics, and it can also reduce the number of word elements and reduce resource waste.
[0107] According to an embodiment of the present disclosure, the positioning information includes the context information of the word element; among them, determining the positioning information of each of the at least one word element from the page text includes: determining the target sentence where the word element is located from the page text; and obtaining the context information of the word element based on the target sentence.
[0108] According to an embodiment of the present disclosure, the position of the word element in the page text is determined, and based on the text delimiter closest to the word element before and after, the target sentence where the word element is located is determined, where the text delimiter can include end-of-sentence punctuation, line breaks, etc. After determining the target sentence, the target sentence can be directly used as the context information of the word element.
[0109] According to an embodiment of the present disclosure, after determining the target sentence, it is also possible to perform matching in the page text based on the target sentence. In the case where there are more than one sentence identical to the target sentence, if the target sentence is directly used as the context information, there will be a problem of being unable to accurately locate a unique entity word in the subsequent process of processing the page using the client.
[0110] In this case, based on the target sentence, it is possible to expand forward and backward from the target sentence. For example, determine the target sentence and the next sentence of the target sentence, and perform matching in the page text based on the target sentence and the next sentence of the target sentence. In the case where there is a unique successful matching result, the target sentence and the next sentence of the target sentence can be used as the context information of the word element.
[0111] According to an embodiment of the present disclosure, determining the context information of the word element according to the target sentence where the word element is located can reduce the probability of duplicate matching in the process of matching data by expanding the granularity of the data, thereby improving the accuracy and pertinence of page processing.
[0112] According to an embodiment of the present disclosure, the page processing method further includes: performing type recognition on the page to obtain a recognition result; and in the case where the recognition result indicates that the type of the page is a preset type, extracting feature data based on the page text of the page to obtain the entity word data of the page.
[0113] According to an embodiment of the present disclosure, the front-end code of the page can be parsed, and the recognition result can be determined according to the tags existing in the page and the content in the tags. Taking HyperText Markup Language (HTML) as an example, the HTML source code of the page can be obtained, and the number of each tag in the source code and the content in the tag can be determined. In the source code, for example 、 When tags such as <iframe>, when tags such as <video> are the main body, it can be determined that the page is a video page mainly composed of video content.
[0114] Since the page processing method mainly processes page text, the preset types can include article pages mainly composed of article content, etc. In addition, when the recognition result indicates that the type of the page is a picture page mainly composed of pictures, optical character recognition can be performed on the pictures. When it is determined that the text content or the number of characters in the pictures reaches the preset number, the result of the optical character recognition can be used as the page text, and the page processing method can be used to process the page text.
[0115] According to an embodiment of the present disclosure, by performing type recognition on the page and determining whether to perform page processing based on the recognition result, it is possible to filter out pages of types that do not require page processing, thereby reducing resource waste on the server side and improving resource utilization.
[0116] According to an embodiment of the present disclosure, based on the address information of the page to be accessed, the entity word data of the page to be accessed is determined, including: using the address information of the page to be accessed as an index to perform data retrieval in the database to obtain the entity word data of the page to be accessed.
[0117] According to an embodiment of the present disclosure, since after extracting the feature data of the page text of the page to obtain the entity word data of the page, the address information and the entity word data are stored in the database in the form of key-value pairs, when the server receives the address information of the page to be accessed sent by the client, it can perform data retrieval in the database based on the address information to determine whether there is a record with the address information as the KEY in the database.
[0118] According to an embodiment of the present disclosure, when it is determined that there is a record with the address information as the KEY in the database, the VALUE corresponding to the record can be read and determined as the entity word data of the page to be accessed.
[0119] According to an embodiment of the present disclosure, storing and querying data in the form of key-value pairs can improve data query efficiency and ensure the accuracy of query results.
[0120] According to an embodiment of the present disclosure, using the address information of the page to be accessed as an index to perform data retrieval in the database to obtain the entity word data of the page to be accessed includes: using the address information of the page to be accessed as an index to perform data retrieval in the database to obtain the initial entity word data of the page to be accessed; and performing data processing on the initial entity word data to obtain the entity word data of the page to be accessed.
[0121] In the case where there is a record with address information as the KEY in the database, in the VALUE of this record, that is, in the initial entity word data, it includes all entity word data in the page text of the page to be accessed. Usually, although most entity word data will affect the semantics, these entity word data themselves are relatively easy to understand and there is no need for further search.
[0122] In this case, if all entity word data are sent to the client and the entity words are made clickable, there will be too many clickable items in the target page, and it is easy to accidentally touch them, affecting the customer experience. In addition, for those entity words that do not require further search, even if they are made clickable, users rarely click on them actively, and the client will perform a large number of ineffective processes, resulting in a waste of computing resources.
[0123] According to an embodiment of the present disclosure, after determining the initial entity word data, further data processing can be performed on the initial entity word data to delete some entity word data that do not require further search, and obtain the entity word data of the page to be accessed.
[0124] According to an embodiment of the present disclosure, data processing is performed on the initial entity word data of the page to be accessed to obtain the entity word data of the page to be accessed, including: obtaining the click-through rate score of each of at least one initial word element included in the initial entity word data, where the click-through rate score of the initial word element is obtained by estimating the click-through rate of the initial word element; screening at least one target word element from at least one initial word element based on the click-through rate scores of each of at least one initial word element; and obtaining the entity word data of the page to be accessed based on at least one target word element and the positioning information of each of at least one target word element.
[0125] According to an embodiment of the present disclosure, the click-through rate of at least one initial word element can be estimated respectively to obtain an estimated value of the probability that the initial entity word is clicked after the at least one initial entity word is made clickable, as the click-through rate score of the initial word element.
[0126] According to an embodiment of the present disclosure, the click-through rate scores of each of at least one initial word element are sorted, and the preset number of word elements with the largest click-through rate scores are selected as target word elements. Among them, when the number of initial word elements is less than the preset number of words, all initial word elements can be directly determined as target word elements.
[0127] According to an embodiment of the present disclosure, at least one element is sorted according to the click-through rate score, the initial word element is sorted and selected to obtain the target word element, and further the entity word data of the page to be accessed is obtained. It can ensure that in the case of a large number of initial word elements, the word elements with a higher possibility of being clicked are preferentially used as the target word elements. Therefore, after the page is processed based on the entity word data, the number of clickable entity words is reduced, and the possibility of misoperation is reduced. Since the click-through rate scores of the clickable entity words are relatively high, the utilization rate of the entity words after clickable processing is high, and the utilization rate of the computing resources of the client is improved.
[0128] According to an embodiment of the present disclosure, data processing is performed on the initial entity word data of the page to be accessed to obtain the entity word data of the page to be accessed, including: sorting at least one initial word element included in the initial entity word data based on the text content of the page; and obtaining the entity word data of the page based on the sorted at least one word element and the positioning information of each of the sorted at least one word element.
[0129] According to an embodiment of the present disclosure, at least one initial word element is sorted according to the positioning information of each of the at least one initial word element in the page text and the text content. In the order from front to back, at least one word element and its respective positioning information are sorted to obtain the entity word data of the page.
[0130] According to an embodiment of the present disclosure, by sorting at least one initial word element and obtaining the entity word data of the page, at least one word element in the entity word data of the page can be arranged in the order in which it appears in the page text, so as to ensure that during the positioning process in the page to be accessed, when matching a certain word element, deleting the text content before the word element before it will not affect the matching process of the word element.
[0131] According to an embodiment of the present disclosure, the page processing method further includes: in the case where the entity word data of the page to be accessed cannot be retrieved from the database, obtaining the page text of the page to be accessed based on the address information of the page to be accessed; and extracting feature data based on the page text of the page to be accessed to obtain the entity word data of the page to be accessed.
[0132] According to an embodiment of the present disclosure, since in the Internet, the speed of page addition and update is very fast, there is a possibility that the server does not preprocess the page to be accessed that the client needs to access in advance. In this case, the address information of the page to be accessed and the corresponding entity word data are not included in the server database.
[0133] According to an embodiment of the present disclosure, when it is determined that the database does not include the entity word data of the page to be visited, after obtaining the address information of the page to be visited, the page text of the page to be visited can be obtained in real time based on the address information of the page to be visited, and feature data can be extracted from the page text to obtain the entity word data of the page to be visited.
[0134] According to another embodiment of the present disclosure, the client may also send the page text of the page to be accessed together with the address information to the server.
[0135] According to an embodiment of the present disclosure, after obtaining the entity word data of the page to be visited, the entity word data of the page to be visited can be stored in a database using the address information of the page to be visited as an index, so that when the client subsequently initiates an access request for the page to be visited again, the server can directly obtain the entity word data of the page to be visited from the database without the need for real-time processing again, thereby improving the response speed.
[0136] According to the embodiments of the present disclosure, when it is determined that the database of the server does not include entity word data of the page to be accessed, the content of the page to be accessed is analyzed and processed in real time according to the address information of the page to be accessed to obtain the entity word data of the page to be accessed. Therefore, entity word data can be provided for any page to be accessed, and is not limited to pre-processed pages, which improves the universality and flexibility of the page processing method.
[0137] Figure 5 schematically shows a block diagram of a page processing device according to an embodiment of the present disclosure.
[0138] As shown in Figure 5 , the page processing device 500 of this embodiment includes an information sending module 510, an entity word positioning module 520 and an entity word processing module 530.
[0139] The information sending module 510 is used to send the address information of the page to be accessed to the server in response to the page access request, so as to obtain the entity word data of the page to be accessed returned by the server.
[0140] The entity word location module 520 is used to locate at least one entity word from the page to be accessed based on the entity word data.
[0141] The entity word processing module 530 is used to perform clickable processing on the entity word to obtain a target page.
[0142] According to an embodiment of the present disclosure, the entity word location module 520 includes a target determination sub-module and an entity word location sub-module.
[0143] The target determination sub-module is used to determine a target text part from the page text of the page to be accessed based on the location information of the word element.
[0144] The entity word location sub-module is used to locate the entity word corresponding to the word element from the target text part based on the word element.
[0145] According to an embodiment of the present disclosure, the target determination sub-module includes a first text matching unit.
[0146] The first text matching unit is used to perform text matching in the page text of the page to be accessed based on the context information of the word element, obtain a target sentence corresponding to the context information of the word element, and obtain a target text part.
[0147] According to an embodiment of the present disclosure, the target determination sub-module includes a feature adjustment unit and a second text matching unit.
[0148] The feature adjustment unit is used to adjust the initial location feature of the word element based on the page display style of the server and the page display style of the client to obtain a target location feature.
[0149] The second text matching unit is used to match and obtain a target text part from the page text of the page to be accessed based on the target location feature.
[0150] According to an embodiment of the present disclosure, the entity word location sub-module includes a keyword matching unit and a word location unit.
[0151] The keyword matching unit is used to perform keyword matching on the target text part with the word element as the keyword to obtain a matching result.
[0152] The word location unit is used to locate the entity word corresponding to the word element from the target text part based on the matching result.
[0153] According to an embodiment of the present disclosure, the target determination sub-module includes a text deletion unit and a third text matching unit.
[0154] The text deletion unit is configured to perform deletion processing on the page text for the i-th word element based on the position of the entity word corresponding to the (i - 1)-th word element in the page text, to obtain the deleted page text, where i is an integer greater than 1.
[0155] The third text matching unit is configured to determine the target text part from the deleted page text based on the positioning information of the i-th word element.
[0156] According to an embodiment of the present disclosure, the entity word processing module 530 includes an address acquisition sub-module, a tag generation sub-module, and an entity word modification sub-module.
[0157] The address acquisition sub-module is configured to acquire the address information of the search page for the entity word.
[0158] The tag generation sub-module is configured to generate a page tag based on the address information.
[0159] The entity word modification sub-module is configured to modify the entity word with the page tag to perform clickable processing on the entity word, to obtain the target page.
[0160] According to an embodiment of the present disclosure, the page processing device 500 further includes a page display module.
[0161] The page display module is configured to, in response to receiving a click operation on the target entity word in the target page, display a search page with the target entity word as the search keyword.
[0162] Figure 6 schematically shows a block diagram of a page processing device according to another embodiment of the present disclosure.
[0163] As shown in Figure 6, the page processing device 600 of this embodiment includes an entity word determination module 610 and an entity word sending module 620.
[0164] The entity word determination module 610 is configured to, in response to receiving the address information of the page to be accessed from the client, determine the entity word data of the page to be accessed based on the address information of the page to be accessed.
[0165] The entity word sending module 620 is configured to send the entity word data of the page to be accessed to the client, so that the client can locate at least one entity word from the page to be accessed based on the entity word data and perform clickable processing on the entity word to obtain the target page.
[0166] According to an embodiment of the present disclosure, the page processing device 600 further includes a page acquisition module, a first data extraction module, and a data storage module.
[0167] The page acquisition module is configured to acquire a plurality of pages.
[0168] The first data extraction module is configured to extract feature data based on the page text of the page to obtain the entity word data of the page.
[0169] The data storage module is configured to store the entity word data of the page in the database using the address information of the page as an index.
[0170] According to an embodiment of the present disclosure, the first data extraction module includes a word segmentation sub-module, a screening sub-module, a positioning sub-module, and a data generation sub-module.
[0171] The word segmentation sub-module is configured to perform word segmentation processing on the page text of the page to obtain a plurality of segmented words.
[0172] The screening sub-module is configured to screen at least one word element from the plurality of segmented words based on the part of speech of the segmented words.
[0173] The positioning sub-module is configured to determine the positioning information of each of at least one word element from the page text.
[0174] The data generation sub-module is configured to obtain the entity word data of the page based on at least one word element and the positioning information of each of at least one word element.
[0175] According to an embodiment of the present disclosure, the positioning sub-module includes a sentence determination unit and an information determination unit.
[0176] The sentence determination unit is configured to determine the target sentence in which the word element is located from the page text.
[0177] The information determination unit is configured to obtain the context information of the word element based on the target sentence.
[0178] According to an embodiment of the present disclosure, the page processing device 600 further includes a type recognition module and a second data extraction module.
[0179] The type recognition module is configured to perform type recognition on the page to obtain a recognition result.
[0180] The second data extraction module is configured to extract feature data based on the page text of the page to obtain the entity word data of the page when the type of the recognition result representation page is a preset type.
[0181] According to an embodiment of the present disclosure, the entity word determination module 610 includes a data retrieval sub-module.
[0182] The data retrieval sub-module is configured to perform data retrieval in the database using the address information of the page to be accessed as an index to obtain the entity word data of the page to be accessed.
[0183] According to an embodiment of the present disclosure, the data retrieval sub-module includes a data retrieval unit and a data filtering unit.
[0184] The data retrieval unit is configured to perform data retrieval in the database using the address information of the page to be accessed as an index to obtain the initial entity word data of the page to be accessed.
[0185] The data filtering unit is configured to perform data processing on the initial entity word data to obtain the entity word data of the page to be accessed.
[0186] According to an embodiment of the present disclosure, the data filtering unit includes a score calculation sub-unit, an element screening sub-unit, and a first data determination sub-unit.
[0187] The score calculation sub-unit is configured to obtain the click-through rate score of each of at least one initial word element included in the initial entity word data, and the click-through rate score of the initial word element is obtained by estimating the click-through rate of the initial word element.
[0188] The element screening sub-unit is configured to screen at least one target word element from at least one initial word element based on the click-through rate scores of the at least one initial word element.
[0189] The first data determination sub-unit is configured to obtain the entity word data of the page to be accessed based on the at least one target word element and the positioning information of each of the at least one target word element.
[0190] According to an embodiment of the present disclosure, the data filtering unit includes an element sorting sub-unit and a second data determination sub-unit.
[0191] The element sorting sub-unit is configured to sort at least one initial word element included in the initial entity word data based on the text content of the page.
[0192] The second data determination subunit is configured to obtain the entity word data of the page based on the sorted at least one word element and the positioning information of each of the sorted at least one word element.
[0193] According to an embodiment of the present disclosure, the page processing device 600 further includes a text acquisition module and a third data extraction module.
[0194] The text acquisition module is configured to obtain the page text of the page to be accessed based on the address information of the page to be accessed when the entity word data of the page to be accessed cannot be retrieved from the database.
[0195] The third data extraction module is configured to extract feature data based on the page text of the page to be accessed to obtain the entity word data of the page to be accessed.
[0196] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0197] According to an embodiment of the present disclosure, an electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described above.
[0198] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method described above.
[0199] According to an embodiment of the present disclosure, a computer program product includes a computer program, and the computer program implements the method described above when executed by a processor.
[0200] Figure 7 shows a schematic block diagram of an exemplary electronic device 700 that can be used to implement the embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices.The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0201] As shown in Figure 7, device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0202] A plurality of components in the device 700 are connected to the input / output (I / O) interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a magnetic disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0203] The computing unit 701 can be various general-purpose and / or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 701 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 701 executes the various methods and processes described above, such as the page processing method. For example, in some embodiments, the page processing method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the page processing method described above can be executed. Alternatively, in other embodiments, the computing unit 701 can be configured to execute the page processing method by any other appropriate means (e.g., by means of firmware).
[0204] Various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.
[0205] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on the remote machine or server.
[0206] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0207] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0208] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.
[0209] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship between the client and the server is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
[0210] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and no limitation is imposed herein.
[0211] The above specific embodiments do not constitute a limitation on the protection scope of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of this disclosure shall be included within the protection scope of this disclosure.< / iframe>
Claims
1. A page processing method, comprising: In response to a page access request, sending address information of a page to be accessed to a server to obtain entity word data of the page to be accessed returned by the server; Based on the entity word data, locating at least one entity word from the page to be accessed; And Performing clickable processing on the entity word to obtain a target page.
2. The method according to claim 1, wherein The entity word data includes at least one word element and respective positioning information of the at least one word element, and the at least one word element corresponds to the at least one entity word respectively; Wherein, the locating at least one entity word from the page to be accessed based on the entity word data includes: Determining a target text part from the page text of the page to be accessed based on the positioning information of the word element; and Locating an entity word corresponding to the word element from the target text part based on the word element.
3. The method according to claim 2, wherein The positioning information includes context information of the word element; Wherein, the determining a target text part from the page text of the page to be accessed based on the positioning information of the word element includes: Performing text matching in the page text of the page to be accessed based on the context information of the word element to obtain a target sentence corresponding to the context information of the word element, and obtaining the target text part.
4. The method according to claim 2, wherein, The positioning information includes the page display style of the server and the initial positioning feature of the word element; Wherein, the determining a target text part from the page text of the page to be accessed based on the positioning information of the word element includes: Adjusting the initial positioning feature of the word element based on the page display style of the server and the page display style of the client to obtain a target positioning feature; and Matching and obtaining the target text part from the page text of the page to be accessed based on the target positioning feature.
5. The method according to any one of claims 2 to 4, wherein The locating an entity word corresponding to the word element from the target text part based on the word element includes: Using the word element as a keyword to perform keyword matching on the target text part to obtain a matching result; and Locating an entity word corresponding to the word element from the target text part based on the matching result.
6. The method according to claim 2, wherein, The at least one word element is configured to be arranged in sequence based on the text content of the page to be accessed; Wherein, the determining a target text part from the page text of the page to be accessed based on the positioning information of the word element includes: For the i-th word element, performing deletion processing on the page text based on the position of the entity word corresponding to the (i-1)-th word element in the page text, where i is an integer greater than 1; and Determining a target text part from the deleted page text based on the positioning information of the i-th word element.
7. The method according to claim 1, wherein, The performing clickable processing on the entity word to obtain a target page includes: Obtaining address information of a search page for the entity word; Generating a page label based on the address information; and Modify the entity word with the page tag to perform clickable processing on the entity word, and obtain the target page.
8. The method according to claim 1, further comprising: In response to receiving a click operation on a target entity word in the target page, display a search page with the target entity word as a search keyword.
9. A page processing method, comprising: In response to receiving address information of a page to be accessed from a client, based on the address information of the page to be accessed, determine entity word data of the page to be accessed; And Send the entity word data of the page to be accessed to the client, so that the client locates at least one entity word from the page to be accessed based on the entity word data, and perform clickable processing on the entity word to obtain a target page.
10. The method according to claim 9, further comprising: Obtain multiple pages; Extract feature data based on the page text of the page to obtain entity word data of the page; And Use the address information of the page as an index to store the entity word data of the page in a database.
11. The method according to claim 10, wherein, The extracting feature data based on the page text of the page to obtain entity word data of the page includes: Perform word segmentation processing on the page text of the page to obtain multiple segmented words; Based on the part-of-speech of the segmented words, screen at least one word element from the multiple segmented words; Determine the respective positioning information of the at least one word element from the page text; and Based on the at least one word element and the respective positioning information of the at least one word element, obtain the entity word data of the page.
12. The method according to claim 11, wherein, The positioning information includes context information of the word element; Wherein, the determining the respective positioning information of the at least one word element from the page text includes: Determine the target sentence in which the word element is located from the page text; and Based on the target sentence, obtain the context information of the word element.
13. The method according to claim 10, further comprising: Perform type recognition on the page to obtain a recognition result; And In the case where the recognition result indicates that the type of the page is a preset type, extract feature data based on the page text of the page to obtain entity word data of the page.
14. The method according to any one of claims 9 to 13, wherein, The determining the entity word data of the page to be accessed based on the address information of the page to be accessed includes: Use the address information of the page to be accessed as an index to perform data retrieval in a database to obtain the entity word data of the page to be accessed.
15. The method according to any one of claims 9 to 13, wherein The using the address information of the page to be accessed as an index to perform data retrieval in a database to obtain the entity word data of the page to be accessed includes: Use the address information of the page to be accessed as an index to perform data retrieval in a database to obtain the initial entity word data of the page to be accessed; and Perform data processing on the initial entity word data to obtain the entity word data of the page to be accessed.
16. The method according to claim 15, wherein, The performing data processing on the initial entity word data of the page to be accessed to obtain the entity word data of the page to be accessed includes: Obtain the click-through rate score of each of at least one initial word element included in the initial entity word data, where the click-through rate score of the initial word element is obtained by estimating the click-through rate of the initial word element; Based on the click-through rate scores of at least one initial word element respectively, screen at least one target word element from the at least one initial word element; and Based on the at least one target word element and the positioning information of each of the at least one target word element, obtain the entity word data of the page to be accessed.
17. The method according to claim 15, wherein The data processing of the initial entity word data of the page to be accessed to obtain the entity word data of the page to be accessed includes: Sort at least one initial word element included in the initial entity word data based on the text content of the page; and Based on the sorted at least one word element and the positioning information of each of the sorted at least one word element, obtain the entity word data of the page.
18. The method according to any one of claims 14 to 17, further comprising: In the case where the entity word data of the page to be accessed cannot be retrieved from the database, based on the address information of the page to be accessed, obtain the page text of the page to be accessed; And Based on the page text of the page to be accessed, extract feature data to obtain the entity word data of the page to be accessed.
19. A page processing device, comprising: An information sending module, configured to, in response to a page access request, send the address information of the page to be accessed to a server to obtain the entity word data of the page to be accessed returned by the server; An entity word positioning module, configured to, based on the entity word data, locate at least one entity word from the page to be accessed; And An entity word processing module, configured to perform clickable processing on the entity word to obtain a target page.
20. A page processing device, comprising: An entity word determination module, configured to, in response to receiving the address information of the page to be accessed from a client, based on the address information of the page to be accessed, determine the entity word data of the page to be accessed; And An entity word sending module, configured to send the entity word data of the page to be accessed to the client, so that the client, based on the entity word data, locates at least one entity word from the page to be accessed, and performs clickable processing on the entity word to obtain a target page.
21. An electronic device, comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method according to any one of claims 1-18.
22. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-18.
23. A computer program product, comprising a computer program, where the computer program, when executed by a processor, implements the method according to any one of claims 1-18.