Page display method, device, apparatus and medium

By analyzing the text type of the page and displaying the corresponding components, the problem of web pages not supporting manual interaction was solved, thus improving the user's page browsing experience.

CN117892023BActive Publication Date: 2026-06-26BAIDU INT TECH (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BAIDU INT TECH (SHENZHEN) CO LTD
Filing Date
2024-01-16
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In the existing technology, not all document formats on web pages support manual interaction by users, resulting in a poor user experience, especially since content in tables and images cannot be directly extracted or selected.

Method used

By analyzing the text type of the page to be displayed, the corresponding components are determined, and the page to be displayed and the components are displayed to the user simultaneously, so that the user can process the text through the components and improve the interactive experience.

Benefits of technology

This allows users to easily perform text processing operations on pages with different text types, improving the interactive experience of page browsing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117892023B_ABST
    Figure CN117892023B_ABST
Patent Text Reader

Abstract

The present disclosure provides a page display method, device, equipment and medium, which relates to the fields of computer vision, deep learning and the like in artificial intelligence. The method comprises: in response to a page display request, performing text type analysis on a to-be-displayed page indicated by the page display request to obtain a type result corresponding to the to-be-displayed page; wherein the type result is used to indicate at least one text type corresponding to the content in the to-be-displayed page; determining at least one to-be-displayed component corresponding to the text type; wherein the component is used to indicate a text processing mode supported by the text content of the text type; and displaying the to-be-displayed page and the to-be-displayed component, so as to improve the browsing experience of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of artificial intelligence technology, specifically to computer vision, deep learning and other technical fields, and in particular to a page display method, apparatus, device and medium. Background Technology

[0002] Currently, when browsing information in a user's browser, they typically encounter various types of text content. However, not all content formats support corresponding document interactions, which can be understood as interactive operations such as text selection, text copying, and text-based question asking.

[0003] How to improve the user's page interaction experience through page display is an urgent problem that needs to be solved. Summary of the Invention

[0004] This disclosure provides a page display method, apparatus, device, and medium to improve the user's page browsing experience.

[0005] According to a first aspect of this disclosure, a page display method is provided, comprising:

[0006] In response to a page display request, text type analysis is performed on the page to be displayed indicated by the page display request to obtain the type result corresponding to the page to be displayed; wherein, the type result is used to indicate at least one text type corresponding to the content in the page to be displayed;

[0007] Determine at least one component to be displayed corresponding to the text type; wherein the component is used to indicate the text processing methods that the text content of the text type can support;

[0008] Display the page to be displayed and the components to be displayed.

[0009] According to a second aspect of this disclosure, a page display device is provided, comprising:

[0010] An analysis unit is configured to, in response to a page display request, perform text type analysis on the page to be displayed indicated by the page display request, and obtain the type result corresponding to the page to be displayed; wherein, the type result is used to indicate at least one text type corresponding to the content in the page to be displayed;

[0011] The first determining unit is configured to determine at least one component to be displayed corresponding to the text type; wherein the component is configured to indicate the text processing methods that the text content of the text type can support;

[0012] The first display unit is used to display the page to be displayed and the components to be displayed.

[0013] According to a third aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of the first aspect.

[0014] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are configured to cause the computer to perform the method described in the first aspect.

[0015] According to a fifth aspect of this disclosure, a computer program product is provided, the computer program product comprising: a computer program stored in a readable storage medium, wherein at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the method described in the first aspect.

[0016] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0017] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0018] Figure 1 A schematic flowchart illustrating a page display method provided in an embodiment of this disclosure;

[0019] Figure 2 A flowchart illustrating yet another page display method provided in this disclosure embodiment;

[0020] Figure 3 A flowchart illustrating another page display method provided in this embodiment of the present disclosure;

[0021] Figure 4 This is a schematic diagram of an interface display provided in an embodiment of the present disclosure;

[0022] Figure 5 This is another schematic diagram of an interface display provided in an embodiment of the present disclosure;

[0023] Figure 6 This is a schematic diagram of the structure of a page display device provided in an embodiment of the present disclosure;

[0024] Figure 7 This is a schematic diagram of the structure of another page display device provided in an embodiment of the present disclosure;

[0025] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0026] Figure 9 This is a block diagram of an electronic device used to implement the page display method of the embodiments of this disclosure. Detailed Implementation

[0027] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0028] Currently, during user information browsing, it is often necessary to accurately extract the required content from documents of different formats. For example, this content extraction can include manually selecting and copying text, searching and extracting content from documents, and full-text question answering.

[0029] However, not all document formats on web pages support manual interaction by users. For example, the content in tables and images on some web pages cannot be directly extracted, copied, or selected, which affects the user experience.

[0030] To avoid at least one of the aforementioned technical problems, the inventors of this disclosure have creatively arrived at the inventive concept of this disclosure: upon receiving a page display request, the text type corresponding to the page to be displayed is first analyzed. Then, at least one component to be displayed is matched according to the determined text type, and the page to be displayed and the determined component are displayed to the user, so that the user can subsequently perform text analysis processing on the content contained in the displayed page by triggering the component.

