Text display method and device, electronic equipment and readable storage medium

By receiving user input on electronic devices and generating comment text using OCR and AI, the problem of users having to type multiple times on merchant pages is solved, simplifying operations and improving convenience.

CN119336212BActive Publication Date: 2026-05-01VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
VIVO MOBILE COMM CO LTD
Filing Date
2024-10-08
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Users have to type in comments multiple times when posting them on a merchant's product or service page, making the process cumbersome and time-consuming, and reducing the convenience of electronic devices.

Method used

By receiving the user's initial input, the system uses OCR technology to recognize the page content and generate the first text. It then combines this with an AI application to generate the second text, which serves as the comment text and is displayed directly on the page.

Benefits of technology

It reduces the number of times users need to type comment text on the page, simplifies the operation process, and improves the convenience and efficiency of posting comments on electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336212B_ABST
    Figure CN119336212B_ABST
Patent Text Reader

Abstract

The application discloses a text display method and device, electronic equipment and a readable storage medium, and belongs to the technical field of computers. The text display method comprises the following steps: receiving a first input of a user on a first page; in response to the first input, generating a first text according to first page content in the first page; and displaying a second text in combination with the first text, wherein the second text is a comment text corresponding to the first page content.
Need to check novelty before this filing date? Find Prior Art

Description

Text display methods, devices, electronic devices, and readable storage media Technical Field

[0001] This application belongs to the field of computer technology, and specifically relates to a text display method, device, electronic device, and readable storage medium. Background Technology

[0002] Typically, when a user wants to review a merchant's products or services, the user first triggers the electronic device to display the page of the product or service to be reviewed. Then, on that page, the user enters the text of their review request, which the electronic device then displays. This allows the user to trigger the electronic device to publish their review on that page.

[0003] However, because users may need to enter multiple times on the page of the product or service to be reviewed by the merchant before the electronic device can display the user's requested review text, the process of triggering the electronic device to publish the user's requested review text on the page is cumbersome and time-consuming, thus reducing the convenience of publishing review text on the electronic device. Summary of the Invention

[0004] The purpose of this application is to provide a text display method, apparatus, electronic device, and readable storage medium that can reduce the number of times user-requested comment text needs to be entered on a page, thereby simplifying the user's operation in triggering the electronic device to publish the user-requested comment text on the page and reducing the time consumption, thereby improving the convenience of publishing comment text on the electronic device.

[0005] In a first aspect, embodiments of this application provide a text display method, the method comprising: receiving a first input from a user to a first page; in response to the first input, generating first text based on the content of the first page; and displaying second text in combination with the first text, the second text being a comment text corresponding to the content of the first page.

[0006] Secondly, embodiments of this application provide a text display device, which may include a receiving module, a processing module, and a display module. The receiving module is used to receive a first input from a user on a first page. The processing module is used to generate first text based on the content of the first page in response to the first input received by the receiving module. The display module is used to display second text in conjunction with the first text.

[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the method described in the first aspect.

[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the steps of the method described in the first aspect.

[0011] In this embodiment, the electronic device can generate first text based on the first page content according to the user's first input on the first page, and display second text in combination with the first text. The second text is the comment text corresponding to the first page content. Since the user can trigger the electronic device to generate first text based on the first page content of the object to be commented on with a single input (i.e., the first input), and directly display the comment text corresponding to the first page content, that is, display the comment text requested by the user for the object to be commented on, without requiring the user to input multiple times, the number of inputs required to display the comment text requested by the user on the first page can be reduced. This simplifies the user's operation in triggering the electronic device to publish the comment text requested by the user on the first page and reduces the time consumption, thus improving the convenience of the electronic device to publish comment text. Attached Figure Description

[0012] Figure 1 is a flowchart illustrating one of the text display methods provided in this application embodiment;

[0013] Figure 2A is one of the schematic diagrams of a mobile phone interface provided in an embodiment of this application;

[0014] Figure 2B is a second schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0015] Figure 2C is a third schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0016] Figure 3A is a fourth schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0017] Figure 3B is the fifth schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0018] Figure 4 is a sixth schematic diagram of the mobile phone interface provided in the embodiments of this application;

[0019] Figure 5 is a second flowchart illustrating the text display method provided in an embodiment of this application;

[0020] Figure 6A is the seventh schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0021] Figure 6B is the eighth schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0022] Figure 6C is a ninth schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0023] Figure 6D is a schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0024] Figure 7A is an eleventh schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0025] Figure 7B is a schematic diagram of the mobile phone interface provided in the embodiment of this application, number 12;

[0026] Figure 7C is a schematic diagram of the mobile phone interface provided in the embodiment of this application, number thirteen.

[0027] Figure 8 is a schematic diagram of the mobile phone interface provided in the embodiment of this application, number fourteen.

[0028] Figure 9 is a third flowchart illustrating the text display method provided in this application embodiment;

[0029] Figure 10 is a fourth flowchart illustrating the text display method provided in this application embodiment;

[0030] Figure 11 is a fifth flowchart illustrating the text display method provided in the embodiments of this application;

[0031] Figure 12 is a schematic diagram of the mobile phone interface provided in the embodiment of this application, number fifteen.

[0032] Figure 13 is a schematic diagram of the mobile phone interface provided in the embodiment of this application, number sixteen.

[0033] Figure 14 is the seventeenth schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0034] Figure 15 is an eighteenth schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0035] Figure 16A is a schematic diagram of the mobile phone interface provided in the embodiment of this application, number nineteen.

[0036] Figure 16B is a schematic diagram of the mobile phone interface provided in the embodiment of this application (twentieth one).

[0037] Figure 17 is a flowchart of the text display method provided in the embodiments of this application, number six;

[0038] Figure 18A is a schematic diagram of the mobile phone interface provided in the embodiment of this application, number twenty-one;

[0039] Figure 18B is the twenty-second schematic diagram of the mobile phone interface provided in the embodiment of this application;

[0040] Figure 18C is a schematic diagram of the mobile phone interface provided in the embodiment of this application, number twenty-three;

[0041] Figure 19 is a schematic diagram of the structure of the text display device provided in an embodiment of this application;

[0042] Figure 20 is one of the hardware structure diagrams of the electronic device provided in the embodiments of this application;

[0043] Figure 21 is a second schematic diagram of the hardware structure of the electronic device provided in the embodiment of this application. Detailed Implementation

[0044] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0045] The following will explain the technical terms used in the embodiments of this application.

[0046] 1. Prompt

[0047] Typically, a Prompt refers to a text or question provided by the model, instructing it to generate a specific answer or continue generating text. The Prompt should clearly indicate the task the model is to perform and the text parameters that the output answer or text must meet. These text parameters may include at least one of the following: word count range, sentiment tendency, etc.

[0048] Here, the above tasks may include at least one of the following: answering questions, generating text, translating, extracting summaries, classifying, etc.

[0049] 2. Optical Character Recognition (OCR)

[0050] OCR refers to a technology that converts text in an image into machine-readable text. Electronic devices using OCR can analyze the pixels in an image to determine the text and convert it into machine-readable text.

[0051] 3. Soft Fine-Tuning (SFT)

[0052] SFT refers to a technique used in the fields of natural language processing and machine learning. SFT typically involves making relatively small and gentle parameter adjustments to a large, pre-trained language model. Its main purpose is to better adapt the model to a specific task or domain.

[0053] 4. Other terms

[0054] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0055] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."

[0056] It should be noted that the text display method provided in this application can be executed by electronic devices such as mobile phones, tablets, laptops, PDAs, and in-vehicle electronic devices. Some embodiments of this application use a mobile phone as the executing entity to illustrate the text display method provided in this application.

[0057] The text display method, apparatus, electronic device, and readable storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0058] The text display method provided in this application can be applied to scenarios where users want to comment on services or products.

[0059] For example, on a page displaying the services of Merchant 1, a user can directly input information once on the page to trigger the electronic device to automatically retrieve the descriptive text of Merchant 1, which describes the services of Merchant 1. Based on this description, the device will then automatically display the user's desired review text, such as "Merchant 1 is a highly recommended restaurant. The food is authentic, the service is warm and attentive, and the dining environment is comfortable and pleasant. Both the taste and the service are excellent." This review text is then directly displayed. Thus, the user only needs to click the post control on the page to trigger the electronic device to post the review text. It can be understood that since the user only needs to input once to trigger the electronic device to display and post the review text, the process of triggering the electronic device to post the user's desired review text only requires two inputs. Therefore, compared to the three examples in the aforementioned related technologies, this simplifies the process of triggering the electronic device to post the user's desired review text and reduces time consumption.

