Webpage content display method and device, electronic equipment and computer readable medium

By extracting the document object tree and knowledge graph of the web page, performing entity extraction and correction, and generating accurate user consultation semantic information and reply content, solving the problems of answering non-questions and overloading of servers in the existing technology, realizing the accurate display and efficient operation of web page content.

CN119939067AActive Publication Date: 2025-05-06BEIJING ZHONGQI HUIYUN TECH CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510032645.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-05-06
Estimated Expiration
2045-01-09

AI Technical Summary

Technical Problem

When the prior art deals with the consultation questions that users enter on the web page, the question-and-answer model may be based on the differences in the semantic meaning of the entity, resulting in the answers that are not asked. When the data volume is large, the accurate determination of the semantics of the question is longer, resulting in excessive server load and affecting the normal operation of the web page.

Method used

By obtaining the document object tree and knowledge graph of the target web page, extracting the association relationship between the object nodes and nodes, generating a set of key information blocks, performing entity extraction and knowledge graph correction, generating a corrected knowledge graph, storing and using it to generate user consultation semantic information and reply content, and finally displaying the reply content in an appropriate modal manner in the web page.

Benefits of technology

It realizes accurate identification and reply to user consultation questions, reduces the time to generate consultation semantic information, avoids excessive server load, and ensures the normal operation and loading of web pages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119939067A_ABST
    Figure CN119939067A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a webpage content display method and device, electronic equipment and a computer readable medium. A specific embodiment of the method comprises the steps of obtaining a document object tree and a target knowledge graph; extracting an object node set and a node association relationship; generating a key information block set according to the object node set and the node association relationship; generating entity extraction information according to the key information block set; performing entity correction processing on the target knowledge graph to generate a corrected knowledge graph; storing the corrected knowledge graph and scene information to a target storage terminal; in response to the received user consultation information, generating user consultation semantic information according to the corrected knowledge graph and the user consultation information; generating consultation reply content; and displaying the consultation reply content. According to the embodiment, on the basis of accurately generating the knowledge graph by utilizing the entity semantic content, the consultation semantic content of the target user can be accurately identified, so that consultation reply can be accurately realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a web page content display method, device, electronic device, and computer-readable medium. Background Art

[0002] At present, with the continuous development of computer technology, the application of knowledge graphs in user consultation scenarios is becoming more and more widespread. To answer the consultation questions entered by users on the web page, the usual method is: first, extract the consultation questions entered by users on the web page. Then, input the consultation questions into the question-answering model to generate the answer content. Finally, display the answer content on the web page.

[0003] However, when the above method is adopted, the following technical problems often occur:

[0004] For the consultation questions entered by users on the web page, the question-answering model may extract different question semantics based on the different semantic meanings of the entities, resulting in irrelevant answers. In addition, when the amount of user access data is large, the time required to accurately determine the question semantics is long and the required resources are large. The backend server corresponding to the web page is overloaded, which may affect the normal operation and loading of the web page.

[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention

[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0007] Some embodiments of the present disclosure propose a webpage content display method, device, electronic device, and computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0008] In a first aspect, some embodiments of the present disclosure provide a web page content display method, comprising: obtaining a document object tree and a target knowledge graph stored in a target memory corresponding to a target web page, wherein the target web page is a web page for a target scenario under a target domain, and the target knowledge graph is a knowledge graph corresponding to the target scenario; extracting each object node in the document object tree to obtain an object node set and a node association relationship; generating a key information block set corresponding to the document object tree based on the object node set and the node association relationship; generating entity extraction information for the target web page based on the key information block set; and based on the entity extraction information, Perform entity correction processing on the target knowledge graph to generate a corrected knowledge graph; store the corrected knowledge graph and the scene information corresponding to the target scene in a target storage terminal; in response to receiving user consultation information input by a target user for the target web page, generate user consultation semantic information based on the corrected knowledge graph and the user consultation information stored in the target storage terminal; generate consultation reply content for the user consultation semantic information; display the consultation reply content on the target web page in a target display mode, wherein the target display mode is one of the following: text mode, audio mode, image mode, video mode.

[0009] In a second aspect, some embodiments of the present disclosure provide a web page content display device, including: an acquisition unit, configured to acquire a document object tree and a target knowledge graph stored in a target memory corresponding to a target web page, wherein the target web page is a web page for a target scenario under a target domain, and the target knowledge graph is a knowledge graph corresponding to the target scenario; an extraction unit, configured to extract each object node in the document object tree to obtain an object node set and a node association relationship; a first generation unit, configured to generate a key information block set corresponding to the document object tree according to the object node set and the node association relationship; a second generation unit, configured to generate entity extraction information for the target web page according to the key information block set; and a correction unit, configured to generate entity information for the target web page according to the entity Extract information, perform entity correction processing on the above-mentioned target knowledge graph to generate a corrected knowledge graph; a storage unit is configured to store the above-mentioned corrected knowledge graph and the scene information corresponding to the above-mentioned target scene to a target storage terminal; a third generation unit is configured to generate user consultation semantic information in response to receiving user consultation information input by the target user for the above-mentioned target web page, according to the corrected knowledge graph stored in the above-mentioned target storage terminal and the above-mentioned user consultation information; a fourth generation unit is configured to generate consultation reply content for the above-mentioned user consultation semantic information; a display unit is configured to display the above-mentioned consultation reply content on the above-mentioned target web page in a target display mode, wherein the above-mentioned target display mode is one of the following: text mode, audio mode, image mode, video mode.

[0010] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.