[0031] This disclosure provides a page display method, apparatus, device, and medium applicable to fields such as computer vision and deep learning in artificial intelligence. It enables the determination of appropriate components based on the text type of the page to be displayed, and the simultaneous display of the page to be displayed and the determined components to the user. This facilitates human-computer interaction operations such as text processing on the displayed page, thereby improving the user's reading experience.

[0032] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0033] Figure 1This is a flowchart illustrating a page display method provided in an embodiment of the present disclosure, such as... Figure 1 As shown, the method includes the following steps:

[0034] S101. In response to a page display request, perform text type analysis on the page to be displayed as indicated by the page display request to obtain the type result corresponding to the page to be displayed; wherein, the type result is used to indicate at least one text type corresponding to the content in the page to be displayed.

[0035] For example, the execution subject of this embodiment can be a page display device, which can be a server (such as a local server or a cloud server), a computer, a processor, a chip, etc. This embodiment does not limit the scope of the application.

[0036] In this embodiment, the page display request is used to request the display of a page to be displayed. Upon receiving the page display request, it is first necessary to perform text type analysis on the content contained in the page to be displayed in order to determine the corresponding type result in the page to be displayed.

[0037] Specifically, in this embodiment, the type result is used to characterize at least one text type corresponding to the content contained in the page to be displayed. For example, when the page to be displayed includes tables and images, the type result may include table type and image type, or any one of the table type and image type mentioned above. This embodiment does not impose any specific limitations.

[0038] For example, the text types to be analyzed in the above text type analysis process can be pre-set by the user. For instance, when the above page display method is applied to a browser, the user can configure the browser so that before each page is displayed, only the content contained in the page to be displayed is analyzed to see if there is any content belonging to the text type that the user is interested in; or, it can analyze all text types that the browser supports for sharing.

[0039] In addition, when determining the type result, the text type of each content in the page to be displayed can be determined according to the page code corresponding to the page to be displayed. In this embodiment, the processing method of corresponding text type analysis is not specifically limited.

[0040] S102. Determine at least one component to be displayed corresponding to the text type; wherein the component is used to indicate the text processing methods that the text content of the text type can support.

[0041] For example, after determining the type result of the page to be displayed, at least one component to be displayed is determined based on the text type contained in the type result. It should be noted that the component in this embodiment can be understood as a component that can trigger the text processing method corresponding to that component. The user can perform corresponding text processing on the text content under the text type corresponding to the component by controlling the aforementioned component.

[0042] In one possible implementation, at least one component to be displayed can be determined by the correspondence between text types and components. For example, all components corresponding to a text type in the correspondence can be considered as the components to be displayed for that text type.

[0043] For example, if it is determined that there is an image on the page to be displayed, and if the current device supports extracting text from the image, then the component that extracts the text will be used as the component to be displayed corresponding to that image type.

[0044] S103. Display the page to be displayed and the components to be displayed.

[0045] For example, after determining the components to be displayed corresponding to each text type in the type results, the requested page to be displayed and the determined components to be displayed are further displayed in the display interface.

[0046] It should be noted that the display position of the aforementioned components is not specifically limited in this embodiment. For example, the components to be displayed can be displayed in the blank space on the left edge or the blank space on the right edge of the page. Alternatively, if there are many components to be displayed, they can be grouped according to text type, with each group corresponding to a pop-up button. By controlling the pop-up button, each component to be displayed under the text type corresponding to that pop-up button can be displayed, thereby reducing the space occupied by the display page.

[0047] It is understood that in this embodiment, text type analysis can be performed on the content of the page to be displayed to determine at least one component to be displayed based on the obtained type results, and then the page to be displayed and the determined component to be displayed can be shown to the user. Furthermore, during the user's page browsing process, the corresponding component on the page can be invoked to perform text processing on the content of the page, making it convenient for the user to obtain the corresponding text processing results and improving the user's browsing experience.

[0048] Figure 2 This is a flowchart illustrating yet another page display method provided in an embodiment of the present disclosure, as shown below. Figure 2 As shown, the method includes the following steps:

[0049] S201. In response to a page display request, perform text type analysis on the page to be displayed as indicated by the page display request to obtain the type result corresponding to the page to be displayed; wherein, the type result is used to indicate at least one text type corresponding to the content in the page to be displayed; wherein, the type result further includes: text type location information; the location information is used to indicate the position of the text content belonging to the text type in the page to be displayed.

[0050] For example, the execution subject of this embodiment can be a page display device, which can be a server (such as a local server or a cloud server), a computer, a processor, a chip, etc. This embodiment does not limit the scope of the application.

[0051] In this embodiment, when performing text type analysis on the page to be displayed corresponding to the page request, not only is the text type corresponding to the content contained in the page to be displayed determined, but also the position information of the content under each text type in the page to be displayed is determined.

[0052] For example, when there are two images on the page to be displayed, the text lines corresponding to the two images can be used as the position information corresponding to the image type.