[0060] Another specific application scenario is to suppose a user wants to use an electronic device to review a product from merchant 2 in a shopping application.

[0061] In one example of related technology, a user can first trigger an electronic device to display a page for product 1 from merchant 2, and then repeatedly enter text in the text input box on that page to input the desired review text, such as "The fabric of product 1 is very good, feels very comfortable, doesn't deform after washing, has a nice style, the overall size runs large, and the quality and texture are good." This review text 5 is then displayed on the page, allowing the user to click the post control on the page to trigger the electronic device to post the review text 5. However, because the user needs to repeatedly enter each word of the review text 5 on the product 1 page of merchant 2 before it can be displayed in the text input box, the process of triggering the electronic device to post the desired review text on the page is cumbersome and time-consuming.

[0062] However, in this embodiment, when displaying the page for Merchant 2's Product 1, the user can trigger the electronic device to automatically retrieve the description text of Merchant 2's Product 1 by making a single input on the page. This description text describes Merchant 2's Product 1, and the device automatically generates a review text based on the user's needs, such as "Product 1 is very good overall, casual style, good quality, the clothes have a very good texture, worth buying" review text 8, and directly displays this review text 8. Thus, the user only needs to click the post control on the page to trigger the electronic device to post the review text 8 on the page. It can be understood that since the user only needs to make one input to trigger the electronic device to display the review text 8 on the page, and then make another input to trigger the electronic device to post the review text 8 on the page, the user only needs to make two inputs to trigger the electronic device to post the review text they need on the page. Therefore, compared with the three examples in the above-mentioned related technologies, this simplifies the process of triggering the electronic device to post the review text they need on the page, reducing the cumbersome operation and time consumption.

[0063] This application provides a text display method. Figure 1 shows a flowchart of a text display method provided by this application. As shown in Figure 1, the text display method provided by this application may include the following steps 101 to 103.

[0064] Step 101: The electronic device receives the user's first input on the first page.

[0065] In some embodiments of this application, the electronic device receives a first input from the user on the first page while displaying the first page.

[0066] In some embodiments of this application, the aforementioned first page can be a page within a first application, used to comment on the goods or services of merchants within the first application. The first page may include descriptions of goods or services from one merchant, or it may include descriptions of goods or services from at least two merchants.

[0067] In some examples, where the first page includes the products or services of one merchant, that first page can be a review page for that merchant's products or services. Where the first page includes the products or services of at least two merchants, the first page can be the review center page of the first application, which displays descriptive information about the products or services of the merchants to be reviewed.

[0068] The first application can be any of the following: a service application, a shopping application, a social application, etc. Of course, the first application can also be other applications, and this application embodiment does not limit this.

[0069] In some embodiments of this application, when a user needs to comment on an object to be commented on, the user can trigger an electronic device to display a first page, whereby the user can make a first input.

[0070] In this embodiment of the application, the first input is used to display the comment text of the object to be commented on on the first page.

[0071] The object to be commented on can be at least one of the merchants, products, and services on the first page.

[0072] For example, the aforementioned first input includes, but is not limited to: touch input by the user to the display screen of the electronic device via a touch device such as a finger or stylus, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this embodiment of the invention does not impose limitations. The specific gestures in this application embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture; the click input in this application embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input.

[0073] For example, the first input mentioned above could be: a user's swipe input on the first page, or a press input on the first page, etc.

[0074] Step 102: The electronic device responds to the first input and generates the first text based on the content of the first page in the first page.

[0075] Step 103: The electronic device displays the second text in conjunction with the first text.

[0076] In this embodiment of the application, the second text mentioned above is the comment text corresponding to the content of the first page.

[0077] In some embodiments of this application, the electronic device may first acquire an image of the first page (i.e., the content of the first page), which may be an image of the entire page area or a part of the page area of ​​the first page, and then use OCR technology to recognize the image to obtain the aforementioned first text.

[0078] In some embodiments of this application, the content of the first page can be the page content corresponding to the object to be commented on in the first page. This first page content can be images, text, etc.

[0079] In some embodiments of this application, the first text described above is used to describe object information of the object to be commented on in the first page.

[0080] In some embodiments of this application, the above-mentioned object information may include at least one of the following: the name of the object to be commented on, the details of the object to be commented on, and the content to be evaluated for the object to be commented on.

[0081] For example, the evaluation content of the object to be evaluated may include at least one of the following: service quality, performance, customer service experience, cost-effectiveness, etc. Of course, the evaluation content may also include other content, which is not limited in this embodiment.

[0082] It can be understood that the second text mentioned above is the comment text requested by the user for the object to be commented on.

[0083] In some embodiments of this application, an electronic device can generate second text based on the first text using an AI-type application. This AI-type application can be a default application on the electronic device or a user-defined application.

[0084] It should be noted that the aforementioned AI applications can be understood as applications associated with AI models. Electronic devices input information (such as text, images, audio, video, etc.) into the AI ​​model associated with the application in order to obtain the output information from the AI ​​model through the application. The AI ​​model associated with this type of AI application can be deployed on a cloud server or within the electronic device.

[0085] In some embodiments of this application, the electronic device may display the second text on the first page, or the electronic device may display the second text floating on the first page.

[0086] In one example, when an electronic device displays second text on a first page, the electronic device may display the second text in a blank area of ​​the first page, or the electronic device may display the second text in a text input box on the first page.

[0087] In another example, if the electronic device displays the second text over a first page, the electronic device can either display the second text over the object to be commented on, or the electronic device can directly display an interface over a first page and display the second text in that interface.

[0088] The following two different examples illustrate specific methods for electronic devices to obtain the first text.

[0089] In one possible implementation of this application, before "generating first text based on the content of the first page in the first page" in step 102 above, the text display method provided in this application embodiment may further include the following steps 201 to 203, and the above step 102 may be specifically implemented by the following step 102a.

[0090] Step 201: The electronic device responds to the first input and displays the fourth control.

[0091] In this embodiment of the application, the fourth control is used to determine the page content of the object to be commented on in the first page.

[0092] In some embodiments of this application, in response to a first input, the electronic device can first display a second page on a first page, the second page including at least one application icon, so that the user can click on the application icon of the aforementioned AI application among the at least one application icon, so that the electronic device can display a first interface floating on the first page, the first interface being the interface of the AI ​​application, the first interface including a fourth control.

[0093] For example, let's take a mobile phone as an example. As shown in Figure 2A, the first page of the phone (e.g., page 10) includes the page content of the object to be reviewed (e.g., merchant 1), such as "Merchant 1" page content 11, "Overall rating is great" page content 12, "The taste is great" page content 13, "The environment is okay" page content 14, and "The service is great" page content 15. The user can then make their first input on this page 10, for example, by swiping from the right edge of page 10 towards the center. As shown in Figure 2B, after the user makes this swipe input, the phone can display a second page on page 10, such as page 1. 6. The page 16 includes at least one application icon, such as application icon 17 for "Application 1", application icon 18 for "Application 2", application icon 19 for "Application 3", application icon 20 for "Application 4", and application icon 21 for "AI Assistant". The user can click on the application icon 21 for "AI Assistant" to input. As shown in Figure 2C, after the user clicks on the application icon 21 for "AI Assistant", the mobile phone can display a first interface, such as the "AI Assistant" interface 22. The "AI Assistant" interface 22 includes a fourth control, such as the "Screen Recognition" control 23.

[0094] Step 202: The electronic device receives the user's third input to the fourth control.

[0095] In this embodiment of the application, the third input is used to trigger the fourth control.

[0096] For example, the aforementioned third input includes, but is not limited to: touch input from the user via a finger or stylus to the display screen of the electronic device, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this embodiment of the invention does not impose limitations. The specific gestures in this application embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture; the click input in this application embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input.

[0097] For example, the third input mentioned above could be the user's click input on the fourth control.

[0098] Step 203: The electronic device responds to the third input and determines all page content in the first page as the content of the first page.

[0099] Step 102a: The electronic device generates the first text based on the content of the first page in the first page.

[0100] In some embodiments of this application, the electronic device can take a screenshot of the first page to obtain the content of the first page (the content of the first page is an image of the entire page area of ​​the first page), and then use OCR technology to recognize the content of the first page to obtain the aforementioned first text.

[0101] In some embodiments of this application, the electronic device may first cancel the display of the first interface to display the first page, and obtain an image of the entire page area of ​​the first page (i.e., the content of the first page), and then use OCR technology to recognize the content of the first page to obtain all the text in the first page, so that the electronic device can determine the all the text as the first text.

