Text presentation method and device, storage medium and electronic equipment
Patent Information
- Application Number
- HK42023075672
- Authority / Receiving Office
- HK · HK
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-07-07
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2041-10-28
AI Technical Summary
The answers in the Q&A function of existing encyclopedia products rely on plain text, which is time-consuming and laborious to write, and the questioner cannot quickly and accurately resolve their doubts or further expand their knowledge.
This paper provides a text presentation method that generates answer text containing encyclopedia tags through an answer editing window and presents an index encyclopedia related to the question. It supports switching between collapsed, expanded, and semi-collapsed styles, adjusts the presentation effect based on user evaluations, and uses named entities and natural language processing models to determine the index encyclopedia.
It enables respondents to quickly and accurately edit their responses, enhancing the professionalism and richness of the responses, helping questioners and viewers learn more relevant knowledge, optimizing the presentation of encyclopedia products, and improving user experience.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of text processing technology, specifically to a text presentation method and apparatus, storage medium, and electronic device. Background Technology
[0002] With the rapid development of smart technology, encyclopedia products with question-and-answer functions are receiving increasing attention. In existing encyclopedia products, the question-and-answer function is primarily implemented by the questioner inputting a question and then waiting for the answerer to provide an answer. However, currently, the answerer's content relies solely on plain text, resulting in a limited format and a time-consuming and laborious writing process. This prevents the questioner from quickly and accurately resolving their doubts based on the answer, and furthermore, it makes it impossible for the questioner to expand their knowledge beyond the answer. Summary of the Invention
[0003] To address the aforementioned technical problems, this invention is proposed. Embodiments of this invention provide a text presentation method and apparatus, a storage medium, and an electronic device.
[0004] In a first aspect, an embodiment of the present invention provides a text presentation method, the method comprising: presenting an answer editing window in response to a reply request instruction for a question to be answered; generating a first reply text including encyclopedia tag text based on the answer editing window; determining at least one index encyclopedia associated with the question to be answered; presenting the first reply text and presenting at least one index encyclopedia.
[0005] In one embodiment of the present invention, presenting a first response text and presenting at least one index encyclopedia entry includes: presenting encyclopedia tag text based on a folded style; presenting at least one index encyclopedia entry based on an expanded style and / or a semi-folded style; and presenting encyclopedia tag text based on an expanded style in response to an acceptance instruction for the first response text.
[0006] In one embodiment of the present invention, after presenting the encyclopedia tag text based on the expanded style, the method further includes: if a questioner's downvote instruction is received for at least one index encyclopedia, deleting the index encyclopedia corresponding to the downvote instruction, or changing the presentation style of the index encyclopedia corresponding to the downvote instruction to the collapsed style.
[0007] In one embodiment of the present invention, there are multiple encyclopedia tag texts. Presenting the encyclopedia tag texts based on an expanded style includes: presenting multiple encyclopedia tag texts in an expanded style, and linking the expanded style content of each of the multiple encyclopedia tag texts together via a sliding connection.
[0008] In one embodiment of the present invention, after presenting the first response text and at least one indexed encyclopedia entry, the method further includes: receiving evaluation data for the encyclopedia tag text and / or at least one indexed encyclopedia entry; and adjusting the presentation effect of the encyclopedia tag text and / or at least one indexed encyclopedia entry based on the evaluation data.
[0009] In one embodiment of the present invention, the folding style includes a style that presents an encyclopedia tag, hides the encyclopedia content corresponding to the encyclopedia tag, and presents a summary of the encyclopedia content corresponding to the encyclopedia content after receiving an unfold command; and / or, the half-folding style includes a style that presents an encyclopedia tag and an encyclopedia content summary; and / or, the unfolding style includes a style that presents an encyclopedia tag and presents the encyclopedia content.
[0010] In one embodiment of the present invention, the encyclopedia tag text includes encyclopedia hyperlink text and / or encyclopedia entry name text.
[0011] In one embodiment of the present invention, determining at least one index encyclopedia associated with a question to be answered includes: receiving text data corresponding to the question to be answered; determining user intent information corresponding to the text data based on a named entity category model and / or a disambiguation model; and determining at least one index encyclopedia associated with the question to be answered based on the user intent information.
[0012] In one embodiment of the present invention, presenting at least one index encyclopedia includes: determining the hazard parameters corresponding to the question to be answered based on a natural language processing model; if the hazard parameters fall within the range of severe hazard level, not presenting at least one index encyclopedia; if the hazard parameters fall within the range of general hazard level, presenting a portion of the index encyclopedia based on a folded style; if the hazard parameters fall within the range of minor hazard level, presenting a portion of the index encyclopedia based on a folded style and a semi-folded style.
[0013] In one embodiment of the present invention, presenting at least one indexed encyclopedia includes: determining display score information corresponding to each of the at least one indexed encyclopedia based on the entities corresponding to each of the at least one indexed encyclopedia; and presenting at least one indexed encyclopedia based on the display score information corresponding to each of the at least one indexed encyclopedia.
[0014] In one embodiment of the present invention, presenting at least one indexed encyclopedia based on the display score information corresponding to each of the at least one indexed encyclopedia includes: for each indexed encyclopedia in the at least one indexed encyclopedia, if the display score information corresponding to the indexed encyclopedia falls within the full display range, then the indexed encyclopedia is presented in an expanded style; if the display score information corresponding to the indexed encyclopedia falls within the incomplete display range, then the indexed encyclopedia is presented in a semi-collapsed style; if the display score information corresponding to the indexed encyclopedia falls within the completely undisplayed range, then the indexed encyclopedia is presented in a collapsed style.
[0015] Secondly, one embodiment of the present invention provides a text presentation device, the device comprising: a first presentation module, configured to present an answer editing window in response to a reply request instruction for a question to be answered; a generation module, configured to generate a first reply text including encyclopedia tag text based on the answer editing window; a determination module, configured to determine at least one index encyclopedia associated with the question to be answered; and a second presentation module, configured to present the first reply text and present at least one index encyclopedia.
[0016] Thirdly, one embodiment of the present invention provides a computer-readable storage medium storing instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the method mentioned in the first aspect.
[0017] Fourthly, one embodiment of the present invention provides an electronic device comprising: a processor and a memory for storing computer-executable instructions. The processor is configured to execute the computer-executable instructions to implement the method mentioned in the first aspect above.
[0018] Fifthly, one embodiment of the present invention provides a computer program product, which includes a computer program or computer instructions, wherein the computer program or computer instructions, when executed by a processor, implement the method mentioned in the first aspect above.
[0019] The text presentation method provided in this invention achieves the goal of receiving reply text edited by the respondent and containing encyclopedia tags within an answer editing window. Compared with existing technologies, this invention not only assists respondents in quickly and accurately editing reply text and enhances the professionalism and richness of reply text by leveraging encyclopedia hyperlinks, but also enables questioners and / or question viewers to accurately understand more relevant knowledge, thereby optimizing the presentation effect of encyclopedia products and improving the user experience of encyclopedia products for all parties. Attached Figure Description
[0020] Figure 1a The diagram shown is an application scenario illustration of a text presentation method provided by an embodiment of the present invention.
[0021] Figure 1b The image shown is a schematic diagram of the answer editing window provided in an embodiment of the present invention.
[0022] Figure 2 The diagram shown is a flowchart of a text presentation method provided in an embodiment of the present invention.
[0023] Figure 3 The diagram shown is a flowchart of a text presentation method provided in another embodiment of the present invention.
[0024] Figure 4The diagram shows the presentation of the folded style, unfolded style and semi-folded style provided in an embodiment of the present invention.
[0025] Figure 5 The diagram shown is a flowchart of a text presentation method provided in another embodiment of the present invention.
[0026] Figure 6 The diagram shown is a flowchart of a text presentation method provided in another embodiment of the present invention.
[0027] Figure 7 The diagram shown is a flowchart of a text presentation method provided in another embodiment of the present invention.
[0028] Figure 8 The diagram shown is a flowchart of a text presentation method provided in another embodiment of the present invention.
[0029] Figure 9 The diagram shown is a flowchart illustrating the process of presenting at least one indexed encyclopedia entry according to an embodiment of the present invention.
[0030] Figure 10 The diagram shown is a flowchart illustrating the process of presenting at least one index encyclopedia entry according to another embodiment of the present invention.
[0031] Figure 11 The diagram shown is a structural schematic of a text presentation device provided in an embodiment of the present invention.
[0032] Figure 12 The diagram shown is a structural schematic of an apparatus for a text presentation method provided in an embodiment of the present invention.
[0033] Figure 13 The diagram shown is a structural schematic of a server provided in an embodiment of the present invention. Detailed Implementation
[0034] Hereinafter, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments of the present invention. It should be understood that the present invention is not limited to the exemplary embodiments described herein.
[0035] As mentioned earlier, in existing encyclopedia products, the Q&A function is primarily implemented by the questioner entering the question and waiting for the answerer to provide an answer. However, the answers provided by the answerers mainly rely on their own knowledge and are often not very professional. Although answerers can refer to content from other web pages or local documents during the answering process, there are many drawbacks. For example, due to copyright restrictions, most text content on other web pages can only be viewed and cannot be directly copied, which undoubtedly increases the difficulty of referencing relevant text. Furthermore, even if copying is possible, it requires switching pages multiple times, which is time-consuming and laborious. Also, local documents rarely perfectly match the question, and the content in local documents is very likely outdated and not the latest information. Moreover, if the local document is in a non-editable format such as Portable Document Format (PDF), it cannot be directly copied.
[0036] To address the aforementioned issues, embodiments of the present invention provide a text presentation method and apparatus, a storage medium, and an electronic device, to facilitate respondents in writing highly professional response texts, and to enable questioners to learn more relevant knowledge, thereby enhancing the user experience and satisfaction.
[0037] The following is combined Figure 1a and Figure 1b This section provides a brief overview of the application scenarios for text presentation methods.
[0038] Figure 1a The diagram illustrates an application scenario of a text presentation method provided by an embodiment of the present invention. Figure 1a As shown, this application scenario includes a server 110 and user terminals 120 and 130, which are communicatively connected to the server 110. The server 110 is used to execute the text presentation method mentioned in this embodiment of the invention. User terminal 120 can be considered as the user terminal of the questioner seeking an answer, and user terminal 130 can be considered as the user terminal of the answerer seeking an answer.
[0039] For example, in practical application, the questioner sends the question to be answered to the server 110 via user terminal 120, and then the server 110 sends the question to be answered to the respondent's user terminal 130, so that the question can be presented to the respondent via user terminal 130. Then, the respondent inputs the first reply content via user terminal 130, and user terminal 130 sends the first reply content to the server 110. The server 110 generates a first reply text including encyclopedia tag text based on the first reply content, and sends the first reply text and at least one encyclopedia entry to the questioner's user terminal 120, so that the first reply text and at least one encyclopedia entry can be presented to the questioner via user terminal 120.
[0040] In the above process, the execution steps of server 110 include: responding to a reply request instruction for the question to be answered, presenting an answer editing window (e.g., presenting an answer editing window to the respondent via user terminal 130); generating a first reply text including encyclopedia tag text based on the answer editing window (e.g., receiving the first reply content edited by the respondent via the answer editing window presented in user terminal 130, and then generating the first reply text based on the first reply content); determining at least one index encyclopedia related to the question to be answered; presenting the first reply text and presenting at least one index encyclopedia (e.g., presenting the first reply text and at least one index encyclopedia to the questioner via user terminal 120).
[0041] It should be noted that in the above example, the answerer is not specified; any user browsing the question to be answered may become the answerer. Furthermore, the first reply text and at least one encyclopedia entry can be presented not only on the questioner's user terminal 120, but also on the user terminals of other users (such as the users browsing the question to be answered).
[0042] The following is combined Figure 1b This example illustrates how the first response text, including encyclopedia tag text, is generated.
[0043] Figure 1b The image shown is a schematic diagram of the answer editing window provided in an embodiment of the present invention. Figure 1b As shown, user terminal 130 presents the question "What are some good songs by Zhou**?" to the respondent. After the respondent confirms they can answer, they click the "Answer Question" button on the user terminal 130's interface to open an answer editing window. This window allows the respondent to edit their response (the first response). The answer editing window includes an encyclopedia link button 131 for inserting encyclopedia hyperlinks. For example, after clicking the encyclopedia link button 131, the respondent can add corresponding encyclopedia hyperlinks to ordinary term text within the response, converting these term texts into expandable encyclopedia tag text. Correspondingly, when the questioner or other users (such as question viewers and / or other respondents) browse the first response text, they can view the encyclopedia hyperlink content corresponding to the encyclopedia tag text as needed. It can be understood that in this embodiment, Figure 1a The user terminal 130 shown sends the first reply text to the server 110. In other embodiments, it can be as follows: Figure 1a As shown, the user terminal 130 only sends the first response content to the server 110. The server 110 will then generate the first response text, which includes the encyclopedia tag text, according to the actual situation.
[0044] For example, the user terminals mentioned above (including user terminal 120 and user terminal 130) are mobile terminals such as tablet computers and mobile phones.
[0045] The following is combined Figures 2 to 10 A brief introduction to the text presentation method of the present invention will be given.
[0046] Figure 2 The diagram shown is a flowchart illustrating a text presentation method according to an embodiment of the present invention. Exemplarily, the text presentation method provided in this embodiment can be executed on a server connected to a user terminal, and the relevant presentation actions mentioned in the method can be implemented using a corresponding user terminal. For example... Figure 2 As shown, the text presentation method provided in this embodiment of the invention includes the following steps.
[0047] Step S210: In response to the instruction to request a reply to the question to be answered, an answer editing window is presented.
[0048] For example, step S210 is specifically executed by: in response to a first user's instruction to reply to a question to be answered, presenting an answer editing window to the first user. Here, the first user includes those who will answer the question to be answered. It is understood that the number of first users is not limited to one; there can be multiple first users, meaning that there can be multiple answerers for the same question to be answered.
[0049] In some embodiments, a response request instruction from a first user is received via the first user's user terminal, and an answer editing window is presented via the first user's user terminal. That is, each user has a corresponding user terminal, which can be a mobile terminal such as a mobile phone or tablet. Furthermore, in other embodiments, all users may use the same centralized user terminal, and the text presentation method can be implemented using this centralized user terminal and a server or processor within the centralized user terminal that is communicatively connected to it. For example, this centralized user terminal may include, but is not limited to, intelligent service device terminals in public places such as airports, shopping malls, and hotel lobbies.
[0050] Step S220: Based on the answer editing window, generate the first response text, including the encyclopedia tag text.
[0051] In some embodiments, the system receives the first reply content edited by the respondent through an answer editing window, and then generates a first reply text based on the first reply content using a device such as a server or processor. That is, the encyclopedia tag text in the first reply text is automatically generated. In other embodiments, the system receives the first reply text edited by the respondent through an answer editing window. That is, the encyclopedia tag text in the first reply text is generated by the respondent.
[0052] Encyclopedia tag text refers to the text associated with encyclopedia hyperlink content, and can be considered as navigation text for specific text content. Correspondingly, encyclopedia hyperlink content refers to the specific content text. For example, encyclopedia tag text includes encyclopedia hyperlink text and / or encyclopedia entry name text. For example, the encyclopedia hyperlink text is "https: / / baike.sogou.com / city / %E5%8C%97%E4%BA%AC.v". For example, the encyclopedia entry name text is "Beijing". Exemplarily, in practical applications, when the questioner or other users (such as question viewers and / or other answerers) browse the first answer text, they can view the encyclopedia hyperlink content corresponding to the encyclopedia tag text according to their actual needs.
[0053] Step S230: Identify at least one indexed encyclopedia entry associated with the question to be answered.
[0054] For example, an indexed encyclopedia refers to encyclopedia entries recommended based on the question to be answered. For instance, an indexed encyclopedia might include terms like "Zhou**" or "Zhang**". In practical applications, if the indexed encyclopedia is accurate enough, the questioner may be able to find the answer directly from it, without the respondent needing to answer the question again.
[0055] Step S240: Present the first response text and at least one indexed encyclopedia entry.
[0056] The presentation of the first reply text and at least one index encyclopedia entry mentioned in step S240 can refer to presenting the first reply text and at least one index encyclopedia entry to the questioner, or it can refer to presenting the first reply text and at least one index encyclopedia entry to the answerer or question viewer. That is, the first reply text and at least one index encyclopedia entry can be made public to some users or to all users, and this embodiment of the invention does not impose a uniform limitation on this.
[0057] For example, the encyclopedia tag text in the first response text is presented in a collapsed style. A collapsed style refers to a style that only presents the encyclopedia tag, without fully expanding or completely collapsing the encyclopedia hyperlink content. For instance, a collapsed style might present the encyclopedia tag, hide the corresponding encyclopedia content (i.e., the encyclopedia hyperlink content), and then present a summary of the encyclopedia content upon receiving an expand instruction (see below for specific implementations of the collapsed style). Figure 4 (Example shown).
[0058] For example, in practical application, in response to the instruction to reply to the question to be answered, an answer editing window is first presented. Then, based on the answer editing window, a first reply text including encyclopedia tag text is generated, at least one indexed encyclopedia related to the question to be answered is determined, and then the first reply text and at least one indexed encyclopedia are presented.
[0059] The text presentation method provided in this invention achieves the goal of generating response text containing encyclopedia tags based on the answer editing window. Compared with the prior art, this invention not only assists answerers in quickly and accurately editing response text and enhances the professionalism and richness of response text by leveraging encyclopedia hyperlinks, but also enables questioners and / or question viewers to accurately understand more relevant knowledge, thereby optimizing the presentation effect of encyclopedia products and improving the user experience of encyclopedia products for all parties.
[0060] Figure 3 The diagram shown is a flowchart illustrating a text presentation method according to another embodiment of the present invention. Figure 2 The present invention extends from the illustrated embodiments. Figure 3 The illustrated embodiment will be described in detail below. Figure 3 The illustrated embodiments and Figure 2 The differences between the embodiments shown are not repeated here, and the similarities are not repeated here.
[0061] like Figure 3 As shown, in this embodiment of the invention, presenting the first response text and presenting at least one index encyclopedia step includes the following steps.
[0062] Step S310: Present the encyclopedia tag text based on the folding style.
[0063] Step S320: Present at least one index encyclopedia entry based on the expanded style and / or semi-collapsed style.
[0064] In step S330, in response to the acceptance instruction for the first reply text, the encyclopedia tag text is presented based on the expansion style.
[0065] For example, step S330 is specifically executed by: in response to the questioner's instruction to accept the first answer text, presenting the encyclopedia tag text in an expanded style.
[0066] For example, an expanded style includes displaying the encyclopedia tag and the encyclopedia content (i.e., the encyclopedia hyperlink content). A collapsed style includes displaying the encyclopedia tag and a summary of the encyclopedia content. A collapsed style includes displaying the encyclopedia tag, hiding the encyclopedia content corresponding to the encyclopedia tag, and displaying a summary of the encyclopedia content corresponding to the encyclopedia content upon receiving an expanded instruction.
[0067] In other words, in this embodiment of the invention, after the questioner accepts the answerer's reply, the presentation style of the encyclopedia tag text in the reply is changed from a collapsed style to an expanded style. This setting allows for further enrichment of the reply's presentation based on its actual content and the questioner's wishes, thereby enhancing the presentation effect of the question-and-answer content. Furthermore, presenting at least one encyclopedia entry based on an expanded style and / or a semi-collapsed style helps users quickly learn more relevant knowledge.
[0068] For example, if the first response text includes multiple encyclopedia tag texts, the step of presenting the encyclopedia tag texts based on the expanded style can be performed as follows: presenting the multiple encyclopedia tag texts in an expanded style, and linking the expanded style presentation content of each of the multiple encyclopedia tag texts together in a sliding connection manner. This setting can further optimize the presentation effect.
[0069] In some embodiments, after presenting the encyclopedia tag text in an expanded style in response to an acceptance instruction for the first reply text, the method further includes: if a dislike instruction from the questioner is received for at least one indexed encyclopedia, deleting the indexed encyclopedia corresponding to the dislike instruction, or changing the presentation style of the indexed encyclopedia corresponding to the dislike instruction to a collapsed style. In other words, embodiments of the present invention can change the presentation style of the indexed encyclopedia or directly delete the indexed encyclopedia based on the questioner's relevant operations, so as to optimize the presentation effect according to the questioner's wishes.
[0070] The following is combined Figure 4 Provide examples illustrating the specific implementations of the expand, half-collapse, and collapse styles.
[0071] Figure 4 The diagram shows the presentation of the folded style, unfolded style and semi-folded style provided in an embodiment of the present invention. Figure 4 There are three presentation styles involved: collapsed, expanded, and semi-collapsed. The collapsed style is also known as the weak style, the expanded style as the strong style, and the semi-collapsed style as the medium style.
[0072] like Figure 4 As shown, for non-touchscreen desktop terminals (such as desktop computers), in the folded style, users can preview encyclopedia content by clicking and / or hovering the mouse, and only a summary is displayed. Conversely, for touchscreen mobile terminals, in the folded style, users can preview encyclopedia content by clicking or pressing and holding their finger, and only a summary is displayed.
[0073] In the expanded style, encyclopedia content is displayed as cards, and individual cards can be swiped up and down to view more content. Furthermore, multiple entries can be displayed simultaneously, and entries can be swiped left and right to view them. For example, the default sorting of multiple entries is determined based on parameters such as co-occurrence score. In the semi-collapsed style, only the entry name is displayed; if an entry has a high page view (PV), related entries can be added.
[0074] It is understandable that the presentation style is not limited to Figure 4 The invention provides three different presentation styles. These styles not only enrich the way the encyclopedia is presented but also achieve the goal of displaying the encyclopedia at different levels based on user perception (such as user actions), thus optimizing the encyclopedia display effect.
[0075] In some embodiments, the strongly styled encyclopedia display also includes a "like" and "dislike" effect. Specifically, if someone other than the questioner dislikes the encyclopedia entry, it is not displayed to that user, but is displayed normally to other users. If the answerer or the questioner dislikes the encyclopedia entry, it is not displayed to that user, but is displayed weakly to other users. If someone other than the questioner likes the encyclopedia entry, it is placed first for that user. If the answerer or the questioner likes the encyclopedia entry, it is placed first for all users and a recommendation tag for the answerer or the questioner is added. Furthermore, in some embodiments, the front end (e.g., the user terminal) displays the number of likes and dislikes, and correspondingly, the back end (e.g., the server side) uses the like and dislike data and click data to further optimize the model performance of the relevant neural network model.
[0076] Figure 5 The diagram shown is a flowchart illustrating a text presentation method according to another embodiment of the present invention. Figure 3 The present invention extends from the illustrated embodiments. Figure 5 The illustrated embodiment will be described in detail below. Figure 5 The illustrated embodiments and Figure 3 The differences between the embodiments shown are not repeated here, and the similarities are not repeated here.
[0077] like Figure 5 As shown, in this embodiment of the invention, after the step of presenting the encyclopedia tag text based on the expansion style in response to the acceptance instruction for the first reply text, the following steps are also included.
[0078] Step S510: Place the first response text at the top of the answer display for the question to be answered.
[0079] In practical applications, multiple respondents may have prepared their own responses to a question, such as second and third responses. If the questioner accepts the first response, it can be displayed at the beginning of all responses, placing it at the top of the list of answers to the question. This improves the visibility of the first response and makes it easier for other question viewers and respondents to read and understand it.
[0080] Step S520: Add a questioner recommendation tag to the first response text.
[0081] Similarly, adding a recommendation tag for the questioner is also to improve the visibility of the first answer text, making it easier for other question viewers or answerers to browse and read.
[0082] It is understood that either step S510 or step S520 can be executed. Furthermore, if both step S510 and step S520 need to be executed, their execution order can also be determined according to the actual situation. This embodiment of the invention does not impose a uniform limitation on this.
[0083] Figure 6 The diagram shown is a flowchart illustrating a text presentation method according to another embodiment of the present invention. In the present invention... Figure 2 The present invention extends from the illustrated embodiments. Figure 6 The illustrated embodiment will be described in detail below. Figure 6 The illustrated embodiments and Figure 2 The differences between the embodiments shown are not repeated here, and the similarities are not repeated here.
[0084] like Figure 6 As shown, in this embodiment of the invention, after presenting the first response text and at least one index encyclopedia entry, the following steps are also included.
[0085] Step S610: Receive evaluation data for encyclopedia tag text and / or at least one indexed encyclopedia.
[0086] For example, the evaluation data is submitted by a second user. The second user is any user other than the respondent of the first reply text, i.e., any user other than the first user. In other words, the second user can be any other respondent, a viewer, or a questioner, as long as they are not the respondent of the first reply text.
[0087] Step S620: Adjust the presentation of encyclopedia tag text and / or at least one indexed encyclopedia entry based on the evaluation data.
[0088] For example, in the initial stage, the encyclopedia tag text is presented in a collapsed style. If multiple second users give positive feedback to the encyclopedia tag text (such as likes), it may indicate that the encyclopedia content associated with the encyclopedia tag text is relatively appropriate and accurate, which is helpful in answering the question to be answered. In this case, the encyclopedia tag text is converted to be presented in an expanded style.
[0089] In other words, the embodiments of the present invention can enable users to evaluate encyclopedia tag text and / or at least one index encyclopedia entry, thereby optimizing the presentation of the response text by combining the user's feedback on the encyclopedia tag text and / or at least one index encyclopedia entry, thus further improving the user evaluation system and enhancing user experience.
[0090] Furthermore, in some embodiments, the evaluation of encyclopedia tag text is presented differently for different users, allowing for more refined optimization of the presentation. For example, if the questioner likes the encyclopedia tag text, a "recommended tag for the questioner" can be added; if other users like the encyclopedia tag text, it will only be displayed first for that user. As another example, if the questioner dislikes the encyclopedia tag text, it will not be displayed to any user; if other users dislike the encyclopedia tag text, it will only be hidden from that user.
[0091] It's understandable that malicious user reviews could lead to dirty data in the iteration of related encyclopedia products, thus affecting product performance. To address this issue, user reviews can be used as a reference indicator to evaluate user behavior, distinguishing between low-quality and high-quality users. For example, restricting privileges for low-quality users can help regulate user operations.
[0092] Figure 7 The diagram shown is a flowchart illustrating a text presentation method according to another embodiment of the present invention. In the present invention... Figure 2 The present invention extends from the illustrated embodiments. Figure 7 The illustrated embodiment will be described in detail below. Figure 7 The illustrated embodiments and Figure 2 The differences between the embodiments shown are not repeated here, and the similarities are not repeated here.
[0093] like Figure 7 As shown, in this embodiment of the invention, the step of determining at least one index encyclopedia associated with the question to be answered includes the following steps.
[0094] Step S710: Receive the text data corresponding to the question to be answered.
[0095] Step S720: Determine the user intent information corresponding to the text data based on the named entity category model and / or disambiguation model.
[0096] For example, the Named Entity Recognition (NER) model is a neural network model trained on relevant training samples. Specifically, the NER model can identify entities in text data, improving recognition accuracy and thus providing a prerequisite for more accurately determining user intent information. For instance, if the question to be answered is "What does MJ mean?", then the NER model can determine the user intent information as the meaning of MJ, unrelated to the phrase "What does it mean?".
[0097] Similarly, disambiguation models are neural network models trained on relevant training samples. Specifically, disambiguation models can eliminate textual ambiguity in order to more accurately determine user intent information. For example, if the question to be answered is "What are the lyrics to 'Glorious Years'?", then based on the disambiguation model, the user intent information can be determined to be the lyrics to "Glorious Years", and is unrelated to the entry for the movie "Glorious Years".
[0098] Step S730: Based on the user intent information, determine at least one index encyclopedia entry associated with the question to be answered.
[0099] The text presentation method provided in this embodiment of the invention can further improve the accuracy of recommended index encyclopedias, thereby enhancing the ability of encyclopedia products to answer questions and further strengthening user stickiness.
[0100] Figure 8 The diagram shown is a flowchart illustrating a text presentation method according to another embodiment of the present invention. In the present invention... Figure 7 The present invention extends from the illustrated embodiments. Figure 8 The illustrated embodiment will be described in detail below. Figure 8 The illustrated embodiments and Figure 7 The differences between the embodiments shown are not repeated here, and the similarities are not repeated here.
[0101] like Figure 8 As shown, in this embodiment of the invention, at least one indexing encyclopedia step is presented, including the following steps.
[0102] Step S810: Based on the natural language processing model, determine the hazard parameters corresponding to the text to be answered.
[0103] For example, step S810 can be performed to determine the hazard parameters corresponding to the text data.
[0104] For example, a Natural Language Processing (NLP) model is a neural network model trained based on relevant training samples. Specifically, an NLP model can identify semantic information in text, thereby providing a prerequisite for determining the hazard parameters corresponding to the text data.
[0105] For example, the criteria for judging hazard parameters can be determined based on the degree of relevance to keywords or content such as pornography and illegality.
[0106] Furthermore, in this embodiment of the invention, at least one indexing encyclopedia step is presented, including the following steps.
[0107] Step S820: Determine which range of the hazard parameter falls into: the severe hazard level range, the general hazard level range, or the minor hazard level range.
[0108] For example, in step S820, if it is determined that the hazard parameter falls within the range of severe hazard level, then step S830 is executed; if it is determined that the hazard parameter falls within the range of general hazard level, then step S840 is executed; if it is determined that the hazard parameter falls within the range of minor hazard level, then step S850 is executed.
[0109] Step S830: Do not display at least one indexed encyclopedia entry. That is, do not display any indexed encyclopedia entries at all.
[0110] Step S840: Present a portion of the index encyclopedia from at least one index encyclopedia based on the folding style.
[0111] Step S850: Present at least one partial index encyclopedia entry based on the folded and semi-folded styles.
[0112] For folded and semi-folded styles, please refer to the above embodiments.
[0113] For example, in practical applications, based on a natural language processing model, the hazard parameters corresponding to the text data of the question to be answered are determined. If the hazard parameters fall into the range of severe hazard level, no index encyclopedia is presented. If the hazard parameters fall into the range of general hazard level, a portion of the index encyclopedia is presented based on the folding style. If the hazard parameters fall into the range of minor hazard level, a portion of the index encyclopedia is presented based on the folding style and the semi-folding style.
[0114] The text presentation method provided in this invention can promptly prevent and handle unanswered questions with potential for harm, reduce or even avoid recommending encyclopedia entries for unanswered questions or search content with potential for harm, thereby further improving recall accuracy and enhancing the compliance of encyclopedia products.
[0115] Figure 9 The diagram shown is a flowchart illustrating the process of presenting at least one indexed encyclopedia entry according to an embodiment of the present invention. In the present invention... Figure 7 The present invention extends from the illustrated embodiments. Figure 9 The illustrated embodiment will be described in detail below. Figure 9 The illustrated embodiments and Figure 7 The differences between the embodiments shown are not repeated here, and the similarities are not repeated here.
[0116] like Figure 9 As shown, in this embodiment of the invention, at least one indexing encyclopedia step is presented, including the following steps.
[0117] Step S910: Based on the entities corresponding to at least one indexed encyclopedia, determine the display score information corresponding to at least one indexed encyclopedia.
[0118] For example, the display score information corresponding to an indexed encyclopedia is determined based on the degree of overlap between the entity corresponding to the indexed encyclopedia and the entity corresponding to the question to be answered. For instance, if the entity corresponding to the question to be answered contains the entity corresponding to the indexed encyclopedia, then the display score information for that indexed encyclopedia is higher; for example, on a percentage scale, the display score for that indexed encyclopedia is 95 points. Conversely, if the entity corresponding to the question to be answered does not contain the entity corresponding to the indexed encyclopedia, then the display score information for that indexed encyclopedia is lower; for example, on a percentage scale, the display score for that indexed encyclopedia is 60 points.
[0119] In some embodiments, the display score of the indexed encyclopedia is determined based on the degree of relevance between the entity corresponding to the question to be answered and the entity corresponding to the indexed encyclopedia. Specifically, the degree of relevance is directly proportional to the display score; the higher the degree of relevance, the higher the display score, and the lower the degree of relevance, the lower the display score.
[0120] Step S920: Based on the display score information corresponding to at least one indexed encyclopedia, present at least one indexed encyclopedia.
[0121] In other words, when there are multiple encyclopedia entries, this embodiment of the invention can determine the display score information corresponding to each of the multiple encyclopedia entries for each corresponding entity, and then present the multiple encyclopedia entries in order based on the display score information corresponding to each of the multiple encyclopedia entries. This setup allows questioners to quickly and accurately understand relevant encyclopedia content that is closer to their actual intentions, thereby further improving the user experience.
[0122] Figure 10 The diagram shown is a flowchart illustrating the presentation of at least one indexed encyclopedia entry according to another embodiment of the present invention. In the present invention... Figure 9 The present invention extends from the illustrated embodiments. Figure 10 The illustrated embodiment will be described in detail below. Figure 10 The illustrated embodiments and Figure 9 The differences between the embodiments shown are not repeated here, and the similarities are not repeated here.
[0123] like Figure 10As shown, in this embodiment of the invention, the steps of presenting at least one indexed encyclopedia based on the display score information corresponding to each of the at least one indexed encyclopedia include the following steps.
[0124] Step S1010: For each entry in at least one indexed encyclopedia, determine which range of the indexed encyclopedia's display score information falls into: the full display range, the incomplete display range, or the no-display range.
[0125] For example, in step S1010, if it is determined that the display score information of the index encyclopedia falls within the complete display range, then step S1020 is executed; if it is determined that the display score information of the index encyclopedia falls within the incomplete display range, then step S1030 is executed; if it is determined that the display score information of the index encyclopedia falls within the completely non-display range, then step S1040 is executed.
[0126] Step S1020: Present the index encyclopedia based on the expanded style.
[0127] Step S1030: Present the index encyclopedia based on the semi-folded style.
[0128] Step S1040: Present the index encyclopedia based on the folding style.
[0129] For example, in practical applications, for each indexed encyclopedia entry in at least one indexed encyclopedia, if the display score information corresponding to the indexed encyclopedia entry falls within the full display range, the indexed encyclopedia entry is presented based on an expanded style; if the display score information corresponding to the indexed encyclopedia entry falls within the incomplete display range, the indexed encyclopedia entry is presented based on a semi-collapse style, wherein the semi-collapse style includes styles for presenting encyclopedia tags and encyclopedia content summaries; if the display score information corresponding to the indexed encyclopedia entry falls within the completely undisplayed range, the indexed encyclopedia entry is presented based on a collapsed style.
[0130] The text presentation method provided in this invention can determine the presentation mode of an indexed encyclopedia based on its display score information, thereby further enriching the presentation effect of the indexed encyclopedia. For example, for encyclopedias with relatively high display scores, an expanded style is used; for encyclopedias with relatively low display scores, a collapsed style is used.
[0131] The above text combined Figures 2 to 10 The method embodiments of the present invention are described in detail below, in conjunction with... Figures 11 to 13 The following describes in detail the apparatus embodiments of the present invention. It should be understood that the descriptions of the method embodiments correspond to the descriptions of the apparatus embodiments; therefore, any parts not described in detail can be referred to the foregoing method embodiments.
[0132] Figure 11 The diagram shown is a structural schematic of a text presentation device provided in an embodiment of the present invention. Figure 11As shown, the text presentation device provided in this embodiment of the invention includes a first presentation module 1110, a generation module 1120, a determination module 1125, and a second presentation module 1130. The first presentation module 1110 is used to present an answer editing window in response to a reply request instruction for a question to be answered. The generation module 1120 is used to generate a first reply text including encyclopedia tag text based on the answer editing window. The determination module 1125 is used to determine at least one encyclopedia entry associated with the question to be answered. The second presentation module 1130 is used to present the first reply text and at least one encyclopedia entry.
[0133] In one embodiment of the present invention, the second presentation module 1130 is further configured to: present encyclopedia tag text based on a folded style; present at least one index encyclopedia based on an expanded style and / or a semi-folded style; and, in response to an acceptance instruction for the first reply text, present encyclopedia tag text based on an expanded style.
[0134] In one embodiment of the present invention, the second presentation module 1130 is further configured to, if a questioner’s downvote instruction is received for at least one index encyclopedia entry, delete the index encyclopedia entry corresponding to the downvote instruction, or change the presentation style of the index encyclopedia entry corresponding to the downvote instruction to a collapsed style.
[0135] In one embodiment of the present invention, there are multiple encyclopedia tag texts. The second presentation module 1130 is further configured to present the multiple encyclopedia tag texts in an expanded style, and the expanded style presentation content of each of the multiple encyclopedia tag texts is associated with each other in a sliding connection manner.
[0136] In one embodiment of the present invention, the second presentation module 1130 is further configured to receive evaluation data for encyclopedia tag text and / or at least one indexed encyclopedia; and adjust the presentation effect of encyclopedia tag text and / or at least one indexed encyclopedia based on the evaluation data.
[0137] In one embodiment of the present invention, the folding style includes a style that presents an encyclopedia tag, hides the encyclopedia content corresponding to the encyclopedia tag, and presents a summary of the encyclopedia content corresponding to the encyclopedia content after receiving an unfold command; and / or, the half-folding style includes a style that presents an encyclopedia tag and an encyclopedia content summary; and / or, the unfolding style includes a style that presents an encyclopedia tag and presents the encyclopedia content.
[0138] In one embodiment of the present invention, the encyclopedia tag text includes encyclopedia hyperlink text and / or encyclopedia entry name text.
[0139] In one embodiment of the present invention, the determining module 1125 is further configured to: receive text data corresponding to the question to be answered; determine user intent information corresponding to the text data based on a named entity category model and / or a disambiguation model; and determine at least one index encyclopedia associated with the question to be answered based on the user intent information.
[0140] In one embodiment of the present invention, the second presentation module 1130 is further configured to: determine the hazard parameters corresponding to the text data based on a natural language processing model; if the hazard parameters fall within the range of severe hazard level, not present at least one index encyclopedia entry; if the hazard parameters fall within the range of general hazard level, present a portion of the index encyclopedia entry based on a folded style; if the hazard parameters fall within the range of minor hazard level, present a portion of the index encyclopedia entry based on a folded style and a semi-folded style.
[0141] In one embodiment of the present invention, the second presentation module 1130 is further configured to determine the display score information corresponding to at least one indexed encyclopedia based on the entity corresponding to each of the at least one indexed encyclopedia, and present at least one indexed encyclopedia based on the display score information corresponding to each of the at least one indexed encyclopedia.
[0142] In one embodiment of the present invention, the second presentation module 1130 is further configured to, for each index encyclopedia in at least one index encyclopedia, if the display score information corresponding to the index encyclopedia falls within the full display range, present the index encyclopedia based on an expanded style; if the display score information corresponding to the index encyclopedia falls within the incomplete display range, present the index encyclopedia based on a semi-collapse style, wherein the semi-collapse style includes styles for presenting encyclopedia tags and encyclopedia content summaries; and if the display score information corresponding to the index encyclopedia falls within the completely undisplayed range, present the index encyclopedia based on a collapsed style.
[0143] In some embodiments, a computer program product is also provided, which includes a computer program or computer instructions that, when executed by a processor, implement the text presentation method mentioned in any of the above embodiments.
[0144] Figure 12 The diagram shown is a structural schematic of an apparatus for a text presentation method according to an embodiment of the present invention. For example, apparatus 700 may be a robot, mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, vehicle terminal, etc.
[0145] Reference Figure 12 The device 700 may include one or more of the following components: a processing component 702, a memory 704, a power supply component 706, a multimedia component 708, an audio component 710, an input / output (I / O) interface 712, a sensor component 714, and a communication component 716.
[0146] Processing component 702 typically controls the overall operation of device 700, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.
[0147] Memory 704 is configured to store various types of data to support operation of device 700. Examples of such data include instructions for any application or method operating on device 700, first response text, etc. Memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0148] Power supply assembly 706 provides power to various components of device 700. Power supply assembly 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 700.
[0149] Multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 708 includes a front-facing camera and / or a rear-facing camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0150] Audio component 710 is configured to output and / or input audio signals. For example, audio component 710 includes a microphone (MIC) configured to receive external audio signals when device 700 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 704 or transmitted via communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
[0151] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0152] Sensor assembly 714 includes one or more sensors for providing state assessments of various aspects of device 700. For example, sensor assembly 714 may detect the on / off state of device 700, the relative positioning of components such as the display and keypad of device 700, changes in the position of device 700 or a component of device 700, the presence or absence of user contact with device 700, the orientation or acceleration / deceleration of device 700, and temperature changes of device 700. Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 714 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0153] Communication component 716 is configured to facilitate wired or wireless communication between device 700 and other devices. Device 700 can access wireless networks based on communication standards, such as WiFi, 2G, or 8G, or combinations thereof. In one exemplary embodiment, communication component 716 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 716 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0154] In an exemplary embodiment, the apparatus 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0155] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by a processor 720 of the device 700 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0156] Figure 13 The diagram illustrates the structure of a server according to an embodiment of the present invention. The server 800 can vary significantly depending on its configuration or performance, and may include one or more Central Processing Units (CPUs) 822 (e.g., one or more processors) and a memory 832, and one or more storage media 830 (e.g., one or more mass storage devices) for storing application programs 842 or data 844. The memory 832 and storage media 830 may be temporary or persistent storage. The program stored in the storage media 830 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the server. Furthermore, the CPU 822 may be configured to communicate with the storage media 830 and execute the series of instruction operations in the storage media 830 on the server 800.
[0157] Server 800 may also include one or more power supplies 824, one or more wired or wireless network interfaces 850, one or more input / output interfaces 858, one or more keyboards 854, and / or one or more operating systems 841, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0158] For example, the server 800 can be used to perform the text rendering method mentioned in the above embodiments.
[0159] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium can be at least one of the following media: read-only memory (ROM), RAM, magnetic disk, or optical disk, etc., and other media that can store program code.
[0160] It should be noted that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments. The device and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the solution in this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0161] The above description is merely one specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A text presentation method, characterized in that, include: In response to a request for an answer to a question, an answer editing window is displayed; wherein, the answer editing window is equipped with an encyclopedia association button that can insert encyclopedia hyperlinks; Based on the answer editing window, the first reply content is received, and in response to the selection of the encyclopedia association button, a corresponding encyclopedia hyperlink is added to the term text in the first reply content, generating the first reply text including encyclopedia tag text; Identify at least one indexed encyclopedia entry associated with the question to be answered; The encyclopedia tag text is presented in a collapsed style; the at least one index encyclopedia entry is presented in an expanded style and / or a semi-collapsed style; in response to an acceptance instruction for the first reply text, the encyclopedia tag text is presented in the expanded style, wherein, in the expanded style, the encyclopedia content is displayed in a card style, and individual cards can be swiped up and down to browse more content; If a downvote command is received from the questioner for the at least one indexed encyclopedia entry, the indexed encyclopedia entry corresponding to the downvote command is deleted, or the presentation style of the indexed encyclopedia entry corresponding to the downvote command is changed to the folded style. The expanded encyclopedia display format also includes a "like" and "dislike" effect. If a user who is not asking the question dislikes the encyclopedia, it will not be displayed to that user, but will be displayed normally to other users. If a user who is answering or asking the question dislikes the encyclopedia, it will not be displayed to that user, but will be displayed in the collapsed style to other users. If a user who is not asking the question likes the encyclopedia, it will be placed at the top of the list. If a user who is answering or asking the question likes the encyclopedia, it will be placed at the top of the list for all users and a recommendation tag for the answerer or questioner will be added.
2. The text presentation method according to claim 1, characterized in that, The number of encyclopedia tag texts is multiple, and the presentation of the encyclopedia tag texts based on the expansion style includes: Multiple encyclopedia tag texts are presented in an expanded style, and the expanded style content of each of the multiple encyclopedia tag texts is associated with each other by a sliding connection.
3. The text presentation method according to any one of claims 1 to 2, characterized in that, After presenting the at least one indexed encyclopedia entry based on an expanded style and / or a semi-collapsed style, the method further includes: Receive evaluation data for the encyclopedia tag text and / or the at least one indexed encyclopedia entry; Adjust the presentation of the encyclopedia tag text and / or the presentation of at least one indexed encyclopedia entry based on the evaluation data.
4. The text presentation method according to any one of claims 1 to 2, characterized in that, The folding style includes displaying encyclopedia tags, hiding the encyclopedia content corresponding to the tags, and displaying a summary of the encyclopedia content corresponding to the tags upon receiving an expand command; and / or, The semi-folded styles include styles that present encyclopedia tags and encyclopedia content summaries; and / or, The expansion style includes styles that display encyclopedia tags and display the encyclopedia content.
5. The text presentation method according to any one of claims 1 to 2, characterized in that, The encyclopedia tag text includes encyclopedia hyperlink text and / or encyclopedia entry name text.
6. The text presentation method according to any one of claims 1 to 2, characterized in that, The determination of at least one encyclopedia entry associated with the question to be answered includes: Receive the text data corresponding to the question to be answered; Based on the named entity category model and / or disambiguation model, the user intent information corresponding to the text data is determined; Based on the user intent information, at least one index encyclopedia entry is identified that is associated with the question to be answered.
7. The text presentation method according to any one of claims 1 to 2, characterized in that, The presentation of the at least one indexed encyclopedia entry based on an expanded style and / or a semi-collapsed style includes: Based on a natural language processing model, the hazard parameters corresponding to the question to be answered are determined; If the hazard parameter falls within the range of severe hazard level, at least one index encyclopedia entry will not be displayed; If the hazard parameter falls within the general hazard level range, a portion of the index encyclopedia from the at least one index encyclopedia will be presented based on the folding style. If the hazard parameter falls within the range of minor hazard level, a portion of the index encyclopedia from the at least one index encyclopedia will be presented based on the folded and semi-folded styles.
8. The text presentation method according to any one of claims 1 to 2, characterized in that, The presentation of the at least one indexed encyclopedia entry based on an expanded style and / or a semi-collapsed style includes: Based on the entities corresponding to each of the at least one indexed encyclopedia, determine the display score information corresponding to each of the at least one indexed encyclopedia; Based on the display score information corresponding to each of the at least one indexed encyclopedia entry, the at least one indexed encyclopedia entry is presented.
9. The text presentation method according to claim 8, characterized in that, The presentation of the at least one indexed encyclopedia based on its respective display score information includes: For each entry in the at least one indexed encyclopedia, If the display score information corresponding to the index encyclopedia falls within the full display range, then the index encyclopedia is presented based on the expanded style; If the display score information corresponding to the index encyclopedia falls within the incomplete display range, the index encyclopedia will be presented in a semi-folded style. If the display score information corresponding to the index encyclopedia falls into the range of not being displayed at all, then the index encyclopedia will be presented based on the folding style.
10. A text presentation device, characterized in that, include: The first presentation module is used to present an answer editing window in response to a reply request instruction for a question to be answered; wherein, the answer editing window is provided with an encyclopedia association button that can insert encyclopedia hyperlinks; The generation module is used to receive the first reply content based on the answer editing window, and in response to the selection of the encyclopedia association button, add corresponding encyclopedia hyperlinks to the term text in the first reply content, and generate the first reply text including encyclopedia tag text; The determination module is used to determine at least one indexed encyclopedia entry associated with the question to be answered; The second presentation module is used to present the encyclopedia tag text based on a folded style; present the at least one index encyclopedia based on an expanded style and / or a semi-folded style; and, in response to an acceptance instruction for the first reply text, present the encyclopedia tag text based on the expanded style, wherein, in the expanded style, the encyclopedia content is displayed in a card style, and individual cards can be swiped up and down to browse more content; The second presentation module is further configured to, upon receiving a dislike instruction from a questioner for the at least one indexed encyclopedia entry, delete the indexed encyclopedia entry corresponding to the dislike instruction, or change the presentation style of the indexed encyclopedia entry corresponding to the dislike instruction to the collapsed style; the encyclopedia display format of the expanded style also includes a like / dislike effect. If the user is not the questioner and dislikes the indexed encyclopedia entry, it is not displayed to that user, but is displayed normally to other users; if the user is the answerer or the questioner and dislikes the indexed encyclopedia entry, it is not displayed to that user, but is displayed to other users in the collapsed style; if the user is not the questioner and likes the indexed encyclopedia entry, it is placed first for that user; if the user is the answerer or the questioner and likes the indexed encyclopedia entry, it is placed first for all users and a recommendation tag for the answerer or the questioner is added.
11. The apparatus according to claim 10, characterized in that, The number of encyclopedia tag texts is multiple; The second presentation module is further configured to present multiple encyclopedia tag texts in an expanded style, and the expanded style presentation content of each of the multiple encyclopedia tag texts is associated with each other in a sliding connection manner.
12. The apparatus according to any one of claims 10 to 11, characterized in that, The second presentation module is further configured to receive evaluation data for the encyclopedia tag text and / or the at least one indexed encyclopedia; Adjust the presentation of the encyclopedia tag text and / or the presentation of at least one indexed encyclopedia entry based on the evaluation data.
13. The apparatus according to any one of claims 10 to 11, characterized in that, The folding style includes displaying encyclopedia tags, hiding the encyclopedia content corresponding to the tags, and displaying a summary of the encyclopedia content corresponding to the tags upon receiving an expand command; and / or, The semi-folded styles include styles that present encyclopedia tags and encyclopedia content summaries; and / or, The expansion style includes styles that display encyclopedia tags and display the encyclopedia content.
14. The apparatus according to any one of claims 10 to 11, characterized in that, The encyclopedia tag text includes encyclopedia hyperlink text and / or encyclopedia entry name text.
15. The apparatus according to any one of claims 10 to 11, characterized in that, The determining module is also used to receive text data corresponding to the question to be answered; Based on the named entity category model and / or disambiguation model, the user intent information corresponding to the text data is determined; Based on the user intent information, at least one index encyclopedia entry is identified that is associated with the question to be answered.
16. The apparatus according to any one of claims 10 to 11, characterized in that, The second presentation module is further configured to determine the hazard parameters corresponding to the question to be answered based on a natural language processing model; If the hazard parameter falls within the range of severe hazard level, at least one index encyclopedia entry will not be displayed; If the hazard parameter falls within the general hazard level range, a portion of the index encyclopedia from the at least one index encyclopedia will be presented based on the folding style. If the hazard parameter falls within the range of minor hazard level, a portion of the index encyclopedia from the at least one index encyclopedia will be presented based on the folded and semi-folded styles.
17. The apparatus according to any one of claims 10 to 11, characterized in that, The second presentation module is further configured to determine the display score information corresponding to each of the at least one indexed encyclopedia based on the entity corresponding to each of the at least one indexed encyclopedia; Based on the display score information corresponding to each of the at least one indexed encyclopedia entry, the at least one indexed encyclopedia entry is presented.
18. The apparatus according to claim 17, characterized in that, The second presentation module is further configured to, for each entry in the at least one indexed encyclopedia, If the display score information corresponding to the index encyclopedia falls within the full display range, then the index encyclopedia is presented based on the expanded style; If the display score information corresponding to the index encyclopedia falls within the incomplete display range, the index encyclopedia will be presented in a semi-folded style. If the display score information corresponding to the index encyclopedia falls into the range of not being displayed at all, then the index encyclopedia will be presented based on the folding style.
19. A computer-readable storage medium, characterized in that, The storage medium stores instructions that, when executed by the processor of the electronic device, enable the electronic device to perform the text presentation method according to any one of claims 1 to 9.
20. An electronic device, characterized in that, include: processor; Memory used to store executable instructions for a computer; The processor is configured to execute the computer-executable instructions to implement the text presentation method according to any one of claims 1 to 9.
21. A computer program product, characterized in that, The computer program product includes a computer program or computer instructions, which, when executed by a processor, implement the text presentation method according to any one of claims 1 to 9.