[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner in the first aspect is implemented.

[0012] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the web page content display method of some embodiments of the present disclosure, on the basis of accurately generating a knowledge graph using entity semantic content, the target user's consultation semantic content can be accurately identified, so as to accurately implement the consultation reply. Specifically, the reason why the relevant consultation reply is not accurate enough and affects the normal operation of the web page is that the question-answering model may extract different question semantics based on the different semantic meanings of the entity for the consultation question entered by the user on the web page, resulting in the occurrence of the situation where the answer is not what is asked. In addition, when the user accesses a large amount of data, the precise determination of the question semantics takes a long time, requires more resources, and the back-end server corresponding to the web page is overloaded, which may affect the normal operation of the web page and the normal loading of the web page. Based on this, the web page content display method of some embodiments of the present disclosure first obtains the document object tree and the target knowledge graph stored in the target memory corresponding to the target web page. Here, by pre-storing the document object tree and the knowledge graph in the target memory, it is convenient to call the processor to extract the object node and the node association relationship. In addition, it is also used to determine the association relationship and the knowledge graph of the real semantics corresponding to each entity in the target scene. Here, the target knowledge graph is a graph that represents the relationship between various entities that is pre-built and stored based on the target scenario. Then, each object node in the above-mentioned document object tree is extracted to obtain an object node set and a node association relationship, so as to facilitate the subsequent extraction of the key web page content in the above-mentioned target web page corresponding to the document object tree. Then, based on the above-mentioned object node set and the above-mentioned node association relationship, the key information block set corresponding to the above-mentioned document object tree can be accurately generated. Here, the generated key information block set is used to determine the meaning of each entity corresponding to the target web page, so as to make corresponding adjustments to the entities in the target knowledge graph and generate a knowledge graph applicable to the target web page. Then, based on the above-mentioned key information block set, the entity extraction information for the above-mentioned target web page can be accurately generated, and then, based on the above-mentioned entity extraction information, the above-mentioned target knowledge graph is subjected to entity correction processing to accurately generate the corrected knowledge graph corresponding to the target web page. Secondly, the above-mentioned corrected knowledge graph and the web page information corresponding to the above-mentioned target web page are stored in the target storage terminal, so as to facilitate the subsequent real-time and accurate determination of the semantic content of the search information under the target web page. Furthermore, in response to receiving the user consultation information input by the target user for the target webpage, the user consultation semantic information can be accurately generated according to the corrected knowledge graph stored in the target storage terminal and the user consultation information. Furthermore, the consultation reply content for the user consultation semantic information is accurately generated to facilitate the subsequent reply to the target user. Finally, the consultation reply content is displayed on the target webpage in the target display mode, wherein the target display mode is one of the following: text mode, audio mode, image mode, video mode.In summary, after extracting key information blocks through the document object tree and generating the knowledge graph corresponding to the target web page based on the key information blocks, accurate responses can be given to users' consultation questions. And by generating the knowledge graph corresponding to the target web page, the generation time of consultation semantic information can be reduced, avoiding the situation where the server is heavily loaded due to massive user requests, and further avoiding abnormal operation of the web page. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0014] Figure 1 is a flow chart of some embodiments of the webpage content display method according to the present disclosure;

[0015] Figure 2 It is a schematic diagram of the structure of some embodiments of the webpage content display device according to the present disclosure;

[0016] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0018] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0019] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0020] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0021] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0022] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0023] refer to Figure 1 , shows a process 100 of some embodiments of the webpage content display method according to the present disclosure. The webpage content display method comprises the following steps:

[0024] Step 101, obtain the document object tree and target knowledge graph stored in the target memory corresponding to the target web page.

[0025] In some embodiments, the execution subject (for example, an electronic device) of the above-mentioned web page content display method can obtain the document object tree and the target knowledge graph corresponding to the target web page through a wired connection method or a wireless connection method. Among them, the target web page can be a page that supports user consultation and access. For example, the target netizen can be a search page. The above-mentioned target web page is a web page for a target scene under a target field. The target field can be a predetermined field to be subjected to entity correction. For example, the target field can be an e-commerce field. The target scene can be a certain scene in the target field. For example, the target scene can be an after-sales scene of an item. The above-mentioned target knowledge graph is a knowledge graph corresponding to the above-mentioned target scene. That is, the target knowledge graph can be a knowledge graph corresponding to each related entity under the target scene. For example, for the target scene being an after-sales scene of an item, the corresponding entities can be each item, each merchant, and each supply location registered by the e-commerce company to support after-sales processing. The document object tree can be a DOM (Document Object Model) tree of a web page.

[0026] Here, after determining the request to generate the knowledge graph corresponding to the target web page, the execution subject will store the document object tree and the target knowledge graph in the target memory in advance, so as to facilitate the subsequent call of the processor to execute the generation of the knowledge graph corresponding to the target web page. Here, the processor can be a central processing unit (CPU). By pre-storing the document object tree and the target knowledge graph in the target memory, the processor can effectively and quickly obtain the corresponding calculation data, greatly improving the execution efficiency of the processor and the generation efficiency of the knowledge graph corresponding to the target web page.

[0027] Step 102: extract each object node in the document object tree to obtain an object node set and node association relationships.

[0028] In some embodiments, the execution subject may extract each object node in the document object tree to obtain an object node set and a node association relationship. The object node set may be each document object in the document object tree. The node association relationship may characterize the correspondence between each object node. For example, the node association relationship may be one of the following: a parent-child relationship. It should be noted that the execution subject may extract each object node in the document object tree in the processor by deep traversal to obtain an object node set and a node association relationship.

[0029] As an example, the execution subject may extract each object node in the document object tree by using a preset target regular expression for extracting object nodes, and obtain an object node set and a node association relationship.

[0030] Step 103: Generate a key information block set corresponding to the document object tree according to the object node set and the node association relationship.

[0031] In some embodiments, the execution subject may generate a key information block set corresponding to the document object tree according to the object node set and the node association relationship. The key information block may be a key node content in the object node set. The key information block set may represent key web page content in the target web page. Each key information in each key information block may be an information block aggregated together.

[0032] Here, by extracting a set of key information blocks, the main directions and content scenarios corresponding to the main webpage contents of the target webpage are determined, so as to realize entity extraction for the target webpage.

[0033] In some optional implementations of some embodiments, the execution subject may generate a key information block set corresponding to the document object tree according to the object node set and the node association relationship, including the following steps:

[0034] The first step is to divide the node levels of each object node in the above object node set according to the above node association relationship to generate a hierarchical node set group. Among them, each hierarchical node in the hierarchical node set belongs to the same level. Among them, the node level can represent the hierarchical position of the object node in the document object tree. Among them, each hierarchical node in the hierarchical node set is each node at the same hierarchical position. Each hierarchical node set in the hierarchical node set group has a corresponding hierarchical position. For example, for an object tree whose document object tree is a 3-layer node tree, the corresponding hierarchical node set group includes: a first-level node set, a second-level node set, and a third-level node set. Each node in the first-level node set is a node under the first level. Each node in the second-level node set is a node under the second level. Each node in the third-level node set is a node under the third level.

[0035] In the second step, for the target level node set corresponding to the current level in the level node set group, the following second generation step is performed:

[0036] Sub-step 1: for each level node in the target level node set, execute the following third generation step:

[0037] The first sub-step is to determine the sub-node set corresponding to the above-mentioned level node as the target sub-node set. The target level node set is each level node under the current level. The target sub-node set is each sub-node under the level node.

[0038] The second sub-step is to divide each sub-node in the target sub-node set to generate a sub-node group set, wherein the number of sub-node groups in the sub-node group set is a predetermined number, for example, the number of sub-node groups is 3.

[0039] As an example, the execution subject may use a predetermined node division rule to divide each sub-node in the target sub-node set to generate a sub-node group set. For example, the node division rule may be a random division rule.

[0040] The third sub-step is to determine the node information similarity between each sub-node group in the above-mentioned sub-node group set to obtain a similarity set. Each sub-node group includes at least one sub-node. The node information may be the overall node information corresponding to each sub-node in the sub-node group. For example, the node information corresponding to the sub-node group may be the node information obtained by splicing the contents of each node in the sub-node group. The node information similarity may be the information similarity of the node information between two sub-node groups. For example, the similarity may be a value between 0 and 1. The higher the value, the more similar the overall node information corresponding to the two sub-node groups is. In practice, the node information similarity may be cosine similarity.

[0041] The fourth sub-step is to determine, based on the similarity set, at least one sub-node group in the sub-node group set whose corresponding similarities are greater than a target value as a target sub-node set. The target value may be a predetermined similarity value. For example, the target value may be 0.7.

[0042] The fifth sub-step is to generate key nodes according to the target child node set, wherein the key nodes are nodes with crucial contents in the document object tree.

[0043] As an example, the execution subject may determine the target child node set as the key nodes.

[0044] Sub-step 2: determining the node content corresponding to the obtained key node as a key information block group. Each key information block has corresponding key node content.

[0045] Sub-step 3, in response to determining that the level corresponding to the target level node set is the last level, determining each key node group obtained as a key information block set.

[0046] In the third step, in response to determining that the level corresponding to the target level node set is not the last level, each target child node set is removed from the target level node set to obtain a post-removal level node set.

[0047] In the fourth step, the node set of the removed level is taken as the target level node set, and the next level corresponding to the target level node set is taken as the current level, and the above second generation step is continued.

[0048] Step 104: Generate entity extraction information for the target web page based on the key information block set.

[0049] In some embodiments, the execution entity may generate entity extraction information for the target web page according to the key information block set. The entity extraction information may be an entity extraction result of the web page content corresponding to the target web page. The entity extraction information may include various entities involved in the target web page.

[0050] In some optional implementations of some embodiments, the execution subject may generate entity extraction information for the target web page according to the key information block set, including the following steps:

[0051] In the first step, for each key information block in the above key information block set, the following first generation step is performed:

[0052] Sub-step 1: determine each information sentence included in the above key information block as a key information sentence sequence.

[0053] Sub-step 2, performing sentence length preprocessing on each key information sentence in the above key information sentence sequence to generate a preprocessed sentence and obtain a preprocessed sentence sequence. The sentence length preprocessing may be to control the sentence length corresponding to the key information sentence to be below the target length. That is, the sentence content is supplemented for the shorter key information sentence and the sentence content is removed for the longer sentence to generate the preprocessed sentence under the target length.

[0054] Sub-step 3, input each pre-processed sentence in the above-mentioned pre-processed sentence sequence into a pre-trained sentence vector generation model to generate a sentence vector and obtain a sentence vector sequence. Among them, the sentence vector generation model can be a neural network model for generating sentence vectors. The sentence vector can be information in vector form that represents the semantics of the sentence content features corresponding to the corresponding pre-processed sentence. In practice, the sentence vector generation model can be an encoding model. For example, the sentence vector generation model can be an encoding layer in a Transformer model.

[0055] Sub-step 4, each sentence vector in the above sentence vector sequence is sequentially input into a pre-trained self-attention mechanism model to generate text representation information. The self-attention mechanism model can be a neural network model based on the self-attention mechanism. For example, the self-attention mechanism model can be a self-attention mechanism layer in a Transformer model. The text representation information can be a text representation content in vector form. Here, through the self-attention mechanism model, the comprehensive sentence content between each sentence vector can be extracted to obtain attention feature information, so as to generate more accurate text representation information.

[0056] Sub-step 5: generating entity information for the key information block based on the text representation information.

[0057] As an example, the execution subject may input the text representation information into an entity extraction model to generate entity information. The entity extraction model may be a neural network model for entity extraction.

[0058] The second step is to generate the above-mentioned entity extraction information based on the obtained entity information set.

[0059] As an example, the execution entity may directly determine the entity information set as entity extraction information.

[0060] In some optional implementations of some embodiments, the execution subject may generate entity information for the key information block according to the text representation information, including the following steps:

[0061] In the first step, each sentence vector in the above sentence vector sequence is combined according to the arrangement order of the key information sentences to generate a combined vector.

[0062] In the second step, the above text representation information and the above combination vector are concatenated in the target order to generate a concatenated vector.