[0102] For example, referring to Figure 2C and as shown in Figure 3A, the user can perform a third input on the "Screen Recognition" control 23, such as clicking to input; as shown in Figure 3B, after the user clicks to input on the "Screen Recognition" control 23, the phone can first cancel the display of the "AI Assistant" interface 22, that is, display page 10, and obtain an image of the entire page area of ​​page 10 to obtain the content of the first page. Then, the phone uses OCR technology to recognize the content of the first page to obtain all the text in the entire page area of ​​page 10, such as the text "Merchant 1", the text "Great taste", the text "The environment is okay", and the text "Great service". Thus, the phone can identify the text "Merchant 1", the text "Great taste", the text "The environment is okay", and the text "Great service" as the first text. That is, the first text includes the text "Merchant 1" 11, the text "Overall rating is great" 12, the text "Great taste" 13, the text "The environment is okay" 14, and the text "Great service" 15.

[0103] In some embodiments of this application, after obtaining the first text, the electronic device can directly generate the second text through the aforementioned AI application and display the second text on the first page.

[0104] In some embodiments of this application, the electronic device may directly display the second text on the first page, or may display the first interface again on the first page and display the second text on the first interface.

[0105] For example, referring to Figure 3B, as shown in Figure 4, the mobile phone can display a second text in the "AI Assistant" interface 22, such as, "Merchant 1 is a highly recommended restaurant. The dishes are authentic, the service is warm and attentive, and the dining environment is comfortable and pleasant. Both the taste and the service are excellent."

[0106] Thus, since the electronic device can display a fourth control, a single input from the user to this fourth control can trigger the electronic device to determine all the content of the first page as the first page content and directly generate the first text corresponding to that first page content, without requiring the user to input all the text in the first page one by one to input the first text. Therefore, the user's input during the process of the electronic device determining the second text can be simplified and the time consumption can be reduced.

[0107] In another possible implementation of this application, referring to Figure 1 and as shown in Figure 5, before "generating the first text based on the content of the first page in the first page" in step 102 above, the text display method provided in this application embodiment may further include the following steps 204 to 206, and the above step 102 may be implemented by the following step 102b.

[0108] Step 204: The electronic device responds to the first input and displays the fifth control.

[0109] In this embodiment of the application, the fifth control is used to determine the page content of the object to be commented on.

[0110] In some embodiments of this application, in response to a first input, the electronic device can first display a second page on a first page, the second page including at least one application icon, so that the user can click on the application icon of the aforementioned AI-type application among the at least one application icon, so that the electronic device can display a first interface floating on the first page, the first interface being the interface of the AI-type application, the first interface including the aforementioned fifth control, so that the user can make an input to the fifth control, such as a long press input, so that the electronic device can display the fifth control on the first interface.

[0111] For example, as shown in Figure 6A, the mobile phone displays a first page, such as page 24. This page 24 includes multiple objects, including the object to be commented on. For example, the multiple objects include Merchant 2, Merchant 3, and Merchant 4. Merchant 2, Merchant 3, and Merchant 4 include the object to be commented on (e.g., Merchant 3). This page 24 includes the page content of Merchant 3, such as "Merchant 3" 25 and the page content 26 of "Long Men's Down Jacket 2024 Autumn Warm and Comfortable Cotton Coat Duck Down Outdoor Bread Jacket Ivory White XL". Thus, the user can make the first input on this page 24, for example, by sliding the user from the right edge of page 24 towards the center of page 24; as shown in Figure 6B, when the user makes... After the swipe input, the phone can display a second page on page 24, such as page 27. Page 27 includes at least one application icon, such as application icon 28 for "Application 1", application icon 29 for "Application 2", application icon 30 for "Application 3", application icon 31 for "Application 4", and application icon 32 for "AI Assistant". The user can then tap the "AI Assistant" application icon 32 for input. As shown in Figure 6C, after the user taps the "AI Assistant" application icon 32, the phone can display a first interface, such as the "AI Assistant" interface 33. This "AI Assistant" interface 33 includes a fifth control, such as the "Screen Recognition" control 34. The user can then perform an input on the "Screen Recognition" control 34, such as a long press. As shown in Figure 6D, after the user long presses the "Screen Recognition" control 34, the phone can display a fifth control on the "AI Assistant" interface 33, such as the "Selection" control 35. Of course, the mobile phone can also display a "full-screen" control 36 in the "AI assistant" interface 33. The function of the "full-screen" control 36 is the same as that of the "screen recognition" control 23 in the above embodiment. This application embodiment will not be described again here.

[0112] Step 205: The electronic device receives the user's fourth input on the fifth control and the first page area of ​​the first page.

[0113] In this embodiment of the application, the fourth input is used to trigger the fifth control and select the page area where the object to be commented is located.

[0114] For example, the aforementioned fourth input includes, but is not limited to: touch input from the user via a finger or stylus to the display screen of the electronic device, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this embodiment of the invention does not impose limitations. The specific gestures in this application embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture; the click input in this application embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input.

[0115] For example, the fourth input mentioned above may include a first sub-input and a second sub-input. The first sub-input is the user's click input on the fifth control, and the second sub-input is the user's selection input on the first page area.

[0116] Step 206: The electronic device responds to the fourth input and determines the page content in the first page area as the first page content.

[0117] Step 102b: The electronic device generates the first text based on the content of the first page.

[0118] In some embodiments of this application, the electronic device may first take a screenshot of the first page, then extract a portion of the page area (i.e., the content of the first page) from the screenshot image, and then use OCR technology to recognize the content of the first page to obtain the aforementioned first text.

[0119] In some embodiments of this application, in response to the first sub-input, the electronic device can first cancel the display of the first interface to display the first page, and then determine the first page area according to the user's second sub-input in the first page area, and obtain the image of the first page area to obtain the content of the first page. Thus, the electronic device can use OCR technology to recognize the content of the first page to obtain the text (e.g., all text) in the first page area, and thus the electronic device can determine the all text as the first text.

[0120] For example, referring to Figure 6D and as shown in Figure 7A, the user can perform the first sub-input on the "selection" control 35, such as clicking. As shown in Figure 7B, after the user clicks on the "selection" control 35, the phone can first cancel the display of the "AI Assistant" interface 33, that is, display page 24, so that the user can perform the second sub-input, such as swiping input on page 24. As shown in Figure 7C, after the user performs swiping input, the phone can determine the first page area, such as page area 37, based on the input trajectory of the swiping input, and obtain an image of page area 37. The content of the first page is obtained, and then OCR technology is used to recognize the content of the first page to obtain the text in area 37 of the page, such as the text "Merchant 3" and the text "Long Men's Down Jacket 2024 Autumn Warm and Comfortable Cotton Jacket Duck Down Outdoor Puffer Jacket Ivory White XL". The mobile phone can then identify the text "Merchant 3" and the text "Long Men's Down Jacket 2024 Autumn Warm and Comfortable Cotton Jacket Duck Down Outdoor Puffer Jacket Ivory White XL" as the first text, namely "Merchant 3" 25 and "Long Men's Down Jacket 2024 Autumn Warm and Comfortable Cotton Jacket Duck Down Outdoor Puffer Jacket Ivory White XL" 26.

[0121] It should be noted that the area enclosed by the dashed box in Figure 7C is used to indicate page area 37, but in actual applications, this dashed box may not be displayed.

[0122] In some embodiments of this application, after obtaining the first text, the electronic device can directly generate the second text based on the first text through the aforementioned AI application and display the second text on the first page.

[0123] In some embodiments of this application, the electronic device may directly display the second text on the first page, or may display the first interface again on the first page and display the second text on the first interface.

[0124] For example, referring to Figure 7C, as shown in Figure 8, the mobile phone can display a second text in the "AI Assistant" interface 33, such as the comment text "The clothes from Merchant 3 are very good overall, with a casual style, good quality, and a great feel. They are worth buying."

[0125] Therefore, since the electronic device can display a fifth control, on the one hand, the user's fourth input to this fifth control and the first page area triggers the electronic device to determine the text in the first page area as the first text, eliminating the need for the user to input all the text in the first page area one by one. This simplifies the user's input process and reduces time consumption. On the other hand, the electronic device only determines the text in the first page area that the user needs as the first text, and not text that the user does not need. Therefore, it ensures that the electronic device can accurately display the second text that the user needs. Thus, while improving the convenience of posting comments on the electronic device, it also improves the accuracy of displaying the second text that the user needs.

[0126] The following example illustrates a specific scheme for electronic devices to generate second text.