[0053] In one example, the text type is any one of the following: webpage type, image type, table type, video type, code type, terminology type, or portable document format PDF type; the terminology type is the type corresponding to the text content used for terminology explanation.

[0054] For example, in this embodiment, when performing text type analysis on the page to be displayed, the analysis can be used to determine whether the text content on the page belongs to any of the following types: webpage, image, table, video, code, terminology, or Portable Document Format (PDF). It should be noted that in this embodiment, "terminology" can be understood as a set of names used to represent concepts within a specific domain, and "term type" can be understood as the type of text content used to explain the term. Webpage, image, video, and PDF formats can all be determined by the format of the corresponding display content on the page to be displayed. Whether the text content includes code, terminology, or other types of text can be determined through text content analysis. For example, a semantic analysis model can be trained to determine whether the text content is an explanatory text corresponding to a term; or, the correlation between the characters contained in the text and the programming language can be identified to determine whether the current text content is a code segment. It should be noted that the analysis method here is only illustrative and is not specifically limited.

[0055] It is understandable that in this embodiment, the analysis of the above-mentioned text types is used to accurately recommend and display components to users, thereby improving the user's reading and interactive experience.

[0056] In one example, the component is any one of the following: content selection component, feature extraction component, translation component, question-and-answer component, and code conversion component; wherein, the content selection component is a component that indicates the selection of text content; the feature extraction component is a component that indicates the extraction of key information from the text content; the translation component is a component that indicates the conversion of text into a language; the question-and-answer component is a component that indicates the intelligent question-and-answer processing based on the text content; and the code conversion component is a component that indicates the conversion of code into a language.

[0057] For example, the components provided in this embodiment include at least one of the following: a content selection component, a feature extraction component, a translation component, a question-and-answer component, and a code conversion component. The content selection component can be understood as a component that requires selecting text content. The text type corresponding to the aforementioned content selection component can be a text type that does not support direct selection; for example, the content selection component can correspond to text types including PDF, table, and image types.

[0058] Furthermore, the element extraction component can be understood as a component capable of extracting key information from text content. By triggering the aforementioned component, key information can be extracted from the selected text content. This key information can be user-specified content of interest or core keywords of the text content; this embodiment does not impose specific restrictions on the key information.

[0059] A translation component can be understood as a component that performs language translation on selected content. Similarly, a question-and-answer component can be understood as a component that, upon receiving a question, determines the corresponding answer within the selected text content.

[0060] A code conversion component can be understood as a component that performs language conversion processing on selected code segments. Language conversion can be understood as the conversion process from one programming language to another, or the conversion of programming code into the corresponding code interpretation language.

[0061] It is understood that in this embodiment, the above-mentioned components are set up to facilitate users' text comprehension and improve their page browsing experience.

[0062] S202. Determine the component corresponding to the text type according to the preset correspondence; the preset correspondence represents the correspondence between text types and components.

[0063] For example, in this embodiment, when determining the component to be displayed corresponding to a text type, the component under that text type can first be determined according to the preset correspondence between text type and component.

[0064] S203. If it is determined that there are multiple components corresponding to the text type, then obtain the user's historical call information; wherein, the historical call information is used to indicate the number of times the user calls each component in the historical period.

[0065] For example, if multiple components are determined to exist under a text type based on a preset correspondence, then the current user's historical call information can be obtained. It should be noted that the historical call information in this embodiment is used to record the number of times the user called each component within a historical time period.

[0066] S204. Based on historical call information, determine at least one component to be displayed from the components corresponding to the text type; wherein the component is used to indicate the text processing methods that the text content of the text type can support.

[0067] For example, after obtaining the historical call information, the component that needs to be displayed can be selected from multiple components corresponding to the text type based on the historical call information.

[0068] For example, based on the number of times each component under a text type is called, the top N components with the highest number of calls can be selected as the components to be displayed for that text type, where N is a positive integer.

[0069] Alternatively, the components to be displayed can be determined by combining the number of times the component is called and the release time of the component. This allows for further recommendations of newly released components to users based on their component usage habits.

[0070] It is understood that in this embodiment, the components to be displayed under each text type can be determined based on the number of times the component is called, so as to push components to the user in combination with the user's component calling habits, thereby improving the user's interactive experience during page browsing.

[0071] S205. Determine the display position of the component to be displayed corresponding to the text type based on the position information of the text type; wherein, the display position is used to indicate the position of the component to be displayed when it is displayed.

[0072] For example, in this embodiment, after determining the position information corresponding to each text type in the type result, the display position of the component to be displayed corresponding to the text type can be determined according to the above position information. The display position can be understood as the position information corresponding to the display of the component to be displayed in the interface.

[0073] For example, once the location information corresponding to a certain text type is determined, the display position corresponding to that text type (i.e., the display position of the component to be displayed under that text type) can be set in a blank area near the aforementioned location information. For instance, when an image exists on the page to be displayed, the text extraction component corresponding to the image type can be placed in the lower right corner of the image when the page is displayed, so that when the user browses to the image, they can extract the text from the image by controlling the component in the lower right corner of the image.