[0063] The third step is to input the above concatenated vector into the entity information generation model of the multi-head entity output to generate an entity set as entity information. The entity information generation model can be a neural network model that extracts multiple entities. For example, the entity information generation model can include: a feature extraction layer, an attention layer, and a multi-head fully connected layer. There is a one-to-one correspondence between the fully connected layer in the multi-head fully connected layer and the entity output in the multi-head entity output.

[0064] In some optional implementations of some embodiments, the entity extraction information further includes: association relationship information between entities. The association relationship information may be an association relationship between entities. For example, the entity correspondence relationship may be an entity affiliation relationship.

[0065] Optionally, generating the above entity extraction information according to the obtained entity information set includes:

[0066] In the first step, for each entity information in the entity information set, perform the following determination steps:

[0067] Sub-step 1: determine the key information block corresponding to the entity information as the target key information block, wherein the target key information block may be the key information block to which the entity information belongs.

[0068] Sub-step 2: determine the entity information set included in the target key information block.

[0069] Sub-step 3: removing the above entity information from the above entity information set to obtain a post-removal entity information set.

[0070] Sub-step 4: generating a determination instruction representing the corresponding relationship between the entity information determined from the above key information block and the entity information set after removal.

[0071] Sub-step 5: input the determination instruction into the large language model to generate an association relationship information group for the entity information.

[0072] In the second step, the entity information set and the relationship information set are determined as entity extraction information.

[0073] Step 105: perform entity correction processing on the target knowledge graph based on the entity extraction information to generate a corrected knowledge graph.

[0074] In some embodiments, the execution entity may perform entity correction processing on the target knowledge graph based on the entity extraction information to generate a corrected knowledge graph.

[0075] As an example, the above-mentioned execution subject can replace entities with similar entities in the target knowledge graph according to the entities corresponding to the entity extraction information, so as to implement entity correction processing and obtain a corrected knowledge graph.

[0076] Step 106: store the corrected knowledge graph and the scene information corresponding to the target scene in a target storage terminal.

[0077] In some embodiments, the execution entity may store the corrected knowledge graph and the scene information corresponding to the target scene in a target storage terminal.

[0078] Step 107, in response to receiving the user consultation information input by the target user for the target webpage, generating user consultation semantic information according to the corrected knowledge graph stored in the target storage terminal and the user consultation information.

[0079] In some embodiments, in response to receiving user consultation information input by a target user for the target webpage, the execution entity may generate user consultation semantic information based on the corrected knowledge graph stored in the target storage terminal and the user consultation information.

[0080] In some optional implementations of some embodiments, the corrected knowledge graph includes: entity vectors corresponding to each entity, association relationship information between each entity, and entity prefix vectors corresponding to each entity, where the entity prefix vector is the first target number of vector elements in the corresponding entity vector. The entity prefix vector represents the initial entity semantics of the corresponding entity in the target scenario. The entity vector can represent the entity semantic content corresponding to the entity. In practice, the target number can be a preset value. For example, the target number can be the value "5". For example, for the entity apple, the corresponding entity prefix vector is [0,2,13,1]. The corresponding semantic content of the entity in the target scenario can be represented as fruit, not a mobile phone.

[0081] Optionally, the execution subject may generate user consultation semantic information according to the corrected knowledge graph stored in the target storage terminal and the user consultation information, including the following steps:

[0082] In the first step, the user consultation information is preprocessed to generate user consultation preprocessed information, wherein the information preprocessing may include but is not limited to at least one of the following: information supplementation and information vectorization.

[0083] The second step is to extract at least one entity from the above user consultation preprocessing information as at least one target entity and at least one initial entity semantic under the above user consultation information. Among them, there is a one-to-one correspondence between the target entity in the at least one target entity and the initial entity semantic in the at least one initial entity semantic. The initial entity semantic can represent the entity semantic content of the target entity in the user consultation information.

[0084] As an example, the execution subject can use the entity extraction model to extract entities and corresponding entity semantics in the user consultation preprocessing information to obtain at least one target entity and at least one initial entity semantics. In practice, the entity extraction model may include: an entity extraction layer and an entity semantic extraction layer.

[0085] The third step is to determine at least one target entity vector corresponding to the at least one target entity and at least one target entity prefix vector corresponding to the at least one initial entity semantics.

[0086] As an example, the execution subject may obtain an entity vector mapping table and an entity prefix vector mapping table from a target database, and determine at least one target entity vector corresponding to the at least one target entity and at least one target entity prefix vector corresponding to the at least one initial entity semantics according to the entity vector mapping table and the entity prefix vector mapping table.

[0087] Step 4: for each target entity vector in the at least one target entity vector, perform a fourth generation step:

[0088] Sub-step 1: determine the target entity prefix vector corresponding to the above target entity vector as the target vector.

[0089] Sub-step 2: Generate entity prefix vector query information for the target vector, wherein the entity prefix vector query information may be query information for querying the entity position corresponding to the target vector from the corrected knowledge graph based on the entity prefix vector.

[0090] Sub-step 3, executes the above-mentioned entity prefix vector query information to query the corresponding entity position from the above-mentioned corrected knowledge graph as the target entity position. Among them, the entity position is determined based on the entity encoding information of at least one associated entity corresponding to the existing association relationship information. In practice, the entity position can characterize the position of the entity in the knowledge graph. Because the shapes of knowledge graphs are different and the positions are difficult to determine. Therefore, it can be determined by the entity encoding information of at least one associated entity with an association relationship. For example, for the entity position of the target entity, the first 3 bits of at least one entity encoding information corresponding to at least one associated entity can be numerically combined as the entity position corresponding to the target entity.

[0091] Here, vector query is performed through entity prefixes. When there is a large amount of entity data in the knowledge graph, it can greatly improve query efficiency, save query resources, and reduce a large amount of query efficiency, thus avoiding wasting more real-time query resources of the target processor.

[0092] Sub-step 4: determining at least one associated entity corresponding to the target entity position as at least one first target associated entity. The at least one associated entity may be at least one associated entity that has a position association relationship with the target entity position. For example, the at least one associated entity may be at least one entity that has a position proximity and an entity connection relationship with the target entity position.