[0127] In some embodiments of this application, referring to FIG1 and FIG9, before step 103 above, the text display method provided in the embodiments of this application may further include the following steps 207 and 208.

[0128] Step 207: The electronic device determines the first type information and the first summary text of the first text.

[0129] In some embodiments of this application, the aforementioned first type of information can be any of the following: "review" type information, "non-review" type information.

[0130] In some embodiments of this application, an electronic device can determine the first type information and the first summary text of the first text through the aforementioned AI-type application.

[0131] In some embodiments of this application, the electronic device can first generate a prompt text (e.g., the first prompt text in the embodiments below) based on the first text, and then input the prompt into the AI ​​model associated with the aforementioned AI application, so that the AI ​​model can determine the first type information and the first summary text of the first text based on the prompt text. In some examples, referring to Figure 9 and as shown in Figure 10, the above step 207 can be specifically implemented through the following steps 207a and 207b.

[0132] Step 207a: The electronic device generates the first prompt text based on the first text and the prompt text template.

[0133] In this embodiment of the application, the aforementioned first prompt text is used to instruct the first text to be classified and extracted.

[0134] In some embodiments of this application, the aforementioned prompt text template may be a template pre-set in an electronic device, a template obtained from other electronic devices, or a template determined based on user input.

[0135] In some embodiments of this application, the aforementioned prompt text template may also indicate text parameters for classification and summary extraction, which may include format, output content, etc.

[0136] In some embodiments of this application, the above-mentioned prompt text template includes at least one text and a blank text, wherein the at least one text is used to indicate classification and summary extraction, and the electronic device can replace the blank text with the first text to obtain the first prompt text.

[0137] For example, the above-mentioned prompt text template can specifically be:

[0138] "Now you are an expert in extracting and categorizing content from unstructured text. You can determine whether the text in the [screen content] belongs to the category of 'comments'. Please output the final [answer] according to the following requirements."

[0139] <Output Requirements>

[0140] 1. Output in JavaScript Object Notation (JSON) format, without any other content.

[0141] 2. When the screen content is of the "Review" type, the output should be: {"Type": "Review", "Content": "Brief Summary"};

[0142] [Screen Content] Output when it does not belong to the "Review" type: {"Type": "Other", "Content": "Brief Summary"}.

[0143] Now let's begin the practical exercise. Please strictly follow the above <output requirements> to refine and categorize the content of the [screen content], and output the final [answer].

[0144] [Screen Content]: Blank text;

[0145]

answer

[0146] Example 1, referring to Figure 3B, the electronic device can replace the blank text in the above prompt text template with the first text, namely "Merchant 1, overall rating is great, taste is great, service attitude is great, environment is okay", to generate the first prompt text.

[0147] Example 2: Referring to Figure 7C, the electronic device can replace the blank text in the above prompt text template with the first text, such as "Merchant 3's long men's down jacket 2024 autumn warm and comfortable cotton jacket duck down outdoor bread jacket ivory white XL" text, to generate the first prompt text.

[0148] Step 207b: The electronic device inputs the first prompt word text into the text processing model. The text processing model classifies and extracts the first text based on the first prompt word text to obtain the first type of information and the first summary text.

[0149] In some embodiments of this application, the text processing model described above can specifically be a model within a larger model. Of course, the text processing module described above can also be other models, and this application does not limit this.

[0150] In some embodiments of this application, the text processing model described above is an AI model associated with the aforementioned AI application. This text processing model can be deployed on a server or electronic device.

[0151] In the case where the text processing model is deployed on a server, the electronic device can send the first prompt text to the server through an AI application, so that the server can input the first prompt text into the text processing model and obtain the first type information and the first summary text output by the text processing model, and send the first type information and the first summary text to the electronic device, so that the electronic device can obtain the first type information and the first summary text.

[0152] When a text processing model is deployed on an electronic device, the electronic device can directly input the first prompt word text into the text processing model through an AI-type application to obtain the first type of information and the first summary text output by the text processing model.