[0074] Alternatively, an explanatory term component can be added near the text content of the identified term categories. Subsequently, users can trigger the explanatory term component to obtain the explanatory content corresponding to the terms near the component, and the obtained explanatory content will be displayed to the user.

[0075] S206. Based on the display position, display the page to be displayed and the components to be displayed in the display interface.

[0076] For example, in this embodiment, after determining the display position corresponding to each component to be displayed, the components to be displayed are displayed simultaneously with the page to be displayed based on the display position.

[0077] It is understood that in this embodiment, the display position of the component to be displayed corresponding to the text type can be determined based on the location information corresponding to the text type. By determining the display position in this way, the component corresponding to the text processing supported by that text type can be displayed at the text content corresponding to each text type, thereby facilitating user component invocation.

[0078] Figure 3 A flowchart illustrating another page display method provided in this disclosure embodiment is shown below. Figure 3 As shown, the method includes the following steps:

[0079] S301. In response to a page display request, perform text type analysis on the page to be displayed as indicated by the page display request to obtain the type result corresponding to the page to be displayed; wherein the type result is used to indicate at least one text type corresponding to the content in the page to be displayed.

[0080] S302. Determine at least one component to be displayed corresponding to the text type; wherein the component is used to indicate the text processing methods that the text content of the text type can support.

[0081] S303, Display the page to be displayed and the components to be displayed.

[0082] For example, the technical principles of steps S301-S303 can be found in steps S101-S103, and will not be repeated here.

[0083] S304. In response to the analysis command, determine the text content to be processed as indicated by the analysis command; the analysis command is used to instruct text content analysis processing.

[0084] For example, the analysis instructions in this embodiment can be understood as instructions triggered by the user when browsing the page displayed in the interface, which are used to instruct the content analysis processing of the text content to be processed on the page.

[0085] It should be noted that the above analysis instructions can be generated by triggering components displayed on the page; they can also be input via voice commands. This embodiment does not impose any specific restrictions.

[0086] S305. Convert the format of the text content to be processed to obtain the first text content; wherein the format of the first text content is an image format.

[0087] For example, once the text content to be processed as indicated by the analysis instruction is determined, the text content to be processed is subjected to format conversion processing in order to convert the text content to be processed into a first text content in image format.

[0088] For example, in practical applications, when performing format conversion, the device's screenshot function can be used to convert the format and obtain the first text content.

[0089] S306. Perform content analysis processing on the first text content to obtain the analysis result of the first text content; wherein, the analysis result includes the characters contained in the first text content and the character position information of the characters; the character position information is used to characterize the position of the characters in the first text content.

[0090] For example, after obtaining the first text content, content analysis processing can be performed on the first text content to further determine the characters contained in the first text content and the character position information corresponding to the characters in the first text content.

[0091] Understandably, in this embodiment, during text content analysis, the text content to be processed is uniformly converted into image-formatted text content before content analysis is performed on the image-type content to obtain the text content for each type. This content analysis method avoids the problem of needing to maintain and develop multiple models, which would otherwise require setting up separate content analysis models for each text type.

[0092] In one example, the analysis instruction in step S304 is generated upon detecting that text content of image type, table type, or PDF type needs to be selected; the method further includes: setting a floating layer on the text content to be processed; wherein the area of ​​the floating layer is consistent with the area of ​​the text content to be processed displayed in the display interface, and the text content to be processed can be displayed through the floating layer; creating a first display box and displaying the characters in the analysis result in the first display box; in response to the selection operation in the floating layer area, determining that the character selected by the selection operation is a hit character; and highlighting the hit area in the floating layer; the hit area is the area in the floating layer that overlaps with the position of the hit character.

[0093] For example, the detection command in this embodiment is triggered when a user needs to select text content of types such as image, table, and PDF. After the device receives the detection command and determines the analysis result corresponding to the text content to be processed, a selection-enabled floating layer is further set above the display area corresponding to the text content to be processed to facilitate selection by the user. This floating layer does not obscure the text content to be processed below it. Therefore, the user can select text content directly on the floating layer. Furthermore, during the selection process, to facilitate further processing such as copying the selected content, a first display box is created on the display interface, displaying the characters contained in the text content to be processed within the first display box.

[0094] When a selection operation targeting the floating layer area is detected, the character indicated by the selection operation (i.e., the hit character mentioned above) will be determined, and the floating layer in the display area corresponding to the hit character contained in the first display box will be highlighted so that the user can identify the hit character in the first display box in a timely manner.

[0095] Understandably, in this embodiment, when a user needs to select text content that is not originally supported for direct selection, a floating layer can be set on the area corresponding to the text to be processed, allowing the user to select the content. Furthermore, a display box can be further set in the display interface to display the content of the text to be processed. Moreover, when the user selects in the floating window, the selected content can be highlighted in the display box, allowing the user to quickly identify the selected content.

[0096] In one example, based on the above embodiment, a function bar is displayed in response to a selection operation in the floating layer area; wherein the function bar includes at least one function component; the function component is used to indicate text processing logic; in response to an operation on the function component, the text processing logic corresponding to the function component is executed on the hit character.