[0093] Sub-step 5, generating entity consultation semantic information under the user consultation information based on the at least one first target associated entity, the target vector, the target entity vector and the entity prefix vector corresponding to the target entity position. The entity consultation semantic information can represent the semantic features of the entity content reflected in the user consultation information based on the corrected knowledge graph.

[0094] As an example, first, the above-mentioned execution entity can determine the initial entity semantics corresponding to the target entity vector as the target initial entity semantics. Then, the entity semantics of the entity prefix vector corresponding to the target entity position is determined as the knowledge graph entity semantics. Then, at least one encoding vector corresponding to at least one first target associated entity, the above-mentioned target entity vector, the first semantic vector corresponding to the target initial entity semantics, and the second semantic vector corresponding to the knowledge graph entity semantics are spliced ​​to generate a spliced ​​vector. Finally, the spliced ​​vector is input to the attention layer + semantic information output layer to generate entity consultation semantic information under the above-mentioned user consultation information. Among them, the attention layer is used to filter out important entity feature information related to the entity from the spliced ​​vector. The semantic information output layer can be a network layer for outputting entity consultation semantic information. For example, the attention layer can be an attention layer based on a convolutional neural network. The semantic information output layer can be a plurality of fully connected layers in series.

[0095] The fifth step is to generate user consultation semantic information based on the obtained at least one entity consultation semantic information and the above user consultation preprocessing information.

[0096] Optionally, the execution subject may generate user consultation semantic information according to the obtained at least one entity consultation semantic information and the user consultation pre-processing information, comprising the following steps:

[0097] The first step is to perform word segmentation processing on the above user consultation pre-processing information to generate a user consultation word set.

[0098] The second step is to execute the fifth generation step for each user consultation word in the above user consultation word set:

[0099] Sub-step 1: Determine whether the user consultation word has a corresponding entity consultation semantics in the at least one entity consultation semantics, wherein the corresponding entity consultation semantics may be the same word as the user consultation word.

[0100] Sub-step 2, in response to determining existence, concatenating the above user consultation words and corresponding entity consultation semantics to generate concatenated information.

[0101] Sub-step 3, in response to determining that it does not exist, determining the user consultation word as splicing information.

[0102] In the third step, the obtained concatenated information set is input into a pre-trained consultation semantic information extraction model to generate the above-mentioned user consultation semantic information. The consultation semantic information extraction model may be a network model for extracting consultation semantic feature information. For example, the consultation semantic information extraction model may be a multi-layer series of convolutional layers.

[0103] Optionally, the execution subject may input the obtained concatenated information set into a pre-trained consultation semantic information extraction model to generate the user consultation semantic information, including the following steps:

[0104] In the first step, each of the spliced ​​information in the spliced ​​information set is input into the first attention layer included in the consultation semantic information extraction model to generate first attention information and obtain the first attention information set. The first attention layer can be a self-attention mechanism layer. Here, the first attention layer can be used to extract the key semantic content between the user consultation words and the corresponding entity consultation semantics.

[0105] The second step is to sort the individual first attention information in the above-mentioned first attention information set to generate a first attention information sequence.

[0106] The third step is to input the first attention information sequence into at least one second attention layer included in the consultation semantic information extraction model to generate at least one second attention information. Among them, at least one second attention layer can be used to extract key semantic feature content related to user consultation from various angles. Among them, both the second attention information and the first attention information can be information in vector form. The second attention layer can be a self-attention mechanism layer.

[0107] The fourth step is to splice the at least one second attention information mentioned above to generate the user consultation semantic information mentioned above.

[0108] Step 108: Generate consultation reply content for the above user consultation semantic information.

[0109] In some embodiments, the execution subject may generate a consultation reply content for the user consultation semantic information, wherein the consultation reply content may be the content after replying to the user consultation semantic information.

[0110] As an example, the execution entity may utilize a question-answering model to generate inquiry response content for the user inquiry semantic information.

[0111] In some optional implementations of some embodiments, the execution subject may generate consultation reply content for the user consultation semantic information, including:

[0112] The first step is to determine whether there is question-answer data in the target question-answer database whose vector similarity with the user's inquiry semantic information is higher than the target similarity, wherein the target question-answer database stores question-answer data in various fields. The question-answer data may include: inquiry vector and answer content.

[0113] The second step is to obtain the graphics processor resource distribution information corresponding to the current time period in response to determining that it does not exist. The server resource distribution information can represent the number of graphics processors allocated under each consulting field. Each consulting field can be a field that may be consulted and is related to the web page content corresponding to the target web page. For example, if the target web page is a multi-functional web page, the corresponding consulting fields may include: social security consulting field, e-commerce consulting field, and social news consulting field. The social security consulting field can represent information related to the social security field. The e-commerce consulting field can represent information related to the e-commerce field. The social news consulting field can represent information related to the social news. In the current time period, each consulting field has a corresponding graphics processor cluster to implement consulting services in the corresponding field. The generation time corresponding to the consultation reply content is within the current time period.

[0114] The third step is to input the user consultation semantic information into the pre-trained consultation domain information generation model to generate domain probabilities for each consultation domain. The domain probability can represent the degree of adaptation between the user consultation semantic information corresponding to the consultation content and the consultation domain. The higher the domain probability, the higher the degree of adaptation. In practice, the consultation domain information generation model can be 11 layers of convolutional layers connected in series + each fully connected layer corresponding to each consultation domain.

[0115] The fourth step is to select the domain probability with the highest probability value from the various domain probabilities as the target domain probability.

[0116] In the fifth step, according to the GPU resource distribution information, the GPU cluster and domain information corresponding to the target domain probability are determined as the target GPU cluster and target domain information.

[0117] In a sixth step, the amount of online computing resources corresponding to each slave graphics processor in at least one slave graphics processor is determined by using the master graphics processor in the target graphics processor cluster.

[0118] In the seventh step, a slave graphics processor with the highest amount of online computing resources is selected from at least one slave graphics processor as a target slave graphics processor.