[0153] Based on Example 1 above, after the electronic device inputs the first prompt text into the text processing model, the text processing model can output {"Type": "Review"; "Content": Merchant 1's overall evaluation of this store is good, including the taste of the dishes, service attitude and environment}.

[0154] Combining with Example 2 above, after the electronic device inputs the first prompt text into the text processing model, the text processing model can output {"Type": "Review"; "Content": A long men's down jacket of size XL from Merchant 3, 2024 Autumn Warm and Comfortable Cotton Coat, Duck Down Outdoor Ivory White Bread Jacket}.

[0155] Therefore, since the electronic device can generate first prompt text for classifying and summarizing the first text using the first text and the prompt text template without user input, the user's operations and time consumption in obtaining the first prompt text can be reduced. Furthermore, since the electronic device can input this first prompt text into a text processing model to obtain accurate first type information and first summary text, the accuracy of determining the first type information and first summary text can be improved. Thus, both the efficiency and accuracy of determining the first type information and first summary text can be improved.

[0156] Step 208: If the first type of information matches the preset type of information, the electronic device generates the second text based on the first summary text.

[0157] In some embodiments of this application, the aforementioned preset type information may specifically be "review" type information.

[0158] It should be noted that the above "matching" can be understood as: identical, or the similarity between the two is greater than or equal to a preset threshold.

[0159] In this embodiment of the application, if the first type information matches the preset type information, it can be considered that the first text obtained by the electronic device is text that can be used for commenting. Therefore, the electronic device can generate the second text based on the first summary text.

[0160] In some embodiments of this application, an electronic device can input the first summary text into an associated AI model through the aforementioned AI application, so as to generate the second text through the AI ​​model. The AI ​​model and the text processing model may be the same or different.

[0161] Thus, it can be seen that since the electronic device can first determine the first type information and the first summary text of the first text, and determine whether the first type information can be used for commenting by determining whether it matches the preset type information, the electronic device generates the second text based on the first summary text only when the first type information matches the preset type information, that is, when the first text is determined to be usable for commenting. Therefore, it can avoid the situation of generating comment text that users do not need based on text that cannot be used for commenting, thereby saving computing resources. Furthermore, since the electronic device can generate the second text based on the shorter first summary text, rather than generating the comment text based on the longer first text, the amount of computation in generating the second text can be reduced, thereby saving computing resources.

[0162] Of course, in order to ensure that the generated second text meets the user's needs, the electronic device can also instruct the user to input text parameters to constrain the second text output by the AI ​​model, thereby enabling the AI ​​model to output a second text that better suits the user's needs. In some examples, referring to Figure 9 and as shown in Figure 11, before "generating the second text based on the first summary text" in step 208 above, the text display method provided in this application embodiment may further include the following steps 301 to 303, and step 208 above can be specifically implemented through step 208a below.

[0163] Step 301: When the first type of information matches the preset type of information, the electronic device displays N first controls.

[0164] In this embodiment of the application, each of the above N first controls is used to determine a text parameter, where N is a positive integer.

[0165] In some embodiments of this application, the above-mentioned text parameters are used to indicate the requirements that the second text needs to meet.

[0166] In some embodiments of this application, the above text parameters may include at least one of the following: word count range, sentiment, format, etc.

[0167] In some embodiments of this application, the electronic device may display N first controls on the first interface described above.

[0168] Step 302: The electronic device receives the user's second input to N first controls.

[0169] In this embodiment of the application, M is a positive integer less than or equal to N.

[0170] In this embodiment of the application, the second input is used to input text parameters of user requirements.

[0171] For example, the aforementioned second input includes, but is not limited to: touch input from the user via a finger or stylus to the display screen of the electronic device, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this embodiment of the invention does not impose limitations. The specific gestures in this application embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture; the click input in this application embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input.

[0172] For example, the second input mentioned above is: the user's click input on N first controls.

[0173] Step 303: The electronic device responds to the second input and determines N text parameters corresponding to the second input.

[0174] In some embodiments of this application, the electronic device can determine a text parameter for each input parameter of each first control based on the second input, thereby determining N text parameters.

[0175] The following examples illustrate the specific methods for determining N text parameters in an electronic device.

[0176] In some embodiments of this application, the aforementioned N first controls include a second control used to determine a first text parameter, which is a range of character counts. The second control includes T input nodes, each corresponding to a character count, where T is a positive integer. Step 302 can be specifically implemented through step 302a below, and step 303 can be specifically implemented through step 303a below.

[0177] Step 302a: The electronic device receives the second input from the user to the first input node among the T input nodes.

[0178] In this embodiment of the application, the first input node corresponds to the first number of characters.

[0179] Step 302b: The electronic device responds to the second input and determines the first character range as the first text parameter.

[0180] In this embodiment of the application, a critical value of the first character count range is the first character count.

[0181] In some embodiments of this application, the electronic device can use a first number of characters as a threshold value and 0 as another threshold value to obtain a range of the first number of characters.

[0182] For example, referring to Figure 3B, as shown in Figure 12, when the first type information of the first text matches the preset type information, for example, when the first type information of the first text is "comment" type information, the mobile phone can display N first controls in the "AI Assistant" interface 22, such as second control 38 and third control 39. The second control 38 is used to determine the first text parameter, which is the word count range. The second control 38 includes T input nodes, such as: "50" input node 40, "100" input node 41, "150" input node 42, "300" input node 43, "400" input node 44 and "500" input node 45. The third control 39 is used to determine the second text parameter, which is the sentiment tendency. Thus, the user can make a second input on the first input node (e.g., "100" input node 41), such as by clicking to input, so that the mobile phone can determine the first word count range (0,100] as the word count range of the second text.

[0183] Thus, since the electronic device can accurately determine the word count range of the comment text (i.e., the second text) requested by the user based on the second input of the user to the first input node, without requiring the user to input the word count range, the user's operation can be simplified and the time consumption reduced during the process of the electronic device determining the word count range of the comment text requested by the user.

[0184] In some embodiments of this application, the aforementioned N first controls include a third control used to determine a second text parameter, which is a sentiment tendency. The third control includes Q input options, each corresponding to a sentiment tendency, where Q is a positive integer. Step 302 can be specifically implemented through step 302b below, and step 303 can be specifically implemented through step 303b below.

[0185] Step 302b: The electronic device receives the user's second input for the first input option among the Q input options.

[0186] In this embodiment of the application, the first input option corresponds to the first sentiment tendency.

[0187] In some embodiments of this application, the aforementioned Q emotional tendencies may include at least one of the following: positive emotional tendencies and negative emotional tendencies. Specifically, the positive emotional tendencies may include at least one of the following: happiness, praise, positive feedback, etc. The negative emotional tendencies may include at least one of the following: anger, belittling, negative feedback, etc.

[0188] In some embodiments of this application, the aforementioned first emotional tendency can be any of the following: positive emotional tendency or negative emotional tendency.

[0189] Step 303b: The electronic device responds to the second input and determines the first sentiment tendency as the second text parameter.

[0190] For example, referring to Figures 3B and 12, as shown in Figure 13, when the first type of information of the first text matches the preset type information, for example, when the first type of information of the first text is "comment" type information, the mobile phone can display N first controls, such as second control 38 and third control 39. The second control 38 is used to determine the first text parameter, which is the word count range. The third control 39 is used to determine the second text parameter, which is the sentiment tendency. The third control 39 includes Q input options, such as "generate negative review" input option 46 and "generate positive review" input option 47. The "generate negative review" input option 46 corresponds to a negative sentiment tendency, and the "generate positive review" input option 47 corresponds to a positive sentiment tendency. Thus, the user can make a second input on the first input option (such as "generate positive review" input option 47), for example, by clicking to input, so that the mobile phone can determine the positive sentiment tendency as the second text parameter.

[0191] Thus, since the electronic device can accurately determine the sentiment of the comment text (i.e., the second text) requested by the user based on the second input of the first input option, without requiring the user to input the sentiment, the user's operation can be simplified and the time consumption reduced in the process of the electronic device determining the sentiment of the comment text requested by the user.

[0192] Step 208a: The electronic device inputs the first summary text and N text parameters into the comment generation model, and generates the second text based on the first summary text and N text parameters through the comment generation model.

[0193] In some embodiments of this application, the comment generation model described above can be a model within a larger model. Of course, the text processing module described above can also be other models, and this application does not limit this.

[0194] In some embodiments of this application, the comment generation model described above is an AI model associated with the aforementioned AI application. This comment generation model can be deployed on a server or electronic device.

[0195] In the case where the comment generation model is deployed on a server, the electronic device can send a first summary text and N text parameters to the server through an AI application. The server can then input the first summary text and N text parameters into the comment generation model, obtain the second text output by the comment generation model, and send the second text to the electronic device, so that the electronic device can obtain the second text.

[0196] When the comment generation model is deployed on an electronic device, the electronic device can directly input the first summary text and N text parameters into the comment generation model through an AI-type application to obtain the second text output by the comment generation model.

[0197] In some embodiments of this application, the electronic device may display second text on the first interface described above.

[0198] For example, referring to Figures 12 and 13, as shown in Figure 14, the mobile phone can input the first summary text and N text parameters (such as the first word count range (0,100] and the first sentiment tendency (i.e., positive sentiment tendency)) into the comment generation model. Through the comment generation model, the object comment text is generated based on the first summary text, the first word count range (0,100], and the positive sentiment tendency, and the second text is displayed in the "AI Assistant" interface 22. For example, "Merchant 1 is a restaurant worth recommending. The dishes are authentic, the service is warm and thoughtful, and the dining environment is comfortable and pleasant. Both the taste and the service are impressive." Second text 48.

[0199] Thus, since the electronic device can also display N first controls for determining N text parameters, the electronic device can determine the N text parameters required by the user based on the user's second input to the N first controls, and input the first summary text and the N text parameters into the comment generation model. Therefore, a second text that better meets the user's needs can be obtained.

[0200] In some embodiments of this application, before step 208a above, the text display method provided in the embodiments of this application may further include steps 401 to 403 as described below.

[0201] Step 401: When the electronic device displays the third page, it acquires the training summary text and at least one training text parameter.

[0202] In some embodiments of this application, the aforementioned third page can be a page within any of the applications in an electronic device, used to comment on the goods or services of merchants within those applications. Specifically, the third page may include the goods or services of one merchant, or it may include the goods or services of at least two merchants.

[0203] The application can be any of the following: service application, shopping application, social application, etc.

[0204] It is understandable that there can be one or more of these third pages.

[0205] In some embodiments of this application, during the user's use of the electronic device, the electronic device can monitor in real time whether the currently displayed page is a third page, so that if a third page is detected, the electronic device can obtain the training summary text and at least one training text parameter.

[0206] In this embodiment of the application, the training summary text is generated from the page content of the comment object on the third page.

[0207] It should be noted that the description of the electronic device acquiring the training summary text can be found in the specific description of the electronic device acquiring the first summary text in the above embodiments, and will not be repeated here in the embodiments of this application.

[0208] In some embodiments of this application, the number of training summary texts can be one or more.

[0209] In some embodiments of this application, the above-mentioned training text parameters are used to indicate the requirements that the training comment text needs to meet.

[0210] The at least one training text parameter may include at least one of the following: word count range, sentiment tendency, format, etc.

[0211] In some embodiments of this application, a training prompt text template may be pre-set in the electronic device. The training prompt text template includes at least one training text parameter, so that the electronic device can obtain the training prompt text template to obtain at least one training text parameter.

[0212] In this training prompt text template, at least one training text parameter can be preset or determined based on the user's historical usage data. For example, if the user typically requests the output comment text to have a character range of (0, 100), the electronic device can set the character range of the requested output comment text in the training prompt text template to (0, 100).

[0213] For example, the training prompt text template mentioned above can specifically be:

[0214] "Now you are a senior review expert. Please provide your final [answer] according to the following requirements."

[0215] <Output Requirements>

[0216] 1. Carefully read the summary text on the product or merchant details page.

[0217] 2. Write a short review based on the user's selected word count range.

[0218] 3. Ensure that the review matches the user's specified "sentimental tendency": positive or negative.

[0219] 4. Reviews should include evaluations of the quality, performance, customer service experience, and value for money (if applicable).

[0220] 5. Ensure your review is both fair and objective, and reflects your insights and professional assessment as an expert.

[0221] Now let's begin the practical exercise. Please strictly follow the above <output requirements> to output the final [answer].

[0222] [Content Summary Text]: Blank text;

[0223] [Word Count Range for Evaluation]: [User-selected word count range];

[0224] [Sentimental Tendency]: [Positive / Negative];

[0225]

answer

[0226] Step 402: The electronic device inputs the training summary text and at least one training text parameter into the preset model, and generates training comment text based on the training summary text and at least one training text parameter through the preset model.

[0227] In some embodiments of this application, the electronic device can replace the blank text in the above-mentioned training prompt text template with training summary text to obtain training prompt text, and then input the training prompt text into a preset model to obtain the training comment text output by the preset model.

[0228] Step 403: The electronic device trains the preset model based on the training comment text and the predetermined comment text to obtain the comment generation model.

[0229] In some embodiments of this application, the predetermined comment text may be training comment text generated by other models based on the training summary text and at least one training text parameter, or it may be comment text entered by the user, or it may be popular comment text on the third page.

[0230] In some embodiments of this application, the electronic device may first calculate the target loss function of the training comment text and the predetermined comment text, and then train the preset model through the target loss function to obtain the comment generation model.

[0231] Thus, it can be seen that since electronic devices can also obtain training summary text and at least one training text parameter during the user's daily browsing of the third page, and train the preset model based on the training summary text and at least one training text parameter, a comment generation model that fits the user's habits and needs can be obtained. This can increase the probability of the comment generation model outputting comment text that fits the user's needs in subsequent use.

[0232] In some embodiments of this application, before step 403 above, the text display method provided in the embodiments of this application may further include the following steps 501 and 502.

[0233] Step 501: The electronic device identifies the most popular comment text with the most likes from the L comment texts on the third page.

[0234] In this embodiment of the application, each of the L comment texts corresponds to a number of likes, where L is a positive integer.

[0235] In some embodiments of this application, the electronic device can read the number of likes corresponding to each comment text on the third page to determine the number of likes corresponding to each comment text, thereby enabling the electronic device to accurately determine the most popular comment text with the most likes.

[0236] Step 502: The electronic device identifies the popular comment text as the intended comment text.

[0237] In this embodiment of the application, since popular comment text can be understood as the comment text with the most likes, that is, the comment text recognized by more users, that is, the comment text in demand by more users, after the electronic device determines the popular comment text as the predetermined comment text and uses the predetermined comment text to train the preset model, the resulting comment generation model can meet the needs of more users, that is, the comment text output by the comment generation model meets the needs of more users.

[0238] Thus, since electronic devices can identify popular comment texts on the third page as pre-defined comment texts used during the training of the preset model, the trained comment generation model can meet the needs of more users. Therefore, the probability of the comment generation model outputting comment texts that fit user needs can be increased.

[0239] Of course, since there may be situations where the first type of information does not match the preset type of information, the electronic device may not generate text based on the first summary text. Examples will be given below.

[0240] In some embodiments of this application, step 208 described above can also be replaced by step 209 described below.

[0241] Step 209: If the first type of information does not match the preset type of information, the electronic device displays the first summary text.

[0242] In this embodiment of the application, if the first type information does not match the preset type information, it can be assumed that the first description information obtained by the electronic device may be incorrect. Therefore, the electronic device can prompt the user that the first text obtained by the electronic device is incorrect by displaying the first summary text.

[0243] For example, referring to Figure 3B, as shown in Figure 15, the mobile phone can display the first summary text in the "AI Assistant" interface 22, such as "Page content description: Merchant 1, overall rating is great, taste is great, environment is okay, service is great" first summary text 49.

[0244] Thus, when the first type of information does not match the preset type of information, that is, when the first text obtained by the electronic device is incorrect, the electronic device can prompt the user that the first text obtained by the electronic device is incorrect by displaying the first summary text. Therefore, the user can quickly know that the first text obtained by the electronic device is incorrect and trigger the electronic device to obtain the correct text, that is, the text related to the object to be commented, without having to wait for a long time, thereby reducing the waiting time required before triggering the electronic device to obtain the correct text.

[0245] In some embodiments of this application, after the electronic device displays the second text, the user can input the second text to enable the electronic device to display a copy control and a forward control. The user can then input the copy control to enable the electronic device to copy the second text; or, the user can input the forward control to enable the electronic device to forward the second text to a contact requested by the user.

[0246] For example, as shown in Figure 16A, the phone displays a second text, such as "Merchant 1 is a highly recommended restaurant with authentic cuisine, warm and attentive service, and a comfortable and pleasant dining environment. Both the taste and service are impressive." (Text 50). The user can then input this text, for example, by long-pressing to input it. As shown in Figure 16B, after the user long-presses to input, the phone can display a copy control 51 and... The forwarding control 52 allows the user to input into the copy control 51, enabling the phone to copy the text 50: "Merchant 1 is a highly recommended restaurant. The food is authentic, the service is warm and attentive, and the dining environment is comfortable and pleasant. Both the taste and the service are impressive." Alternatively, the user can input into the forwarding control 52, allowing the phone to forward the text 50 to the desired contact.

[0247] This application provides a text display method. An electronic device can generate first text based on the content of the first page according to a user's first input on the first page, and display second text in combination with the first text. The second text is the comment text corresponding to the content of the first page. Since the user can trigger the electronic device to generate first text based on the content of the first page of the object to be commented on with a single input (i.e., the first input), and directly display the comment text corresponding to the content of the first page, that is, to display the comment text requested by the user for the object to be commented on, without the need for the user to input multiple times, the number of inputs required to display the comment text requested by the user on the first page can be reduced. This simplifies the user's operation in triggering the electronic device to publish the comment text requested by the user on the first page and reduces the time consumption, thereby improving the convenience of the electronic device to publish comment text.

[0248] In some embodiments of this application, referring to FIG1 and FIG17, after step 103 above, the text display method provided by the embodiments of this application may further include the following steps 104 to 106.

[0249] Step 104: The electronic device receives the user's input of the first image and the fourth text parameter as a fifth input.

[0250] In this embodiment of the application, the fifth input is used to input the image and text parameters required by the user.

[0251] For example, the fifth input mentioned above includes, but is not limited to: touch input by the user through a touch device such as a finger or stylus to the display screen of the electronic device, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and the embodiments of the present invention do not limit it. The specific gestures in the embodiments of this application can be any one of the following: single-click gesture, swipe gesture, drag gesture, pressure recognition gesture, long-press gesture, area change gesture, double-press gesture, and double-click gesture; the click input in the embodiments of this application can be single-click input, double-click input, or any number of clicks, and can also be long-press input or short-press input.

[0252] For example, the fifth input mentioned above may include a third sub-input and a fourth sub-input. The third sub-input is the user's selection input for the first image, and the third sub-input may include multiple sub-inputs. The fourth sub-input is the user's input of a fourth text parameter.

[0253] Step 105: The electronic device responds to the fifth input and generates the sixth text based on the first image, the fourth text parameter, and the second text.

[0254] For example, referring to Figure 14 and as shown in Figure 18A, the phone displays the text "Merchant 1 is a highly recommended restaurant. The dishes are authentic, the service is warm and attentive, and the dining environment is comfortable and pleasant. Both the taste and the service are impressive." on the "AI Assistant" interface 22. This allows the user to make a third sub-input. For example, the user can first make an input to the more controls 53 in the "AI Assistant" interface 22, such as by clicking to input. As shown in Figure 18B, after the user clicks to input, the phone can display the "Review Photo" control 54 in the "AI Assistant" interface 22, allowing the user to comment on the "Review Photo" control 54. Another input, such as a click, allows the phone to display multiple images, from which the user can select the first image. As shown in Figure 18C, the user can make a fourth sub-input, such as entering the text parameter 55 "requesting your review and succinct summary based on the uploaded image" in the "AI Assistant" interface 22. The phone can then generate a third text based on the first image, the text parameter 55 "requesting your review and succinct summary based on the uploaded image," and the text 48 "Merchant 1 is a highly recommended restaurant with authentic cuisine, warm and attentive service, and a comfortable dining environment. Both the taste and service are impressive."

[0255] In some embodiments of this application, step 105 can be specifically implemented by steps 105a and 105b as described below.

[0256] Step 105a: The electronic device responds to the fifth input by inputting the first image, the fourth text parameter, and the second text into the comment generation model, and generates the third text based on the first image, the fourth text parameter, and the second text through the comment generation model.

[0257] It should be noted that, regarding the description of how electronic devices generate third text based on the first image, the fourth text parameter, and the second text through the comment generation model, the specific description of how electronic devices generate second text based on the first summary text and N text parameters in the above embodiments can be referred to, and will not be repeated here in the embodiments of this application.

[0258] Thus, it can be seen that since electronic devices can generate third text based on the first image, the fourth text parameters, and the second text using a comment generation model, they can accurately generate third text that matches the user's needs.

[0259] Step 106: The electronic device displays the third text on the first page.

[0260] In some embodiments of this application, the electronic device may display third text in a blank area of ​​the first page, or the electronic device may display third text in the first interface described above.

[0261] Thus, since the electronic device can generate the third text based on the first image, the fourth text parameters, and the second text according to the user's fifth input, without having to regenerate the comment text, the amount of computation required to generate the third text can be reduced, thereby saving computing resources.

[0262] The text display method provided in this application can be executed by a text display device. This application uses a text display device executing the text display method as an example to illustrate the text display device provided in this application.

[0263] Figure 19 shows a schematic diagram of the structure of a text display device provided in an embodiment of this application. As shown in Figure 19, the text display device 60 provided in an embodiment of this application may include: a receiving module 61, a processing module 62, and a display module 63.

[0264] The receiving module 61 is used to receive the user's first input on the first page. The processing module 62 is used to generate first text based on the content of the first page in response to the first input received by the receiving module 61. The display module 63 is used to display second text, which is the comment text corresponding to the content of the first page, in combination with the first text generated by the processing module 62.

[0265] This application provides a text display device. Since a user can trigger the text display device to generate first text based on the content of the first page of the object to be commented on in the first page with a single input (i.e., the first input), and directly display the comment text corresponding to the content of the first page in combination with the first text, that is, display the comment text requested by the user for the object to be commented on, without the need for the user to input multiple times, the number of inputs required to display the comment text requested by the user in the first page can be reduced. This simplifies the user's operation in triggering the text display device to publish the comment text requested by the user in the first page and reduces the time consumption. Thus, the convenience of the text display device to publish comment text can be improved.

[0266] In one possible implementation, the processing module 62 is further configured to determine the first type information and the first summary text of the first text before the display module 63 displays the second text in conjunction with the first text; and generate the second text based on the first summary text if the first type information matches the preset type information.

[0267] In one possible implementation, the processing module 62 is specifically used to generate a first prompt text based on the first text and the prompt text template. The first prompt text is used to indicate the classification and summary extraction of the first text. The first prompt text is input into a text processing model, and the text processing model classifies and extracts the first text based on the first prompt text to obtain first type information and first summary text.

[0268] In one possible implementation, the display module 63 is further configured to display N first controls before the processing module 62 generates the second text based on the first summary text. Each first control is used to determine a text parameter, where N is a positive integer. The receiving module 61 is further configured to receive a second input from the user to the N first controls displayed by the display module 63. The processing module 62 is further configured to determine the N text parameters corresponding to the second input in response to the second input received by the receiving module 61. Specifically, the processing module 62 is configured to input the first summary text and the N text parameters into the comment generation model, and generate the second text based on the first summary text and the N text parameters through the comment generation model.

[0269] In one possible implementation, the aforementioned N first controls include a second control used to determine a first text parameter, which is a range of character counts. The second control includes T input nodes, each corresponding to a character count, where T is a positive integer. The receiving module 61 is specifically used to receive a second input from the user to a first input node among the T input nodes, where the first input node corresponds to the first character count. The processing module 62 is specifically used to determine the first character count range as the first text parameter, where a threshold value of the first character count range is the first character count.

[0270] In one possible implementation, the aforementioned N first controls include a third control used to determine a second text parameter, which is a sentiment tendency. This third control includes Q input options, each corresponding to a sentiment tendency, where Q is a positive integer. The receiving module 61 is specifically used to receive a second input from the user for a first input option among the Q input options, where the first input option corresponds to a first sentiment tendency. The processing module 62 is specifically used to determine the first sentiment tendency as the second text parameter.

[0271] In one possible implementation, the processing module 62 is further configured to, before inputting the first summary text and N text parameters into the comment generation model, obtain training summary text and at least one training text parameter while displaying the third page, the training summary text being generated from the page content in the third page; input the training summary text and at least one training text parameter into a preset model, and generate training comment text by the preset model based on the training summary text and at least one training text parameter; and train the preset model based on the training comment text and the predetermined comment text to obtain the comment generation model.

[0272] In one possible implementation, the processing module 62 is further configured to, before training the preset model based on the training comment text and the predetermined comment text to obtain the comment generation model, determine the popular comment text with the most likes from the L comment texts on the comment page, where each comment text corresponds to one like count and L is a positive integer; and determine the popular comment text as the predetermined comment text.

[0273] In one possible implementation, the display module 63 is further configured to display the first summary text when the first type information does not match the preset type information.

[0274] In one possible implementation, the display module 63 is further configured to display a fourth control before the processing module 62 generates the first text based on the first page content in the first page. The receiving module 61 is further configured to receive a third input from the user to the fourth control displayed by the display module 63. The processing module 62 is further configured to, in response to the third input received by the receiving module 61, determine all page content in the first page as the first page content.

[0275] In one possible implementation, the display module 63 is further configured to display a fifth control before the processing module 62 generates the first text based on the first page content in the first page. The receiving module 61 is further configured to receive a fourth input from the user regarding the fifth control displayed by the display module 63 and the first page area of ​​the first page. The processing module 62 is further configured to, in response to the fourth input received by the receiving module 61, determine the page content in the first page area as the first page content.

[0276] In one possible implementation, the receiving module 61 is further configured to receive a fifth input from the user, consisting of the first image and the fourth text parameter, after the display module 63 displays the second text in conjunction with the first text. The processing module 62 is further configured to generate a third text based on the first image, the fourth text parameter, and the second text in response to the fifth input received by the receiving module 61. The display module 63 is further configured to display the third text generated by the processing module 62 on the first page.

[0277] In one possible implementation, the aforementioned processing module 62 is specifically used to input the first image, the fourth text parameter, and the second text into the comment generation model, and generate the third text based on the first image, the fourth text parameter, and the second text through the comment generation model.

[0278] The text display device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.

[0279] The text display device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0280] The text display device provided in this application embodiment can implement the various processes implemented in the method embodiments of Figures 1 to 18C. To avoid repetition, these processes will not be described again here.

[0281] In some embodiments of this application, as shown in FIG20, this application also provides an electronic device 70, including a processor 71 and a memory 72. The memory 72 stores a program or instructions that can be executed on the processor 71. When the program or instructions are executed by the processor 71, they implement the various process steps of the above-described text display method embodiments and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0282] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.