[0097] For example, in this embodiment, based on the above embodiments, when a selection operation targeting the floating layer area is detected, a function bar can be further displayed on the display interface. At least one functional component can be set in the function bar, and each functional component corresponds to a text processing logic. After the user determines the hit character through the selection operation, they can further select the component corresponding to the text processing operation to be triggered in the function bar, so as to perform text processing on the hit character.

[0098] For example, the text processing corresponding to the functional components in the function bar can include translation, explanation, summarization, rewriting, expansion, and error correction. Translation can be understood as performing language conversion on the matched characters. Explanation can be understood as providing terminological explanations for the matched characters. Summarization can be understood as summarizing the main points of the matched characters. Rewriting can be understood as rewriting the text while ensuring semantic similarity before and after rewriting. Expansion can be understood as expanding the sentences based on the original matched characters to enrich their semantics.

[0099] It is understood that in this embodiment, after detecting the selection operation, a function bar will be further displayed so that the user can control the function components in the function bar to process the selected characters, thereby improving the user experience.

[0100] In one example, the analysis instruction in step S304 is generated when the text content needs to be translated; the method also includes: translating the characters in the analysis result to obtain the translation result; and displaying the translation result according to a preset display method; the preset display method is: displaying only the translated content, or displaying either the content before or after translation.

[0101] For example, the detection instruction in this embodiment may also be triggered when the text content to be processed is translated. After obtaining the analysis result through the text content analysis processing in steps S304-S306, the characters contained in the analysis result can be translated to obtain the translation result, and the translation result can be displayed. It should be noted that in this embodiment, when displaying the translation result, the translation result can be displayed according to a preset display method.

[0102] One of the preset display modes is to show only the translated content. For example, when displaying the translation result, the original text to be processed can be directly replaced with the translation result. Furthermore, during the replacement process, the position information of the characters in the text to be processed can be combined to determine the position information corresponding to the translation result, so as to ensure that the text formatting before and after translation remains consistent.

[0103] Alternatively, the preset display method could be to simultaneously display the content before and after translation. For example, the display interface could be divided into two display areas. In one area, the second display box would be used to display the text to be processed before translation. In the other area, the third display box would be used to display the translation result. Furthermore, when displaying the translation result in the third display box, the layout of the translated content in the third display box could be arranged based on the positional information of each character in the analysis result to ensure consistency between the layout before and after translation.

[0104] One possible implementation, which displays both the text before and after translation, is to reformat the text before translation and insert the translation result into the text before translation, so that each piece of text before translation is followed by a corresponding translation result, for the user to read.

[0105] When determining how to display the translation results, one possible implementation is to select based on the text type corresponding to the text content to be processed, or to display the translation results according to the display method indicated by the user. In this embodiment, no specific restrictions are placed on the method for determining how to display the translation results.

[0106] It is understood that in this embodiment, when it is detected that text content translation processing is required, the text type is first converted, and the converted content is analyzed to obtain the analysis results. Then, the translation processing is performed based on the analysis results, and the translation results are displayed according to the preset display method to facilitate users to browse the text content.

[0107] For example, Figure 4 This is a schematic diagram of an interface display provided for an embodiment of the present disclosure. As shown in the figure, in... Figure 4 The system includes a table. Users can trigger the corresponding content segmentation component to select content within the table, and the characters contained in the table will be displayed in a pop-up box on the right side of the table; the image illustrates this by selecting the content in the second column of the table. After selecting the content in the second column of the table (indicated by shading in the image), the characters in the second column of the table can be further highlighted in the pop-up box on the right side of the table.

[0108] For example, Figure 5 This is another schematic diagram of an interface display provided in an embodiment of the present disclosure. Figure 5 The left side of the image shows an image. The right side of the image is a display box used to show the characters contained in the image. When the second text content in the image is selected, the same second text content in the display box will also be highlighted. Furthermore, a question-and-answer component can pop up, allowing the user to enter a question. The device can then process the selected second text content (shown as shaded in the image) based on the received question to obtain the corresponding result. For example, the question could be to generate a table from the second text content in a specific order. The device can then process the second text content based on the question to generate the corresponding table.

[0109] Figure 6 This is a schematic diagram of the structure of a page display device provided in an embodiment of the present disclosure, such as... Figure 6 As shown, the page display device 600 includes:

[0110] The analysis unit 601 is configured to, in response to a page display request, perform text type analysis on the page to be displayed as indicated by the page display request, and obtain the type result corresponding to the page to be displayed; wherein the type result is used to indicate at least one text type corresponding to the content in the page to be displayed.

[0111] The first determining unit 602 is used to determine at least one component to be displayed corresponding to a text type; wherein the component is used to indicate the text processing methods that the text content of the text type can support.

[0112] The first display unit 603 is used to display the page to be displayed and the components to be displayed.

[0113] The apparatus provided in this embodiment is used to implement the technical solution provided by the above method. Its implementation principle and technical effect are similar, and will not be described again.