[0119] In the eighth step, the master GPU is instructed to send the question-answering model information corresponding to the target domain information to the target slave GPU, so that the target slave GPU can build the question-answering model under the target domain. The question-answering model information may include: question-answering model parameters and question-answering model structure.

[0120] The ninth step is to input the above user inquiry semantic information into the question-answering model to generate inquiry response content.

[0121] Optionally, the GPU resource distribution information is updated periodically. Each consulting field has a corresponding GPU cluster. Each GPU cluster has a master GPU and at least one slave GPU. The master GPU in each GPU cluster cannot perform business transformation. Each slave GPU can be evenly distributed according to the corresponding business volume accessed by the user.

[0122] Optionally, the graphics processor resource distribution information is generated by the following steps:

[0123] The first step is to obtain multiple historical user consultation semantic information sets in multiple historical time periods.

[0124] The second step is to determine multiple historical domain information sets corresponding to multiple historical user consultation semantic information sets. There is a one-to-one correspondence between the historical user consultation semantic information in the historical user consultation semantic information set and the historical domain information in the historical domain information set. The historical user consultation semantic information can be the user consultation semantic information in the corresponding historical time period.

[0125] In the third step, for each historical field information set in the plurality of historical field information sets, the consultation volume under each consultation field is determined according to the historical field information set.

[0126] In the fourth step, for each of the consulting areas, the following determination steps are performed:

[0127] Sub-step 1, determining the consultation volume sequence corresponding to the consultation field.

[0128] Sub-step 2: determining the estimated consultation volume of the consultation field in the current time period based on the consultation volume sequence.

[0129] As an example, the above-mentioned execution entity can input the consultation volume sequence into the recurrent neural network model to generate an estimated consultation volume.

[0130] The fifth step is to determine the proportion of graphics processors corresponding to each consulting field based on the estimated consulting volumes.

[0131] In the sixth step, the proportion of each graphics processor is multiplied by the total number of slave graphics processors to generate the number of graphics processors corresponding to each graphics processor, thereby obtaining the number of each graphics processor.

[0132] In the seventh step, the graphics processor clusters are scheduled from the graphics processors according to the number of the graphics processors to generate the scheduled graphics processor clusters as the graphics processor resource distribution information.

[0133] Optionally, as one of the invention points, another technical problem is solved: "When the amount of user access data is large, the precise determination of the semantics of the question takes a long time, and the required resources are large. The back-end server corresponding to the web page is overloaded, which may affect the normal operation and normal loading of the web page, resulting in a large web page load." Based on this, the present disclosure, first, alleviates part of the request pressure through the target question and answer database. Then, when it is determined that there is no reply content in the target question and answer database, by setting a corresponding graphics processor cluster for each consulting field, the purpose of diverting user consulting requests according to the different consulting fields is achieved to alleviate the situation of high request pressure. In addition, in view of the different consulting volumes in each consulting field in each time period, the processor resource allocation from the graphics processor in each consulting field is realized through the regularly dynamically adjusted graphics processor resource distribution information, so that the consulting volume with a large request volume can control more graphics processors, and the consulting volume with a small request volume can control fewer graphics processors. Therefore, when the amount of user access data is large, the layered diversion of user requests can be achieved to alleviate the problem of heavy web page load.

[0134] Step 109, displaying the above-mentioned consultation reply content on the above-mentioned target webpage in a target display mode.

[0135] In some embodiments, the execution entity may display the inquiry response content on the target webpage in a target display mode, wherein the target display mode is one of the following: text mode, audio mode, image mode, and video mode.

[0136] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the web page content display method of some embodiments of the present disclosure, on the basis of accurately using the entity semantic content knowledge graph, the target user's consultation semantic content can be accurately identified, so as to accurately implement the consultation reply. Specifically, the reason why the relevant consultation reply is not accurate enough and affects the normal operation of the web page is that for the consultation questions entered by the user on the web page, the question-answering model may extract different question semantics based on the different entity semantic meanings, resulting in the occurrence of the answer not being asked. In addition, when the user accesses a large amount of data, the precise determination of the question semantics takes a long time, requires more resources, and the back-end server corresponding to the web page is overloaded, which may affect the normal operation of the web page and the normal loading of the web page. Based on this, the web page content display method of some embodiments of the present disclosure, first, obtains the document object tree and the target knowledge graph stored in the target memory corresponding to the target web page. Here, by pre-storing the document object tree and the knowledge graph in the target memory, it is convenient to call the processor to extract the object node and the node association relationship. In addition, it is also used to determine the association relationship and the real semantic knowledge graph corresponding to each entity in the target scene. Here, the target knowledge graph is a graph that represents the relationship between various entities that is pre-built and stored based on the target scenario. Then, each object node in the above-mentioned document object tree is extracted to obtain an object node set and a node association relationship, so as to facilitate the subsequent extraction of the key web page content in the above-mentioned target web page corresponding to the document object tree. Then, based on the above-mentioned object node set and the above-mentioned node association relationship, the key information block set corresponding to the above-mentioned document object tree can be accurately generated. Here, the generated key information block set is used to determine the meaning of each entity corresponding to the target web page, so as to make corresponding adjustments to the entities in the target knowledge graph and generate a knowledge graph applicable to the target web page. Then, based on the above-mentioned key information block set, the entity extraction information for the above-mentioned target web page can be accurately generated, and then, based on the above-mentioned entity extraction information, the above-mentioned target knowledge graph is subjected to entity correction processing to accurately generate the corrected knowledge graph corresponding to the target web page. Secondly, the above-mentioned corrected knowledge graph and the web page information corresponding to the above-mentioned target web page are stored in the target storage terminal, so as to facilitate the subsequent real-time and accurate determination of the semantic content of the search information under the target web page. Furthermore, in response to receiving the user consultation information input by the target user for the target webpage, the user consultation semantic information can be accurately generated according to the corrected knowledge graph stored in the target storage terminal and the user consultation information. Furthermore, the consultation reply content for the user consultation semantic information is accurately generated to facilitate the subsequent reply to the target user. Finally, the consultation reply content is displayed on the target webpage in the target display mode, wherein the target display mode is one of the following: text mode, audio mode, image mode, video mode.In summary, after extracting key information blocks through the document object tree and generating the knowledge graph corresponding to the target web page based on the key information blocks, accurate responses can be given to users' consultation questions. And by generating the knowledge graph corresponding to the target web page, the generation time of consultation semantic information can be reduced, avoiding the situation where the server is heavily loaded due to massive user requests, and further avoiding abnormal operation of the web page.