[0283] Figure 21 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of this application.

[0284] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.

[0285] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for powering various components. The power supply can be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in Figure 21 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0286] The user input unit 107 is used to receive the user's first input on the first page.

[0287] Processor 110 is configured to generate first text in response to a first input, based on the content of the first page in the first page.

[0288] Display unit 106 displays the second text in conjunction with the first text.

[0289] This application provides an electronic device that allows a user to trigger the device to generate first text based on the content of the first page containing the object to be commented on, and then directly display the comment text corresponding to the content of the first page, i.e., display the comment text requested by the user for the object to be commented on, without requiring multiple inputs from the user. This reduces the number of inputs required to display the requested comment text on the first page, thereby simplifying the user's operation in triggering the electronic device to publish the requested comment text on the first page and reducing time consumption. Thus, the convenience of publishing comment text on the electronic device can be improved.

[0290] In some embodiments of this application, the processor 110 is configured to determine first type information and first summary text of the first text before displaying the second text in conjunction with the first text; and generate the second text based on the first summary text if the first type information matches preset type information.

[0291] In some embodiments of this application, the processor 110 is specifically configured to generate a first prompt text based on a first text and a prompt text template, the first prompt text being used to instruct the first text to be classified and extracted; and input the first prompt text into a text processing model, through which the text processing model classifies and extracts a summary of the first text based on the first prompt text to obtain first type information and first summary text.