[0114] Figure 7 This is a schematic diagram of the structure of another page display device provided in an embodiment of the present disclosure, such as... Figure 7 As shown, the page display device 700 includes:

[0115] The analysis unit 701 is used to perform text type analysis on the page to be displayed indicated by the page display request in response to the page display request, and obtain the type result corresponding to the page to be displayed; wherein the type result is used to indicate at least one text type corresponding to the content in the page to be displayed.

[0116] The first determining unit 702 is used to determine at least one component to be displayed corresponding to a text type; wherein the component is used to indicate the text processing methods that the text content of the text type can support.

[0117] The first display unit 703 is used to display the page to be displayed and the components to be displayed.

[0118] In one example, the type result also includes: location information of the text type; the location information is used to indicate the position of the text content belonging to this text type on the page to be displayed; the first display unit 703 includes:

[0119] The first determining module 7031 is used to determine the display position of the component to be displayed corresponding to the text type based on the position information of the text type; wherein, the display position is used to indicate the position of the component to be displayed when it is displayed;

[0120] Display module 7032 is used to display the page to be displayed and the components to be displayed in the display interface according to the display position.

[0121] In one example, the first determining unit 702 includes:

[0122] The second determining module 7021 is used to determine the component corresponding to the text type according to a preset correspondence relationship; the preset correspondence relationship represents the correspondence between the text type and the component.

[0123] The acquisition module 7022 is used to acquire the user's historical call information if it is determined that there are multiple components corresponding to the text type; wherein, the historical call information is used to indicate the number of times the user has called each component in the historical period.

[0124] The third determining module 7023 is used to determine at least one component to be displayed from the components corresponding to the text type based on historical call information.

[0125] In one example, the device also includes:

[0126] The second determining unit 704 is used to determine the text content to be processed indicated by the analysis command in response to the analysis command; the analysis command is used to instruct the text content analysis processing.

[0127] The conversion unit 705 is used to convert the format of the text content to be processed to obtain the first text content; wherein the format of the first text content is an image format;

[0128] The first processing unit 706 is used to perform content analysis processing on the first text content to obtain the analysis result of the first text content; wherein, the analysis result includes the characters contained in the first text content and the character position information of the characters; the character position information is used to characterize the position of the characters in the first text content.

[0129] In one example, the analysis instruction is generated upon detecting that content selection is required for image-type, table-type, or PDF-type text content; the device also includes:

[0130] Configuration unit 707 is used to set a floating layer on the text content to be processed; wherein the area of ​​the floating layer is consistent with the area of ​​the text content to be processed displayed in the display interface, and the text content to be processed can be displayed through the floating layer;

[0131] Create cell 708 to create the first display box;

[0132] The second display unit 709 is used to display characters from the analysis results in the first display box;

[0133] The third determining unit 710 is used to determine, in response to a selection operation in the floating layer area, that the character selected by the selection operation is a hit character;

[0134] The third display unit 711 is used to highlight the hit area in the floating layer; the hit area is the area in the floating layer that overlaps with the position of the hit character.

[0135] In one example, the device also includes:

[0136] The fourth display unit is used to display a function bar in response to a selection operation in the floating layer area; wherein the function bar includes at least one functional component; the functional component is used to indicate text processing logic;

[0137] The second processing unit is used to execute the text processing logic corresponding to the functional component on the hit character in response to the operation on the functional component.

[0138] In one example, the analysis instruction is generated upon detecting that text content requires translation; the device also includes:

[0139] The third processing unit is used to translate the characters in the analysis results to obtain the translation results;

[0140] The fifth display unit is used to display the translation result according to a preset display mode; the preset display mode is: display only the translated content, or display either the content before or after translation.

[0141] In one example, the text type is any one of the following: webpage type, image type, table type, video type, code type, terminology type, or portable document format PDF type; the terminology type is the type corresponding to the text content used for terminology explanation.

[0142] In one example, the component is any one of the following: content selection component, feature extraction component, translation component, question-and-answer component, and code conversion component; wherein, the content selection component is a component that indicates the selection of text content; the feature extraction component is a component that indicates the extraction of key information from the text content; the translation component is a component that indicates the conversion of text into a language; the question-and-answer component is a component that indicates the intelligent question-and-answer processing based on the text content; and the code conversion component is a component that indicates the conversion of code into a language.

[0143] The apparatus provided in this embodiment is used to implement the technical solution provided by the above method. Its implementation principle and technical effect are similar, and will not be described again.

[0144] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0145] This disclosure provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method provided in any of the above embodiments.

[0146] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as... Figure 8 As shown, the electronic device 800 in this disclosure may include a processor 801 and a memory 802.

[0147] Memory 802 is used to store programs. Memory 802 may include volatile memory, such as random-access memory (RAM), such as static random-access memory (SRAM), double data rate synchronous dynamic random-access memory (DDR SDRAM), etc.; memory may also include non-volatile memory, such as flash memory. Memory 802 is used to store computer programs (such as application programs, functional modules, etc. that implement the above methods), computer instructions, etc. The computer programs, computer instructions, etc., can be partitioned and stored in one or more memories 802. Furthermore, the computer programs, computer instructions, data, etc., can be accessed by processor 801.

