Resource processing method and device, equipment and storage medium
By responding to preset trigger operations on the text reading page, the problem of recommending media resources related to text content is solved in the text reading scenario that affects the reading experience, and a better reading experience and immersion is achieved.
Patent Information
- Application Number
- CN202411612682.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-03-07
AI Technical Summary
In text reading scenarios, displaying recommended media resources in fixed locations can easily affect readers' reading experience of text content, resulting in poor reading experience.
Display the text content of the target text resource on the text reading page, and in response to the preset trigger operation, display the recommended media resources related to the text content at the display position corresponding to the target text fragment. The recommended media resources contain object information of the target virtual image and recommended object. The virtual image and recommended object are generated through role and object description information in the text content.
By displaying relevant recommended media resources in the corresponding display locations of text clips, the impact on readers' reading experience is reduced and the immersion and experience quality of reading is improved.
Smart Images

Figure CN119576455A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing, and in particular to a resource processing method, device, equipment and storage medium. Background Art
[0002] At present, in the process of displaying text content, reading applications can also display recommended media resources, where recommended media resources are used to recommend certain items, services, etc. to readers. In a common implementation, recommended media resources are displayed at a fixed position at the bottom of the reading page. In fact, displaying recommended media resources in the above reading scenario is likely to affect readers' reading of text content, resulting in a poor reading experience for readers.
[0003] Therefore, how to display recommended media resources in text reading scenarios and reduce the impact on readers' reading experience is a technical problem that urgently needs to be solved. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a resource processing method, apparatus, device and storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a resource processing method, the method comprising:
[0006] Displaying the text content of the target text resource on the text reading page; wherein the target text resource includes at least one text segment;
[0007] In response to a preset trigger operation for a target text segment in the target text resource, a recommended media resource corresponding to the target text segment is displayed at a target display position corresponding to the target text segment; wherein the recommended media resource displays object information of a target virtual image and at least one recommended object, the target virtual image is generated based on character description information extracted from the text content of the target text resource, and the recommended object is determined based on object description information or scene description information extracted from the text content of the target text segment.
[0008] In an optional implementation, the recommended media resource also displays recommendation information, the recommendation information includes voice recommendation information and / or text recommendation information, and the recommendation information is generated based on the role description information and the object description information.
[0009] In an optional implementation manner, the method further includes:
[0010] In response to a first trigger operation on a target recommended object displayed in the recommended media resource, an object interaction page corresponding to the target recommended object is displayed; wherein the object interaction page is used to trigger a target interaction operation on the target recommended object.
[0011] In an optional implementation manner, the method further includes:
[0012] In response to a second trigger operation on a target recommended object displayed in the recommended media resource, a conversation page corresponding to the target recommended object is displayed; wherein the conversation page is used to display object detail information of the target recommended object in a question-and-answer manner.
[0013] In an optional implementation, in response to a preset trigger operation on a target text segment in the target text resource, displaying a recommended media resource corresponding to the target text segment at a target display position corresponding to the target text segment includes:
[0014] In response to a page switching operation on a target text segment in the target text resource, a recommended media resource corresponding to the target text segment is displayed in the form of a resource card.
[0015] In an optional implementation, in response to a preset trigger operation on a target text segment in the target text resource, displaying a recommended media resource corresponding to the target text segment at a target display position corresponding to the target text segment includes:
[0016] In response to a display trigger operation for a target text segment in the target text resource, the text content of the target text segment is displayed on the text reading page, and the recommended media resources corresponding to the target text segment are displayed in a target display area corresponding to the target text segment on the text reading page.
[0017] In an optional implementation, the recommended object is determined by performing feature matching between the object description information or the scene description information and an object to be recommended in a target database, wherein the target database stores object data corresponding to a plurality of objects to be recommended, and the object data is used to generate recommended media resources corresponding to the object to be recommended.
[0018] In an optional implementation, the character description information corresponding to the target virtual image in the recommended media resource and the object description information or scene description information corresponding to the at least one recommended object have a preset corresponding relationship in the text content of the target text resource.
[0019] In an optional implementation manner, before displaying the text content of the target text resource on the text reading page, the method further includes:
[0020] In response to a reading operation on a target text resource, the text content of the target text resource and a set of recommended media resources corresponding to the target text resource are obtained; wherein the set of recommended media resources includes recommended media resources corresponding to text segments in the target text resource.
[0021] In a second aspect, the embodiment of the present disclosure further provides a resource processing method, the method comprising:
[0022] Acquire a target text resource; wherein the target text resource includes at least one text segment;
[0023] Obtaining role description information, object description information and scene description information by parsing the text content of the target text resource;
[0024] generating at least one avatar based on the character description information, and determining at least one recommended object based on the object description information or the scene description information;
[0025] Based on the at least one recommendation object and the at least one virtual image, a recommended media resource set corresponding to the target text resource is generated; wherein the recommended media resources in the recommended media resource set are used to be displayed on the text reading page of the target text resource.
[0026] In an optional implementation, the determining at least one recommended object based on the object description information or the scene description information includes:
[0027] Using the object description information or the scene description information to perform feature matching with the objects to be recommended in the target database, at least one recommended object is determined; wherein the target database stores object data corresponding to a plurality of objects to be recommended respectively;
[0028] Accordingly, generating a set of recommended media resources corresponding to the target text resource based on the at least one recommended object and the at least one virtual image includes:
[0029] Based on the object data corresponding to the target recommended object among the at least one recommended object and the target virtual image among the at least one virtual image, a recommended media resource corresponding to the target recommended object is generated.
[0030] In an optional implementation, generating a recommended media resource corresponding to the target recommended object based on the object data corresponding to the target recommended object among the at least one recommended object and the target virtual image among the at least one virtual image includes:
[0031] Generate recommendation information based on a target virtual image among the at least one virtual image and a target recommendation object among the at least one recommendation object; wherein the recommendation information includes voice recommendation information and / or text recommendation information;
[0032] Based on the recommendation information, the target virtual image and the object data corresponding to the target recommendation object, a recommended media resource corresponding to the target recommendation object is generated.
[0033] In an optional implementation manner, before generating the recommended media resource corresponding to the target recommended object based on the object data corresponding to the target recommended object among the at least one recommended object and the target avatar among the at least one avatar, the method further includes:
[0034] By parsing the text content of the target text resource, an association relationship between the object description information or the scene description information and the role description information is obtained;
[0035] Accordingly, generating the recommended media resource corresponding to the target recommended object based on the object data corresponding to the target recommended object among the at least one recommended object and the target virtual image among the at least one virtual image includes:
[0036] Determining, from the at least one virtual image, a target virtual image corresponding to a target recommended object among the at least one recommended object based on an association relationship between the object description information or the scene description information and the role description information;
[0037] Based on the object data corresponding to the target recommendation object and the target virtual image, a recommended media resource corresponding to the target recommendation object is generated.
[0038] In a third aspect, the present disclosure further provides a resource processing device, the device comprising:
[0039] A first display module, used to display the text content of the target text resource on the text reading page; wherein the target text resource includes at least one text segment;
[0040] A second display module is used to display the recommended media resource corresponding to the target text segment at the target display position corresponding to the target text segment in response to a preset trigger operation for the target text segment in the target text resource; wherein the recommended media resource displays object information of a target virtual image and at least one recommended object, the target virtual image is generated based on role description information extracted from the text content of the target text resource, and the recommended object is determined based on object description information or scene description information extracted from the text content of the target text segment.
[0041] In a fourth aspect, the present disclosure further provides a resource processing device, the device comprising:
[0042] An acquisition module, used to acquire a target text resource; wherein the target text resource includes at least one text segment;
[0043] A first parsing module, configured to parse the text content of the target text resource to obtain role description information, object description information and scene description information;
[0044] a determination module, configured to generate at least one avatar based on the character description information, and to determine at least one recommended object based on the object description information or the scene description information;
[0045] A generation module is used to generate a recommended media resource set corresponding to the target text resource based on the at least one recommendation object and the at least one virtual image; wherein the recommended media resources in the recommended media resource set are used to be displayed on the text reading page of the target text resource.
[0046] In a fifth aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement a resource processing method as provided in an embodiment of the present disclosure.
[0047] In a sixth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the resource processing method provided by the embodiment of the present disclosure.
[0048] In a seventh aspect, the present disclosure provides a computer program product, wherein the computer program product comprises a computer program / instructions, and the computer program / instructions implement the above-mentioned method when executed by a processor.
[0049] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0050] In the resource processing method provided by the embodiment of the present disclosure, first, the text content of the target text resource is displayed on a text reading page, wherein the target text resource includes at least one text segment, and then, in response to a preset trigger operation for the target text segment in the target text resource, a recommended media resource corresponding to the target text segment is displayed at a target display position corresponding to the target text segment, wherein the recommended media resource displays object information of a target virtual image and at least one recommended object, wherein the target virtual image is generated based on role description information extracted from the text content of the target text resource, and the recommended object is determined based on object description information or scene description information extracted from the text content of the target text segment.
[0051] In the disclosed embodiment, the recommended media resources displayed in the reading scene of the target text segment are related to the text content of the target text segment. Specifically, the recommended media resources display recommended objects related to the text content of the target text segment and target virtual images related to the characters in the target text resource. The disclosed embodiment can reduce the impact on the reader's reading experience by displaying the recommended media resources related to the target text segment at the target display position corresponding to the target text segment. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0053] Figure 1 A schematic diagram of a resource processing method provided by an embodiment of the present disclosure;
[0054] Figure 2 A schematic diagram of a text reading page provided by an embodiment of the present disclosure;
[0055] Figure 3 A schematic diagram of another text reading page provided by an embodiment of the present disclosure;
[0056] Figure 4 A schematic diagram of another text reading page provided by an embodiment of the present disclosure;
[0057] Figure 5 A schematic diagram of another text reading page provided by an embodiment of the present disclosure;
[0058] Figure 6 A schematic diagram of another resource processing method provided by an embodiment of the present disclosure;
[0059] Figure 7A schematic diagram of the structure of a resource processing device provided in an embodiment of the present disclosure;
[0060] Figure 8 A schematic diagram of the structure of a resource processing device provided in an embodiment of the present disclosure;
[0061] Fig. 9 A schematic diagram of the structure of a resource processing device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0062] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0063] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0064] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0065] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0066] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0067] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0068] In order to reduce the impact of recommended media resources displayed in a text reading scenario on the reader's reading experience, an embodiment of the present disclosure provides a resource processing method, specifically, displaying the text content of a target text resource on a text reading page, wherein the target text resource includes at least one text segment, and in response to a preset trigger operation for a target text segment in the target text resource, displaying the recommended media resource corresponding to the target text segment at a target display position corresponding to the target text segment, wherein the recommended media resource displays object information of a target virtual image and at least one recommended object, wherein the target virtual image is generated based on role description information extracted from the text content of the target text resource, and the recommended object is determined based on object description information or scene description information extracted from the text content of the target text segment.
[0069] In the disclosed embodiment, the recommended media resources displayed in the reading scene of the target text segment are related to the text content of the target text segment. Specifically, the recommended media resources display recommended objects related to the text content of the target text segment and target virtual images related to the characters in the target text resource. The disclosed embodiment can reduce the impact on the reader's reading experience by displaying the recommended media resources related to the target text segment at the target display position corresponding to the target text segment.
[0070] Based on this, an embodiment of the present disclosure provides a resource processing method, which is introduced below in conjunction with a specific embodiment. Figure 1 The present invention provides a flowchart of a resource processing method provided by an embodiment of the present invention. The method is specifically applied to a client. The method can be executed by a resource processing device, wherein the device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 1 As shown, the method includes:
[0071] S101: Displaying text content of a target text resource on a text reading page; wherein the target text resource includes at least one text segment.
[0072] The text reading page in the embodiment of the present disclosure is used to display text content. For example, the text reading page can be a text content display page of a certain reading application.
[0073] In the disclosed embodiment, the text content of the target text resource is displayed on the text reading page. The target text resource can be any text resource, including content presented in the form of text, such as novels, articles, newspapers, academic papers, etc.
[0074] The text content of the target text resource displayed on the text reading page may include text content of multiple text fragments. The text fragment may be a part of the text content of the target text resource, and the part of the text content may be a chapter, a paragraph, a sentence, etc.
[0075] like Figure 2 FIG. 1 is a schematic diagram of a text reading page provided by an embodiment of the present disclosure. The text reading page displays the text content of the target text resource.
[0076] In order to display the text content of the target text resource on the text reading page, the embodiment of the present disclosure also needs to trigger a reading operation for the target text resource from at least one text resource.
[0077] In an optional implementation, when a reading operation for a target text resource is received, the text content of the target text resource is obtained from the server. After the text content of the target text resource is obtained, the text content of the target text resource is displayed on a text reading page for readers to read.
[0078] S102: In response to a preset triggering operation for a target text segment in the target text resource, display a recommended media resource corresponding to the target text segment at a target display position corresponding to the target text segment.
[0079] Among them, the recommended media resource displays object information of a target virtual image and at least one recommended object, the target virtual image is generated based on character description information extracted from the text content of the target text resource, and the recommended object is determined based on object description information or scene description information extracted from the text content of the target text fragment.
[0080] In the disclosed embodiment, the target text segment may be a text segment with recommended media resources in at least one text segment displayed on the text reading page. During the display of the text content in the target text resource, the user may trigger the adjustment of the display progress of the text content in the target text resource by means of a scroll bar or page turning. During the actual reading process, during the display of the text content of the target text segment in the target text resource, the display of the recommended media resources corresponding to the target text segment may be triggered.
[0081] In an optional implementation, the preset trigger operation for the target text segment in the target text resource may include a page switching operation for the target text segment, such as a page turning operation. Specifically, in the process of displaying the text content of the target text segment on the text reading page, when a page switching operation for the target text segment in the target text resource is received, the recommended media resource corresponding to the target text segment is displayed on the text reading page. The recommended media resource can be displayed on the text reading page in the form of a resource card. Specifically, the recommended media resource corresponding to the target text segment can be displayed on the next page of the page where the text content of the target text segment is located.
[0082] As mentioned above Figure 2 The text reading page shown in the figure displays the text content of the target text resource. If it is detected that the text content displayed on the text reading page contains a target text segment, the target text segment is as follows: Figure 2 In the text content 201, when a page switching operation for a target text segment is received, the recommended media resources of the target text segment are displayed in the form of resource cards on the text reading page.
[0083] In another optional implementation, the preset trigger operation for the target text segment in the target text resource may include a display trigger operation for the target text segment. Specifically, in the process of displaying the text content of the target text resource on the text reading page, if a display trigger operation for the target text segment in the target text resource is received, that is, the display progress of the text content reaches the target text segment, then while displaying the text content of the target text segment on the text reading page, the recommended media resources corresponding to the target text segment are displayed in the target display area corresponding to the target text segment on the text reading page. The target display area may be a certain position area after the display position of the target text segment, such as a position area after the chapter where the target text segment is located.
[0084] The recommended media resource has a corresponding relationship with the target text segment, and the recommended media resource is used to display the recommended object and the target virtual image related to the target text segment. The recommended media resource displays at least one recommended object, and specifically, the recommended object may include a commodity object, such as a physical commodity and a virtual commodity, wherein the physical commodity is such as clothes, food, etc., and the virtual commodity is such as various services, etc.
[0085] To facilitate immersive reading for users and reduce the impact of recommended media resources displayed in reading scenarios on readers' reading experience, the recommended objects displayed by the recommended media resources in the embodiments of the present disclosure can be determined based on object description information or scene description information extracted from the text content of the target text segment, that is, the recommended objects have a high correlation with the object description information or scene description information extracted from the text content of the target text segment.
[0086] The object description information may refer to information describing the characteristics of the object in the text content of the target text segment, and the object description information may be used to describe the characteristics of each dimension of the object. For example, the object description information may be description information about a certain piece of clothing or a certain piece of jewelry in the text content of the target text segment. Specifically, the object description information may include any one or more of object category description information, object name description information, object attribute description information, and object feature description information.
[0087] In practical applications, scene description information can also be extracted from the text content of the target text segment to determine the recommended object. Scene description information refers to the description information related to the scene in the text content. Specifically, the scene description information can include any one or more description information such as time information, location information, and environment information involved in the text content of the target text segment.
[0088] In an optional implementation, the recommended object displayed in the recommended media resource can be determined by matching the extracted object description information or scene description information with the object to be recommended in the target database. The target database pre-stores object data corresponding to a plurality of objects to be recommended, and the object data is used to generate the recommended media resource for the corresponding object to be recommended. The object data may include resource data related to the object to be recommended. For example, the object data may include material resources, object description files, etc. of the object to be recommended. The material resources may include pictures, videos, audio, etc. The object description file may include description information of the object to be recommended in various dimensions such as object category information and name information.
[0089] Among them, the implementation method of using object description information or scene description information to perform feature matching with objects to be recommended in the target database may include: based on a pre-set feature matching strategy, matching objects to be recommended in the target database that satisfy the above-mentioned feature matching strategy with the extracted object description information or scene description information as corresponding recommended objects.
[0090] In an optional implementation, the feature matching strategy may include performing feature matching based on object category information in the object description information and category information of each object to be recommended in the target database. Specifically, by performing feature matching between the object category information in the object description information and the object category information of the object to be recommended in the target database, objects to be recommended with the same or similar object categories are used as corresponding recommended objects.
[0091] In another optional implementation, in order to facilitate matching recommended objects that have a high degree of match with the extracted object description information or scene description information, the above-mentioned feature matching strategy may also include: determining the recommended object from the objects to be recommended in the target database through feature matching based on the object name information in the object description information; specifically, feature matching is performed based on the object name information in the object description information and the object name information of the objects to be recommended in the target database, and the objects to be recommended with a higher degree of similarity in object name information are used as corresponding recommended objects.
[0092] In order to facilitate immersive reading for users and reduce the impact of recommended media resources displayed in the reading scene on the user's reading experience, the recommended media resources in the embodiment of the present disclosure also display a target virtual image, which can be generated based on the character description information extracted from the text content of the target text resource. Among them, the character description information may include the description information related to the role involved in the text content of the target text resource, and the role may include the main role in the text content of the target text resource. The role description information may specifically include the role appearance information, role personality information, role social background information, role professional expertise information, etc. in the text content, the role appearance information includes role height information, role weight information, etc., and the role social background information includes role occupation information, role family information, role social status information, etc.
[0093] In an optional implementation, the target virtual image can be generated by inputting the extracted role description information into a virtual image generation model and processing it using the virtual image generation model. The embodiment of the present disclosure does not impose any limitation on the method of generating the virtual image.
[0094] On the basis of the above-mentioned embodiments, based on the recommended object determined for the target text segment and the target virtual image generated based on the role description information in the text content of the target text resource, the recommended media resources corresponding to the target text segment are generated for display in the scenario where the reader reads the text content of the target text segment.
[0095] In an optional implementation, the target virtual image displayed in the recommended media resource is generated based on the role description information of at least one character in the text content of the target text resource, that is, the target virtual image corresponds to a character in the text content of the target text resource, and the recommended object displayed in the recommended media resource can be generated based on the object description information or the scene description information, that is, the recommended object in the recommended media resource and the target virtual image together constitute the recommended media resource.
[0096] In another optional implementation, the role description information corresponding to the target virtual image in the recommended media resource and the object description information or scene description information corresponding to at least one recommended object respectively have a preset correspondence in the text content of the target text resource, that is, in the text content of the target text resource, the role description information and the object description information or scene description information have a preset correspondence, and the preset correspondence may be a relationship described in the same chapter, or a relationship of directionality of description information, etc. For example, when the text content of the target text resource is "Character A walks at night in a black coat", the role description information "Character A" has a preset correspondence with the object description information "black coat".
[0097] In order to display the recommended media resources corresponding to the target text segment in the target text resource on the text reading page, in an optional implementation, when a reading operation for the target text resource is received, the text content of the target text resource and the recommended media resource set corresponding to the target text resource are obtained from the server, and the recommended media resource set includes the recommended media resources corresponding to the text segment in the target text resource. For the specific implementation method of the server obtaining the recommended media resource set of the target text resource, please refer to the content of the following embodiment, which will not be repeated here.
[0098] In the resource processing method provided by the embodiment of the present disclosure, first, the text content of the target text resource is displayed on a text reading page, wherein the target text resource includes at least one text segment, and then, in response to a preset trigger operation for the target text segment in the target text resource, a recommended media resource corresponding to the target text segment is displayed at a target display position corresponding to the target text segment, wherein the recommended media resource displays object information of a target virtual image and at least one recommended object, wherein the target virtual image is generated based on role description information extracted from the text content of the target text resource, and the recommended object is determined based on object description information or scene description information extracted from the text content of the target text segment.
[0099] In the disclosed embodiment, the recommended media resources displayed in the reading scene of the target text segment are related to the text content of the target text segment. Specifically, the recommended media resources display recommended objects related to the text content of the target text segment and target virtual images related to the characters in the target text resource. The disclosed embodiment can reduce the impact on the reader's reading experience by displaying the recommended media resources related to the target text segment at the target display position corresponding to the target text segment.
[0100] In an optional implementation, in order to prompt the user to trigger an interactive operation for the recommended media resources displayed on the text reading page, the recommended media resources displayed on the text reading page in the disclosed embodiment may also display recommendation information. The recommendation information may include voice recommendation information and / or text recommendation information, wherein the voice recommendation information may refer to the recommendation information displayed in the form of voice. The recommendation information may be generated based on the role description information and the object description information through algorithm processing. Specifically, the role description information and the object description information may be input into the algorithm, and the recommendation information may be obtained through analysis and processing by the algorithm.
[0101] In order to further enrich the interactive functions of recommended media resources, in an optional implementation, when displaying recommended media resources corresponding to a target text segment on a text reading page, if a first trigger operation is received for a target recommended object displayed in the recommended media resource, an object interaction page corresponding to the target recommended object is displayed, wherein the target recommended object can be any recommended object in the recommended media resource.
[0102] The object interaction page is used to trigger a target interaction operation for the target recommended object. Specifically, the object interaction page may include an object details page and an object acquisition page for the target recommended object. If the object interaction page is an object details page, the object interaction page is used to trigger a favorite operation and an add to shopping cart operation for the target recommended object; if the object interaction page is an object acquisition page, the object interaction page is used to trigger an object acquisition operation for the target recommended object, such as an order purchase operation.
[0103] The first trigger operation for the target recommended object may include trigger operations such as single-clicking or double-clicking the target recommended object, and may also include setting a preset control. When the preset control corresponding to the target recommended object is triggered, the object interaction page corresponding to the target recommended object is displayed.
[0104] like Figure 3, which is a schematic diagram of a text reading page provided by an embodiment of the present disclosure. The text reading page displays a target recommended object 301 and a view control 302 corresponding to the target recommended object. When the view control 302 is triggered, the object details page corresponding to the target recommended object is displayed.
[0105] For example Figure 4 , which is a schematic diagram of a text reading page provided by an embodiment of the present disclosure. The text reading page displays a target recommended object and an object acquisition control corresponding to the target recommended object. When the object acquisition control is triggered, the object acquisition page corresponding to the target recommended object is displayed.
[0106] In another optional implementation, during the process of displaying the recommended media resources corresponding to the target text segment on the text reading page, if a second trigger operation is received for the target recommended object displayed in the recommended media resource, the session page corresponding to the target recommended object is displayed.
[0107] The conversation page is used to display the object details of the target recommended object in a question-and-answer manner. That is, the conversation page is used to display the object details to the user in the form of a dialogue.
[0108] The second trigger operation for the target recommended object may include setting a session control, and when the session control is triggered, a session page of the target recommended object is displayed.
[0109] like Figure 5 As shown, it is a schematic diagram of a text reading page provided by an embodiment of the present disclosure, on which a target recommendation object 501 and a conversation control 502 corresponding to the target recommendation object are displayed. When the conversation control 502 is triggered, the conversation page corresponding to the target recommendation object is displayed.
[0110] In order to facilitate understanding of the embodiments of the present disclosure, the present disclosure also provides another resource processing method, which is applied to the server. Figure 6 .
[0111] S601: Acquire target text resources.
[0112] Wherein, the target text resource includes at least one text segment.
[0113] An optional implementation method for the server to obtain the target text resource may include obtaining the target text resource when the target text resource is published, triggering the generation of a corresponding recommended media resource set for the target text resource; and setting a trigger period to trigger the generation of a corresponding recommended media resource set for the text resources published or updated within the period every other period.
[0114] S602: Obtain role description information, object description information and scene description information by parsing the text content of the target text resource.
[0115] In an optional implementation, the text content of the target text resource can be parsed using an information analysis model. Specifically, the target text resource is input into the information analysis model, and the role description information, object description information, and scene description information of the target text resource are obtained through processing by the information analysis model.
[0116] Among them, the role description information may include descriptive information related to the character role, and the character role may include the main character in the text content of the target text resource. The character may include the main character in the text content of the target text resource. The role description information may specifically include the character appearance information, character personality information, character social background information, character professional expertise information, etc. in the text content. The character appearance information includes the character height information, character weight information, etc., and the character social background information includes the character occupation information, character family information, character social status information, etc.
[0117] The object description information may refer to information describing the characteristics of the object in the text content of the target text segment, and the object description information may be used to describe the characteristics of each dimension of the object. For example, the object description information may be description information about a certain piece of clothing or a certain piece of jewelry in the text content of the target text segment. Specifically, the object description information may include any one or more of object category description information, object name description information, object attribute description information, and object feature description information.
[0118] The scene description information refers to the description information related to the scene in the text content. Specifically, the scene description information may include any one or more description information such as time information, location information, and environment information involved in the text content of the target text segment.
[0119] S603: Generate at least one virtual image based on the character description information, and determine at least one recommended object based on the object description information or the scene description information.
[0120] In an optional implementation, the acquired object description information or scene description information is used to perform feature matching with the objects to be recommended in the target database to determine at least one recommended object. The target database pre-stores object data corresponding to a plurality of objects to be recommended. The object data may include resource data related to the object to be recommended. For example, the object data may include material resources and object description files of the object to be recommended. The material resources may include pictures, videos, audio, etc. The object description file may include description information of the object to be recommended in various dimensions such as object category information and name information.
[0121] S604: Based on the at least one recommendation object and the at least one virtual image, generate a set of recommended media resources corresponding to the target text resource.
[0122] The recommended media resources in the recommended media resource set are used to be displayed on the text reading page of the target text resource, and the recommended media resource set includes recommended media resources.
[0123] In an optional implementation, the method for generating the recommended media resources may include generating the recommended media resources corresponding to the target recommended object based on the object data corresponding to the target recommended object in the at least one recommended object and the target virtual image in the at least one virtual image. The target recommended object is any one of the recommended objects, and the target virtual image is any one of the virtual images.
[0124] In order to facilitate immersive reading for users, a target recommendation object and a target virtual image in the recommended media resources generated in the embodiments of the present disclosure may also have an association relationship.
[0125] In an optional implementation, after the target text resource is acquired, the text content of the target text resource is parsed to obtain the association relationship between the object description information or the scene description information and the role description information, and based on the association relationship, the target virtual object is determined from at least one virtual image, and at least one target recommended object is determined from at least one recommended object, wherein there is a corresponding relationship between the target recommended object and the target virtual image. Then, based on the object data corresponding to the target recommended object and the target virtual image, the recommended media resource corresponding to the target recommended object is generated.
[0126] The association relationship between the object description information or scene description information and the role description information may refer to an association relationship pre-set in the target text resource for the object description information or scene description information and the role description information, and the association relationship may be a relationship described in the same chapter, or a relationship of directionality of the description information, etc. For example, the role "Sun Wukong" and the object "Golden Cudgel" have an association relationship.
[0127] Based on the above content, in order to enrich the display method of recommended media resources and reduce the impact of recommended media resources on readers' reading experience, the recommended media resources can also display the recommended information of the target recommended object.
[0128] In an optional implementation, recommendation information is generated based on the determined target virtual image and target recommended object. Specifically, the character object information corresponding to the target virtual image and the object description information or scene description information corresponding to the target recommended object can be input into the information generation model, and the recommendation information of the target recommended object is obtained after being processed by the information generation model. The recommendation information includes text recommendation information and / or voice recommendation information.
[0129] On the basis of the above embodiment, in order to enrich the display form of the recommendation information, the recommendation information can also be generated based on the language features of the target text resource. The language features can be the language expression method, language expression style, etc. of the target text resource.
[0130] After obtaining the recommendation information, based on the recommendation information, the target virtual image and the object data corresponding to the target recommendation object, a recommended media resource corresponding to the target recommendation object is generated.
[0131] The recommended media resources displayed in the disclosed embodiment are related to the text content of the target text segment. Specifically, the recommended media resources include recommended objects related to the text content of the target text segment and target virtual images related to the characters in the target text resources. By displaying the recommended media resources related to the target text segment at the target display position corresponding to the target text segment, the impact on the reader's reading experience can be reduced.
[0132] In order to implement the above embodiments, the present disclosure also proposes a resource processing device. Figure 7 This is a schematic diagram of the structure of a resource processing device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated into an electronic device. Figure 7 As shown, the device comprises:
[0133] The first display module 701 is used to display the text content of the target text resource on the text reading page; wherein the target text resource includes at least one text segment;
[0134] The second display module 702 is used to display the recommended media resource corresponding to the target text segment at the target display position corresponding to the target text segment in response to a preset trigger operation for the target text segment in the target text resource; wherein the recommended media resource displays object information of a target virtual image and at least one recommended object, the target virtual image is generated based on the role description information extracted from the text content of the target text resource, and the recommended object is determined based on the object description information or scene description information extracted from the text content of the target text segment.
[0135] In an optional implementation, the recommended media resource also displays recommendation information, the recommendation information includes voice recommendation information and / or text recommendation information, and the recommendation information is generated based on the role description information and the object description information.
[0136] In an optional implementation, the device further includes:
[0137] The first display module is used to display an object interaction page corresponding to the target recommended object displayed in the recommended media resource in response to a first trigger operation on the target recommended object; wherein the object interaction page is used to trigger a target interaction operation on the target recommended object.
[0138] In an optional implementation, the device further includes:
[0139] The second display module is used to display the conversation page corresponding to the target recommended object displayed in the recommended media resource in response to the second trigger operation on the target recommended object displayed in the recommended media resource; wherein the conversation page is used to display the object detail information of the target recommended object in a question-and-answer manner.
[0140] In an optional implementation manner, the second display module is specifically used to:
[0141] In response to a page switching operation on a target text segment in the target text resource, a recommended media resource corresponding to the target text segment is displayed in the form of a resource card.
[0142] In an optional implementation manner, the second display module is specifically used to:
[0143] In response to a display trigger operation for a target text segment in the target text resource, the text content of the target text segment is displayed on the text reading page, and the recommended media resources corresponding to the target text segment are displayed in a target display area corresponding to the target text segment on the text reading page.
[0144] In an optional implementation, the recommended object is determined by performing feature matching between the object description information or the scene description information and an object to be recommended in a target database, wherein object data corresponding to a plurality of objects to be recommended are stored in the target database, and the object data is used to generate recommended media resources corresponding to the object to be recommended.
[0145] In an optional implementation, the character description information corresponding to the target virtual image in the recommended media resource and the object description information or scene description information corresponding to the at least one recommended object have a preset corresponding relationship in the text content of the target text resource.
[0146] In an optional implementation, the device further includes:
[0147] The acquisition module is used to obtain the text content of the target text resource and the recommended media resource set corresponding to the target text resource in response to a reading operation on the target text resource; wherein the recommended media resource set includes recommended media resources corresponding to text fragments in the target text resource.
[0148] In the resource processing device provided by the embodiment of the present disclosure, the text content of the target text resource is displayed on a text reading page, wherein the target text resource includes at least one text segment, and then, in response to a preset trigger operation for the target text segment in the target text resource, a recommended media resource corresponding to the target text segment is displayed at a target display position corresponding to the target text segment, wherein the recommended media resource displays object information of a target virtual image and at least one recommended object, wherein the target virtual image is generated based on role description information extracted from the text content of the target text resource, and the recommended object is determined based on object description information or scene description information extracted from the text content of the target text segment.
[0149] In the disclosed embodiment, the recommended media resources displayed in the reading scene of the target text segment are related to the text content of the target text segment. Specifically, the recommended media resources display recommended objects related to the text content of the target text segment and target virtual images related to the characters in the target text resource. The disclosed embodiment can reduce the impact on the reader's reading experience by displaying the recommended media resources related to the target text segment at the target display position corresponding to the target text segment.
[0150] Correspondingly, the embodiment of the present disclosure also provides another resource processing device. Figure 8 This is a schematic diagram of the structure of a resource processing device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated into an electronic device. Figure 8 As shown, the device comprises:
[0151] The acquisition module 801 is used to acquire a target text resource; wherein the target text resource includes at least one text segment;
[0152] A first parsing module 802 is used to parse the text content of the target text resource to obtain role description information, object description information and scene description information;
[0153] A determination module 803, configured to generate at least one avatar based on the character description information, and to determine at least one recommended object based on the object description information or the scene description information;
[0154] The generation module 804 is used to generate a set of recommended media resources corresponding to the target text resource based on the at least one recommendation object and the at least one virtual image; wherein the recommended media resources in the set of recommended media resources are used to be displayed on the text reading page of the target text resource.
[0155] In an optional implementation manner, the determining module is specifically configured to:
[0156] Using the object description information or the scene description information to perform feature matching with the objects to be recommended in the target database, at least one recommended object is determined; wherein the target database stores object data corresponding to a plurality of objects to be recommended respectively;
[0157] Accordingly, the generating module is specifically used for:
[0158] Based on the object data corresponding to the target recommended object among the at least one recommended object and the target virtual image among the at least one virtual image, a recommended media resource corresponding to the target recommended object is generated.
[0159] In an optional implementation manner, the generating module includes:
[0160] A first generating submodule, configured to generate recommendation information based on a target virtual image in the at least one virtual image and a target recommended object in the at least one recommended object; wherein the recommendation information includes voice recommendation information and / or text recommendation information;
[0161] The second generating submodule is used to generate a recommended media resource corresponding to the target recommended object based on the recommendation information, the target virtual image and the object data corresponding to the target recommended object.
[0162] In an optional implementation, the device further includes:
[0163] A second parsing module is used to parse the text content of the target text resource to obtain the association relationship between the object description information or the scene description information and the role description information;
[0164] Accordingly, the generating module includes:
[0165] a determination submodule, configured to determine, from the at least one virtual image, a target virtual image corresponding to a target recommended object among the at least one recommended object based on an association relationship between the object description information or the scene description information and the role description information;
[0166] The third generating submodule is used to generate the recommended media resource corresponding to the target recommended object based on the object data corresponding to the target recommended object and the target virtual image.
[0167] In the resource processing device provided by the embodiment of the present disclosure, a target text resource is obtained, wherein the target text resource includes at least one text fragment, and then the text content of the target text resource is parsed to obtain role description information, object description information and scene description information, at least one virtual image is generated based on the role description information, and at least one recommended object is determined based on the object description information or the scene description information, and a recommended media resource set corresponding to the target text resource is generated based on the at least one recommended object and the at least one virtual image, wherein the recommended media resources in the recommended media resource set are used for display on the text reading page of the target text resource.
[0168] In the disclosed embodiment, the recommended media resources displayed in the reading scene of the target text segment are related to the text content of the target text segment. Specifically, the recommended media resources display recommended objects related to the text content of the target text segment and target virtual images related to the characters in the target text resource. The disclosed embodiment can reduce the impact on the reader's reading experience by displaying the recommended media resources related to the target text segment at the target display position corresponding to the target text segment.
[0169] The resource processing device provided in the embodiments of the present disclosure can execute the resource processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0170] In order to implement the above embodiments, the present disclosure further proposes a computer program product, including a computer program / instruction, which implements the resource processing method in the above embodiments when executed by a processor.
[0171] In addition to the above-mentioned method and apparatus, the embodiments of the present disclosure further provide a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device implements the resource processing method described in the embodiments of the present disclosure.
[0172] In addition, the present disclosure also provides a resource processing device, see Fig. 9 As shown, it may include:
[0173] Processor 901, memory 902, input device 903 and output device 904. The number of processors 901 in the resource processing device can be one or more. Fig. 9In some embodiments of the present disclosure, the processor 901, the memory 902, the input device 903 and the output device 904 may be connected via a bus or other means, wherein: Fig. 9 The example of connecting through bus is taken in the following.
[0174] The memory 902 can be used to store software programs and modules. The processor 901 executes various functional applications and data processing of the resource processing device by running the software programs and modules stored in the memory 902. The memory 902 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc. In addition, the memory 902 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. The input device 903 can be used to receive input digital or character information, and generate signal input related to user settings and function control of the resource processing device.
[0175] Specifically in this embodiment, the processor 901 will load the executable files corresponding to the processes of one or more applications into the memory 902 according to the following instructions, and the processor 901 will run the applications stored in the memory 902, thereby realizing various functions of the above-mentioned resource processing device.
[0176] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0177] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A resource processing method, characterized in that: include: Displaying the text content of the target text resource on the text reading page; wherein the target text resource includes at least one text segment; In response to a preset trigger operation for a target text segment in the target text resource, a recommended media resource corresponding to the target text segment is displayed at a target display position corresponding to the target text segment; wherein the recommended media resource displays object information of a target virtual image and at least one recommended object, the target virtual image is generated based on character description information extracted from the text content of the target text resource, and the recommended object is determined based on object description information or scene description information extracted from the text content of the target text segment.
2. The method according to claim 1, characterized in that The recommended media resource also displays recommendation information, which includes voice recommendation information and / or text recommendation information. The recommendation information is generated based on the role description information and the object description information.
3. The method according to claim 1, characterized in that The method further comprises: In response to a first trigger operation on a target recommended object displayed in the recommended media resource, an object interaction page corresponding to the target recommended object is displayed; wherein the object interaction page is used to trigger a target interaction operation on the target recommended object.
4. The method according to claim 1, characterized in that The method further comprises: In response to a second trigger operation on a target recommended object displayed in the recommended media resource, a conversation page corresponding to the target recommended object is displayed; wherein the conversation page is used to display object detail information of the target recommended object in a question-and-answer manner.
5. The method according to claim 1, characterized in that The step of displaying the recommended media resource corresponding to the target text segment at the target display position corresponding to the target text segment in response to a preset triggering operation on the target text segment in the target text resource includes: In response to a page switching operation on a target text segment in the target text resource, a recommended media resource corresponding to the target text segment is displayed in the form of a resource card.
6. The method according to claim 1, characterized in that The step of displaying the recommended media resource corresponding to the target text segment at the target display position corresponding to the target text segment in response to a preset triggering operation on the target text segment in the target text resource includes: In response to a display trigger operation for a target text segment in the target text resource, the text content of the target text segment is displayed on the text reading page, and the recommended media resources corresponding to the target text segment are displayed in a target display area corresponding to the target text segment on the text reading page.
7. The method according to claim 1, characterized in that The recommended object is determined by performing feature matching between the object description information or the scene description information and an object to be recommended in a target database, wherein object data corresponding to a plurality of objects to be recommended are stored in the target database, and the object data is used to generate recommended media resources corresponding to the object to be recommended.
8. The method according to claim 1, characterized in that The role description information corresponding to the target virtual image in the recommended media resource and the object description information or scene description information respectively corresponding to the at least one recommended object have a preset corresponding relationship in the text content of the target text resource.
9. The method according to claim 1, characterized in that: Before displaying the text content of the target text resource on the text reading page, the method further includes: In response to a reading operation on a target text resource, the text content of the target text resource and a set of recommended media resources corresponding to the target text resource are obtained; wherein the set of recommended media resources includes recommended media resources corresponding to text segments in the target text resource.
10. A resource processing method, characterized in that: include: Acquire a target text resource; wherein the target text resource includes at least one text segment; Obtaining role description information, object description information and scene description information by parsing the text content of the target text resource; generating at least one avatar based on the character description information, and determining at least one recommended object based on the object description information or the scene description information; Based on the at least one recommendation object and the at least one virtual image, a recommended media resource set corresponding to the target text resource is generated; wherein the recommended media resources in the recommended media resource set are used to be displayed on the text reading page of the target text resource.
11. The method according to claim 10, characterized in that The determining at least one recommended object based on the object description information or the scene description information includes: Using the object description information or the scene description information to perform feature matching with the objects to be recommended in the target database, at least one recommended object is determined; wherein the target database stores object data corresponding to a plurality of objects to be recommended respectively; Accordingly, generating a set of recommended media resources corresponding to the target text resource based on the at least one recommended object and the at least one virtual image includes: Based on the object data corresponding to the target recommended object among the at least one recommended object and the target virtual image among the at least one virtual image, a recommended media resource corresponding to the target recommended object is generated.
12. The method according to claim 11, characterized in that The generating, based on the object data corresponding to the target recommended object among the at least one recommended object and the target virtual image among the at least one virtual image, the recommended media resource corresponding to the target recommended object comprises: Generate recommendation information based on a target virtual image in the at least one virtual image and a target recommendation object in the at least one recommendation object; wherein the recommendation information includes voice recommendation information and / or text recommendation information; Based on the recommendation information, the target virtual image and the object data corresponding to the target recommendation object, a recommended media resource corresponding to the target recommendation object is generated.
13. The method according to claim 11, characterized in that Before generating the recommended media resource corresponding to the target recommended object based on the object data corresponding to the target recommended object among the at least one recommended object and the target virtual image among the at least one virtual image, the method further includes: By parsing the text content of the target text resource, an association relationship between the object description information or the scene description information and the role description information is obtained; Accordingly, generating the recommended media resource corresponding to the target recommended object based on the object data corresponding to the target recommended object in the at least one recommended object and the target virtual image in the at least one virtual image includes: Determining, from the at least one virtual image, a target virtual image corresponding to a target recommended object among the at least one recommended object based on an association relationship between the object description information or the scene description information and the role description information; Based on the object data corresponding to the target recommendation object and the target virtual image, a recommended media resource corresponding to the target recommendation object is generated.
14. A resource processing device, characterized in that: The device comprises: A first display module, used to display the text content of the target text resource on the text reading page; wherein the target text resource includes at least one text segment; A second display module is used to display the recommended media resource corresponding to the target text segment at the target display position corresponding to the target text segment in response to a preset trigger operation for the target text segment in the target text resource; wherein the recommended media resource displays object information of a target virtual image and at least one recommended object, the target virtual image is generated based on role description information extracted from the text content of the target text resource, and the recommended object is determined based on object description information or scene description information extracted from the text content of the target text segment.
15. A resource processing device, characterized in that: The device comprises: An acquisition module, used to acquire a target text resource; wherein the target text resource includes at least one text segment; A first parsing module, configured to parse the text content of the target text resource to obtain role description information, object description information and scene description information; a determination module, configured to generate at least one avatar based on the character description information, and to determine at least one recommended object based on the object description information or the scene description information; A generation module is used to generate a recommended media resource set corresponding to the target text resource based on the at least one recommendation object and the at least one virtual image; wherein the recommended media resources in the recommended media resource set are used to be displayed on the text reading page of the target text resource.
16. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the resource processing method described in any one of claims 1-13 above.
17. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the resource processing method described in any one of claims 1 to 13.
18. A computer program product, characterized in that The computer program product comprises a computer program / instruction, and when the computer program / instruction is executed by a processor, the method according to any one of claims 1 to 13 is implemented.