[0292] In some embodiments of this application, the display unit 106 is further configured to display N first controls before the processor 110 generates second text based on the first summary text, each control being used to determine a text parameter, where N is a positive integer.

[0293] The user input unit 107 is also used to receive second input from the user to N first controls.

[0294] The processor 110 is also configured to determine N text parameters corresponding to the second input in response to the second input.

[0295] The processor 110 is specifically used to input the first summary text and N text parameters into the comment generation model, and generate the second text based on the first summary text and N text parameters through the comment generation model.

[0296] In some embodiments of this application, the aforementioned N first controls include a second control used to determine a first text parameter, which is a range of word counts. The second control includes T input nodes, each corresponding to a word count, where T is a positive integer.

[0297] User input unit 107 is specifically used to receive the second input from the user to the first input node among T input nodes, where the first input node corresponds to the first number of characters.

[0298] The processor 110 is specifically configured to determine a first character count range as a first text parameter, wherein a threshold value of the first character count range is the first character count.

[0299] In some embodiments of this application, the aforementioned N first controls include a third control used to determine a second text parameter, which is a sentiment tendency. The third control includes Q input options, each corresponding to a sentiment tendency, where Q is a positive integer.

[0300] User input unit 107 is specifically used to receive a second input from a user on a first input option among Q input options, the first input option corresponding to a first sentiment tendency.