[0148] The aforementioned computer programs and instructions can be stored in one or more partitions of memory 802. Furthermore, the aforementioned computer programs and instructions can be invoked by processor 801.

[0149] The processor 801 is configured to execute the computer program stored in the memory 802 to implement the various steps in the methods described in the above embodiments.

[0150] For details, please refer to the relevant descriptions in the preceding method embodiments.

[0151] The processor 801 and the memory 802 can be independent structures or integrated structures. When the processor 801 and the memory 802 are independent structures, the memory 802 and the processor 801 can be coupled together via bus 803.

[0152] The electronic device in this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principle are the same, and will not be repeated here.

[0153] This disclosure provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to perform the methods provided in any of the above embodiments.

[0154] According to embodiments of this disclosure, this disclosure also provides a computer program product comprising: a computer program stored in a readable storage medium, at least one processor of an electronic device being able to read the computer program from the readable storage medium, and the at least one processor executing the computer program causing the electronic device to perform the scheme provided in any of the above embodiments.

[0155] Figure 9 A schematic block diagram of an example electronic device 900 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0156] like Figure 9As shown, device 900 includes a computing unit 901, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 902 or a computer program loaded from storage unit 908 into random access memory (RAM) 903. RAM 903 may also store various programs and data required for the operation of device 900. The computing unit 901, ROM 902, and RAM 903 are interconnected via bus 904. Input / output (I / O) interface 905 is also connected to bus 904.

[0157] Multiple components in device 900 are connected to I / O interface 905, including: input unit 906, such as keyboard, mouse, etc.; output unit 907, such as various types of monitors, speakers, etc.; storage unit 908, such as disk, optical disk, etc.; and communication unit 909, such as network card, modem, wireless transceiver, etc. Communication unit 909 allows device 900 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0158] The computing unit 901 can be a variety of general-purpose and / or special-purpose processing units with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs the various methods and processes described above, such as the page display method. For example, in some embodiments, the page display method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on device 900 via ROM 902 and / or communication unit 909. When the computer program is loaded into RAM 903 and executed by the computing unit 901, one or more steps of the page display method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the page display method by any other suitable means (e.g., by means of firmware).

[0159] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0160] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0161] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0162] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0163] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0164] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service ecosystem, addressing the shortcomings of traditional physical hosts and VPS (Virtual Private Server, or simply "VPS") services, such as high management difficulty and weak business scalability. Servers can also be servers for distributed systems or servers incorporating blockchain technology.

[0165] It should be understood that the various forms of processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0166] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A page display method, comprising: In response to a page display request, text type analysis is performed on the page to be displayed as indicated by the page display request to obtain the type result corresponding to the page to be displayed; wherein, the type result is used to indicate at least one text type corresponding to the content in the page to be displayed; wherein, the text type is any one of web page type, image type, table type, video type, code type, terminology type, and portable document format PDF type; the terminology type is the type corresponding to the text content used for terminology explanation; Identify at least one component to be displayed corresponding to the text type; wherein the component is used to indicate the text processing methods supported by the text content of the text type; wherein the component is any one of the following: content selection component, feature extraction component, translation component, question-and-answer component, code conversion component; wherein the content selection component is a component that indicates the selection of text content; the feature extraction component is a component that indicates the extraction of key information from the text content; the translation component is a component that indicates the conversion of text into a language; the question-and-answer component is a component that indicates intelligent question-and-answer processing based on the text content; and the code conversion component is a component that indicates the conversion of code into a language. Display the page to be displayed and the components to be displayed.

2. The method according to claim 1, wherein, The type result further includes: location information of the text type; the location information is used to indicate the position of text content belonging to the text type in the page to be displayed; displaying the page to be displayed and the components to be displayed includes: Based on the location information of the text type, determine the display position of the component to be displayed corresponding to the text type; wherein, the display position is used to indicate the position of the component to be displayed when it is displayed; Based on the display position, the page to be displayed and the component to be displayed are displayed in the display interface.

3. The method according to claim 1, wherein, Determining at least one component to be displayed corresponding to the text type includes: The component corresponding to the text type is determined according to a preset correspondence; the preset correspondence represents the correspondence between text types and components. If it is determined that there are multiple components corresponding to the text type, then the user's historical call information is obtained; wherein, the historical call information is used to indicate the number of times the user has called each component in a historical period; Based on the historical call information, at least one component to be displayed is determined from the components corresponding to the text type.

4. The method according to any one of claims 1-3, further comprising: In response to an analysis command, determine the text content to be processed as indicated by the analysis command; The analysis command is used to instruct text content analysis and processing; The text content to be processed is converted to obtain the first text content; wherein the format of the first text content is an image format; The first text content is subjected to content analysis processing to obtain the analysis result of the first text content; wherein, the analysis result includes the characters contained in the first text content and the character position information of the characters; the character position information is used to characterize the position of the characters in the first text content.