[0137] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a web page content display device. These device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the web page content display device can be specifically applied to various electronic devices.

[0138] like Figure 2 As shown, a web page content display device 200 includes: an acquisition unit 201, an extraction unit 202, a first generation unit 203, a second generation unit 204, a correction unit 205, a storage unit 206, a third generation unit 207, a fourth generation unit 208 and a display unit 209. The acquisition unit 201 is configured to acquire a document object tree and a target knowledge graph stored in a target memory corresponding to a target web page, wherein the target web page is a web page for a target scenario under a target domain, and the target knowledge graph is a knowledge graph corresponding to the target scenario; the extraction unit 202 is configured to extract each object node in the document object tree to obtain an object node set and a node association relationship; the first generation unit 203 is configured to generate a key information block set corresponding to the document object tree according to the object node set and the node association relationship; the second generation unit 204 is configured to generate entity extraction information for the target web page according to the key information block set; the correction unit 205 is configured to extract entity information for the target knowledge graph according to the entity extraction information. The graph is entity corrected to generate a corrected knowledge graph; the storage unit 206 is configured to store the corrected knowledge graph and the corresponding web page information of the target web page to the target storage terminal; the third generation unit 207 is configured to generate user consultation semantic information in response to receiving user consultation information input by the target user for the target web page, according to the corrected knowledge graph and the user consultation information stored in the target storage terminal; the fourth generation unit 208 is configured to generate consultation reply content for the user consultation semantic information; the display unit 209 is configured to display the consultation reply content on the target web page in a target display mode, wherein the target display mode is one of the following: text mode, audio mode, image mode, video mode.

[0139] It is understandable that the units recorded in the webpage content display device 200 and the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the webpage content display device 200 and the units included therein, and will not be described in detail here.

[0140] Reference below Figure 3 , which shows a structural schematic diagram of an electronic device (eg, an electronic device) 300 suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0141] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0142] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0143] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0144] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0145] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0146] The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist independently without being installed in the electronic device. The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the document object tree and target knowledge graph stored in the target memory corresponding to the target web page, wherein the above-mentioned target web page is a web page for the target scene under the target domain, and the above-mentioned target knowledge graph is a knowledge graph corresponding to the above-mentioned target scene; extracts each object node in the above-mentioned document object tree to obtain an object node set and a node association relationship; generates a key information block set corresponding to the above-mentioned document object tree according to the above-mentioned object node set and the above-mentioned node association relationship; generates an entity extraction information root for the above-mentioned target web page according to the above-mentioned key information block set. According to the above-mentioned entity extraction information, the above-mentioned target knowledge graph is entity corrected to generate a corrected knowledge graph; the above-mentioned corrected knowledge graph and the corresponding web page information of the above-mentioned target web page are stored in the target storage terminal; in response to receiving user consultation information input by the target user for the above-mentioned target web page, user consultation semantic information is generated according to the corrected knowledge graph stored in the above-mentioned target storage terminal and the above-mentioned user consultation information; consultation reply content for the above-mentioned user consultation semantic information is generated; the above-mentioned consultation reply content is displayed on the above-mentioned target web page in a target display mode, wherein the above-mentioned target display mode is one of the following: text mode, audio mode, image mode, video mode.

[0147] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0148] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0149] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be arranged in a processor, for example, may be described as: a processor including: an acquisition unit, an extraction unit, a first generation unit, a second generation unit, a correction unit, a storage unit, a third generation unit, a fourth generation unit and a display unit. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the acquisition unit may also be described as "a unit for acquiring a document object tree and a target knowledge graph stored in a target memory corresponding to a target web page".

[0150] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0151] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A web page content display method, comprising: Obtaining a document object tree and a target knowledge graph stored in a target memory corresponding to a target webpage, wherein the target webpage is a webpage for a target scenario under a target domain, and the target knowledge graph is a knowledge graph corresponding to the target scenario; Extract each object node in the document object tree to obtain an object node set and a node association relationship; Generate a key information block set corresponding to the document object tree according to the object node set and the node association relationship; Generating entity extraction information for the target web page according to the key information block set; According to the entity extraction information, the target knowledge graph is subjected to entity correction processing to generate a corrected knowledge graph; Storing the corrected knowledge graph and the webpage information corresponding to the target webpage in a target storage terminal; In response to receiving user consultation information input by a target user for the target webpage, generating user consultation semantic information according to the corrected knowledge graph stored in the target storage terminal and the user consultation information; Generate consultation reply content for the user consultation semantic information; The consultation reply content is displayed on the target webpage in a target display mode, wherein the target display mode is one of the following: text mode, audio mode, image mode, video mode.

2. The method according to claim 1, wherein: The step of generating entity extraction information for the target webpage according to the key information block set includes: For each key information block in the key information block set, the following first generation step is performed: Determining each information sentence included in the key information block as a key information sentence sequence; Performing sentence length preprocessing on each key information sentence in the key information sentence sequence to generate a preprocessed sentence, thereby obtaining a preprocessed sentence sequence; Inputting each preprocessed sentence in the preprocessed sentence sequence into a pre-trained sentence vector generation model to generate a sentence vector, thereby obtaining a sentence vector sequence; Inputting each sentence vector in the sentence vector sequence into a pre-trained self-attention mechanism model in sequence to generate text representation information; Generating entity information for the key information block according to the text representation information; The entity extraction information is generated according to the obtained entity information set.