[0301] Processor 110 is specifically used to determine the first sentiment tendency as the second text parameter.

[0302] In some embodiments of this application, the processor 110 is further configured to, before inputting the first summary text and N text parameters into the comment generation model, obtain training summary text and at least one training text parameter while displaying a third page, the training summary text being generated from the page content in the third page; input the training summary text and at least one training text parameter into a preset model, generate training comment text through the preset model based on the training summary text and at least one training text parameter; and train the preset model based on the training comment text and a predetermined comment text to obtain a comment generation model.

[0303] In some embodiments of this application, the processor 110 is further configured to, before training a preset model based on training comment texts and predetermined comment texts to obtain a comment generation model, determine the most popular comment text with the most likes from L comment texts on the comment page, where each comment text corresponds to one like count and L is a positive integer; and determine the popular comment text as the predetermined comment text.

[0304] In some embodiments of this application, the display unit 106 is further configured to display a first summary text when the first type information does not match the preset type information.

[0305] In some embodiments of this application, the display unit 106 is further configured to display a fourth control before displaying the second text in conjunction with the first text.

[0306] The user input unit 107 is also used to receive third input from the user to the fourth control.

[0307] The processor 110 is also configured to, in response to a third input, determine all page content in the first page as the content of the first page.

[0308] In some embodiments of this application, the display unit 106 is further configured to display a fifth control before displaying the second text in conjunction with the first text.

[0309] User input unit 107 is also used to receive fourth input from the user on the fifth control and the first page area of ​​the first page.

[0310] The processor 110 is also configured to, in response to the fourth input, determine the page content in the first page area as the first page content.

[0311] In some embodiments of this application, the user input unit 107 is further configured to receive a fifth input from the user, consisting of a first image and a fourth text parameter, after the display unit 106 has displayed the second text in conjunction with the first text.

[0312] The processor 110 is also configured to generate third text in response to a fifth input, based on the first image, the fourth text parameters, and the second text.

[0313] The display unit 106 is also used to display third text on the first page.

[0314] In some embodiments of this application, the processor 110 is specifically used to input the first image, the fourth text parameter, and the second text into the comment generation model, and generate the third text based on the first image, the fourth text parameter, and the second text through the comment generation model.

[0315] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0316] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0317] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.

[0318] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described text display method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0319] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0320] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described text display method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0321] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0322] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described text display method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0323] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0324] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0325] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A text display method, characterized in that, include: Receive the user's first input on the first page; In response to the first input, generate first text based on the content of the first page in the first page; The second text is displayed in conjunction with the first text, and the second text is the comment text corresponding to the content of the first page; Before displaying the second text in conjunction with the first text, the method further includes: determining first type information and first summary text of the first text; generating the second text based on the first summary text when the first type information matches preset type information; before generating the second text based on the first summary text, the method further includes: displaying N first controls, each first control being used to determine a text parameter, where N is a positive integer; wherein the text parameter includes at least one of the following: word count range, format; receiving a second input from the user to the N first controls; and determining N text parameters corresponding to the second input in response to the second input; generating the second text based on the first summary text includes: inputting the first summary text and the N text parameters into a comment generation model, and generating the second text based on the first summary text and the N text parameters through the comment generation model.

2. The method according to claim 1, characterized in that, The step of determining the first type information and the first summary text of the first text includes: generating a first prompt text based on the first text and the prompt text template, wherein the first prompt text is used to indicate the classification and summary extraction of the first text; inputting the first prompt text into a text processing model, and through the text processing model, classifying and extracting the first text according to the first prompt text to obtain the first type information and the first summary text.

3. The method according to claim 1, characterized in that, The N first controls include second controls, which are used to determine a first text parameter, where the first text parameter is a range of word counts. The second control includes T input nodes, each of which corresponds to a word count, where T is a positive integer. Receiving the user's second input to the N first controls includes: receiving the user's second input to a first input node among the T input nodes, where the first input node corresponds to a first number of characters; determining the N text parameters corresponding to the second input includes: determining a first number of characters range as the first text parameter, where a threshold value of the first number of characters range is the first number of characters.

4. The method according to claim 1, characterized in that, The N first controls include a third control, which is used to determine a second text parameter, the second text parameter being a sentiment tendency. The third control includes Q input options, each input option corresponding to a sentiment tendency, where Q is a positive integer. Receiving the user's second input to the N first controls includes: receiving the user's second input to a first input option among the Q input options, where the first input option corresponds to a first sentiment tendency; determining the N text parameters corresponding to the input parameters of the second input includes: determining the first sentiment tendency as the second text parameter.

5. The method according to claim 1, characterized in that, The method further includes: displaying the first summary text when the first type information does not match the preset type information.

6. The method according to claim 1, characterized in that, Before generating the first text based on the first page content in the first page, the method further includes: displaying a fifth control; receiving a fourth input from the user on the fifth control and the first page area of ​​the first page; and, in response to the fourth input, determining the page content in the first page area as the first page content.

7. The method according to claim 1, characterized in that, After displaying the second text in conjunction with the first text, the method further includes: receiving a fifth input from a user, consisting of a first image and a fourth text parameter; generating a third text based on the first image, the fourth text parameter, and the second text in response to the fifth input; and displaying the third text on the first page.

8. A text display device, characterized in that, The text display device includes: a receiving module, a processing module, and a display module; the receiving module is used to receive a first input from a user on a first page; the processing module is used to generate first text based on the content of the first page in response to the first input received by the receiving module; the display module is used to display second text in combination with the first text generated by the processing module, wherein the second text is a comment text corresponding to the content of the first page; the processing module is further used to determine a first type information and a first summary text of the first text before the display module displays the second text in combination with the first text; and generate the second text based on the first summary text if the first type information matches preset type information; The display module is further configured to display N first controls before the processing module generates the second text based on the first summary text, each first control being used to determine a text parameter, where N is a positive integer; wherein the text parameter includes at least one of the following: word count range, format; the receiving module is further configured to receive a second input from the user to the N first controls displayed by the display module; the processing module is further configured to determine N text parameters corresponding to the second input in response to the second input received by the receiving module; specifically, the processing module is configured to input the first summary text and the N text parameters into a comment generation model, and generate the second text based on the first summary text and the N text parameters through the comment generation model.

9. The apparatus according to claim 8, characterized in that, The processing module is specifically used to generate a first prompt text based on the first text and the prompt text template, wherein the first prompt text is used to indicate the classification and summary extraction of the first text; the first prompt text is input into a text processing model, and the first text is classified and summarized according to the first prompt text through the text processing model to obtain the first type information and the first summary text.

10. The apparatus according to claim 8, characterized in that, The N first controls include a second control, which is used to determine a first text parameter, the first text parameter being a range of character counts. The second control includes T input nodes, each input node corresponding to a character count, where T is a positive integer. The receiving module is specifically used to receive the second input from the user to a first input node among the T input nodes, the first input node corresponding to a first character count. The processing module is specifically used to determine the first character count range as the first text parameter, where a threshold value of the first character count range is the first character count.

11. The apparatus according to claim 8, characterized in that, The N first controls include a third control, which is used to determine a second text parameter, the second text parameter being a sentiment tendency. The third control includes Q input options, each input option corresponding to a sentiment tendency, where Q is a positive integer. The receiving module is specifically used to receive the user's second input for the first input option among the Q input options, the first input option corresponding to the first sentiment tendency. The processing module is specifically used to determine the first sentiment tendency as the second text parameter.

12. The apparatus according to claim 8, characterized in that, The display module is further configured to display the first summary text when the first type information does not match the preset type information.

13. The apparatus according to claim 8, characterized in that, The display module is further configured to display a fifth control before the processing module generates the first text based on the first page content in the first page; the receiving module is further configured to receive a fourth input from the user to the fifth control displayed by the display module and the first page area of ​​the first page; the processing module is further configured to, in response to the fourth input received by the receiving module, determine the page content in the first page area as the first page content.

14. The apparatus according to claim 8, characterized in that, The receiving module is further configured to receive a fifth input from the user, consisting of a first image and a fourth text parameter, after the display module displays the second text in conjunction with the first text; the processing module is further configured to generate a third text based on the first image, the fourth text parameter, and the second text in response to the fifth input received by the receiving module; the display module is further configured to display the third text generated by the processing module on the first page.

15. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the text display method as described in any one of claims 1 to 7.

16. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the text display method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Content processing method and related equipment

    CN114691001A

  • Text generation method, device and equipment and readable storage medium

    CN117311866A

  • User evaluation information processing method of commodity object and electronic equipment

    CN117391786A