5. The method according to claim 4, wherein, The analysis command is generated upon detecting a need to select content from image, table, or PDF type text; the method further includes: A floating layer is provided on the text content to be processed; wherein, the area of ​​the floating layer is consistent with the area of ​​the text content to be processed displayed in the display interface, and the text content to be processed can be displayed through the floating layer; Create a first display box and display the characters from the analysis results in the first display box; In response to a selection operation in the floating layer area, the character selected by the selection operation is determined to be a hit character; and the hit area in the floating layer is highlighted; the hit area is the area in the floating layer that overlaps with the position of the hit character.

6. The method according to claim 5, wherein, The method further includes: In response to a selection operation in the floating layer area, a function bar is displayed; wherein the function bar includes at least one functional component; the functional component is used to indicate text processing logic; In response to an operation on the functional component, the text processing logic corresponding to the functional component is executed on the hit character.

7. The method according to claim 4, wherein, The analysis command is generated upon detecting that the text content needs to be translated; the method further includes: The characters in the analysis results are translated to obtain translation results; and the translation results are displayed according to a preset display method; the preset display method is: displaying only the translated content, or displaying either the original or translated content simultaneously.

8. A page display device, comprising: An analysis unit is configured to, in response to a page display request, perform text type analysis on the page to be displayed as indicated by the page display request, and obtain a type result corresponding to the page to be displayed; wherein, the type result is used to indicate at least one text type corresponding to the content in the page to be displayed; wherein, the text type is any one of webpage type, image type, table type, video type, code type, terminology type, and portable document format PDF type; the terminology type is the type corresponding to text content used for terminology explanation; A first determining unit is configured to determine at least one component to be displayed corresponding to the text type; wherein the component is used to indicate the text processing methods that the text content of the text type can support; wherein the component is any one of the following: a content selection component, an element extraction component, a translation component, a question-and-answer component, or a code conversion component; wherein the content selection component is a component that indicates the selection of text content; the element extraction component is a component that indicates the extraction of key information from the text content; the translation component is a component that indicates the conversion of text into a language; the question-and-answer component is a component that indicates intelligent question-and-answer processing based on the text content; and the code conversion component is a component that indicates the conversion of code into a language. The first display unit is used to display the page to be displayed and the components to be displayed.

9. The apparatus according to claim 8, wherein, The type result further includes: location information of the text type; the location information is used to indicate the position of text content belonging to the text type in the page to be displayed; the first display unit includes: The first determining module is used to determine the display position of the component to be displayed corresponding to the text type based on the position information of the text type; wherein, the display position is used to indicate the position of the component to be displayed when it is displayed; The display module is used to display the page to be displayed and the components to be displayed in the display interface according to the display position.

10. The apparatus according to claim 8, wherein, The first defined unit includes: The second determining module is used to determine the component corresponding to the text type according to a preset correspondence relationship; the preset correspondence relationship represents the correspondence between the text type and the component. The acquisition module is used to acquire the user's historical call information if it is determined that there are multiple components corresponding to the text type; wherein the historical call information is used to indicate the number of times the user has called each component in a historical period. The third determining module is used to determine at least one component to be displayed from the components corresponding to the text type based on the historical call information.

11. The apparatus according to any one of claims 8-10, further comprising: The second determining unit is used to determine the text content to be processed indicated by the analysis command in response to the analysis command. The analysis command is used to instruct text content analysis and processing; A conversion unit is used to convert the format of the text content to be processed to obtain first text content; wherein the format of the first text content is an image format; The first processing unit is configured to perform content analysis processing on the first text content to obtain the analysis result of the first text content; wherein, the analysis result includes the characters contained in the first text content and the character position information of the characters; the character position information is used to characterize the position of the characters in the first text content.

12. The apparatus according to claim 11, wherein, The analysis command is generated upon detecting a need to select content from image, table, or PDF type text; the device further includes: A configuration unit is configured to set a floating layer on the text content to be processed; wherein the area of ​​the floating layer is consistent with the area of ​​the text content to be processed displayed in the display interface, and the text content to be processed can be displayed through the floating layer; Create a cell to create the first display box; The second display unit is used to display characters from the analysis results in the first display box; The third determining unit is configured to determine, in response to a selection operation in the floating layer area, that the character selected by the selection operation is a hit character; The third display unit is used to highlight the hit area in the floating layer; the hit area is the area in the floating layer that overlaps with the position of the hit character.

13. The apparatus according to claim 12, wherein, The device further includes: The fourth display unit is configured to display a function bar in response to a selection operation in the floating layer area; wherein the function bar includes at least one functional component; the functional component is used to indicate text processing logic; The second processing unit is configured to, in response to an operation on the functional component, execute the text processing logic corresponding to the functional component on the hit character.

14. The apparatus according to claim 11, wherein, The analysis instruction is generated upon detecting that the text content needs to be translated; the device further includes: The third processing unit is used to translate the characters in the analysis results to obtain the translation results. The fifth display unit is used to display the translation result according to a preset display mode; the preset display mode is: displaying only the translated content, or displaying either the content before or after translation.

15. An electronic device comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.

16. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-7.

17. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1-7.