3. The method according to claim 2, wherein: The step of generating entity information for the key information block according to the text representation information includes: Combining the sentence vectors in the sentence vector sequence according to the arrangement order of the key information sentences to generate a combined vector; Concatenating the text representation information and the combination vector in a target order to generate a concatenated vector; The concatenated vector is input into an entity information generation model output by multiple entities to generate an entity set as entity information.

4. The method according to claim 1, wherein: The step of generating a key information block set corresponding to the document object tree according to the object node set and the node association relationship includes: According to the node association relationship, each object node in the object node set is divided into node hierarchies to generate a hierarchical node set group, wherein each hierarchical node in the hierarchical node set belongs to the same hierarchical level; For the target level node set corresponding to the current level in the level node set group, the target processor is used to perform the following second generation step: For each level node in the target level node set, the following third generation step is performed: Determine a sub-node set corresponding to the level node as a target sub-node set; Dividing each sub-node in the target sub-node set to generate a sub-node group set; Determine the node information similarity between each sub-node group in the sub-node group set to obtain a similarity set; According to the similarity set, at least one sub-node group in the sub-node group set whose corresponding similarities are greater than a target value is determined as a target sub-node set; Generate key nodes according to the target sub-node set; Determine the node content corresponding to the obtained key node as a key information block group; In response to determining that the level corresponding to the target level node set is the last level, determining each key node group obtained as a key information block set; In response to determining that the level corresponding to the target level node set is not the last level, removing each target child node set from the target level node set to obtain a level node set after removal; The node set of the removed level is taken as the target level node set, the next level corresponding to the target level node set is taken as the current level, and the second generation step is continued.

5. The method according to claim 1, wherein: The corrected knowledge graph includes: entity vectors corresponding to each entity, association relationship information between each entity, and entity prefix vectors corresponding to each entity, where the entity prefix vector is the first target number of vector elements in the corresponding entity vector, and the entity prefix vector represents the initial entity semantics of the corresponding entity in the target scenario; and The generating user consultation semantic information according to the corrected knowledge graph stored in the target storage terminal and the user consultation information includes: Performing information preprocessing on the user consultation information to generate user consultation preprocessing information; Extracting at least one entity from the user consultation preprocessing information as at least one target entity and at least one initial entity semantics under the user consultation information; Determine at least one target entity vector corresponding to the at least one target entity and at least one target entity prefix vector corresponding to the at least one initial entity semantics; For each target entity vector of the at least one target entity vector, performing a fourth generating step: Determine a target entity prefix vector corresponding to the target entity vector as a target vector; Generate entity prefix vector query information for the target vector; Execute the entity prefix vector query information to query the corresponding entity position from the corrected knowledge graph as the target entity position, wherein the entity position is determined based on the entity encoding information of at least one associated entity corresponding to the associated relationship information; Determine at least one associated entity corresponding to the target entity position as at least one first target associated entity; Generate entity consultation semantic information under the user consultation information according to the at least one first target associated entity, the target vector, the target entity vector and the entity prefix vector corresponding to the target entity position; User consultation semantic information is generated according to the obtained at least one entity consultation semantic information and the user consultation preprocessing information.

6. The method according to claim 5, wherein: The generating user consultation semantic information according to the obtained at least one entity consultation semantic information and the user consultation preprocessing information comprises: Performing word segmentation processing on the user consultation pre-processing information to generate a user consultation word set; For each user consultation word in the user consultation word set, a fifth generation step is performed: Determine whether the user consultation word has a corresponding entity consultation semantics in the at least one entity consultation semantics; In response to determining existence, concatenating the user consultation word and the corresponding entity consultation semantics to generate concatenated information; In response to determining that it does not exist, determining the user consultation word as concatenated information; The obtained concatenated information set is input into a pre-trained consultation semantic information extraction model to generate the user consultation semantic information.

7. The method according to claim 6, wherein: The step of inputting the obtained spliced ​​information set into a pre-trained consultation semantic information extraction model to generate the user consultation semantic information comprises: Input each splicing information in the splicing information set into the first attention layer included in the consulting semantic information extraction model to generate first attention information, thereby obtaining a first attention information set; sorting each first attention information in the first attention information set to generate a first attention information sequence; Inputting the first attention information sequence into at least one second attention layer included in the consultation semantic information extraction model to generate at least one second attention information; The at least one second attention information is concatenated to generate the user consultation semantic information.

8. A web page content display device, comprising: An acquisition unit is configured to acquire a document object tree and a target knowledge graph stored in a target memory corresponding to a target webpage, wherein the target webpage is a webpage for a target scenario under a target domain, and the target knowledge graph is a knowledge graph corresponding to the target scenario; An extraction unit is configured to extract each object node in the document object tree to obtain an object node set and a node association relationship; A first generating unit is configured to generate a key information block set corresponding to the document object tree according to the object node set and the node association relationship; A second generating unit is configured to generate entity extraction information for the target web page according to the key information block set; A correction unit, configured to perform entity correction processing on the target knowledge graph according to the entity extraction information to generate a corrected knowledge graph; A storage unit, configured to store the corrected knowledge graph and the webpage information corresponding to the target webpage in a target storage terminal; A third generating unit is configured to generate user consultation semantic information according to the corrected knowledge graph stored in the target storage terminal and the user consultation information in response to receiving user consultation information input by a target user for the target webpage; A fourth generating unit is configured to generate consultation reply content for the user consultation semantic information; The display unit is configured to display the consultation reply content on the target web page in a target display mode, wherein the target display mode is one of the following: text mode, audio mode, image mode, video mode.

9. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Knowledge graph generation method, device and appartus and readable storage medium

    CN109992673A

  • Vulnerability knowledge graph processing method and device, equipment and medium

    CN115827895A

  • Question and answer method and device

    CN117370494A

  • Auto reset optical fiber cutter

    KR102769710B1

  • A method and system for ranking entities using automated input-output model

    WO2020039244A1