Material recommendation method and device, equipment, medium and product
By pre-generating recommended materials related to the document content, the problem of low efficiency in manually collecting materials during the document editing process is solved, achieving efficient material recommendation and improved editing efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2026-02-28
- Publication Date
- 2026-05-29
AI Technical Summary
During document editing, users need to manually collect and integrate materials, resulting in low editing efficiency.
By pre-generating recommended materials related to the document content and storing them when conditions are met, and then providing them when the user triggers a recommendation action, the need for real-time generation is reduced.
It improves the response speed and editing efficiency of material recommendations, and reduces the time users spend on material preparation.
Smart Images

Figure CN122113867A_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of this document relate to a material recommendation method, material recommendation apparatus, electronic device, computer-readable storage medium, and computer program product. Background Technology
[0002] A document processing system can be understood as a software system used to manage documents. Users can use the document processing system to perform document-related operations, such as creating documents, editing documents, and viewing documents.
[0003] When users are editing documents using a document processing system, it is especially important to help them improve their editing efficiency through efficient material recommendations. Summary of the Invention
[0004] This summary section is provided to briefly introduce the concepts, which will be described in detail in the detailed description section below. This summary section is not intended to identify key or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0005] At least one embodiment of this article provides a material recommendation method, including: obtaining a first content block associated with a first operator; generating and storing a first recommended material corresponding to the first content block in response to satisfying the material generation conditions corresponding to the first content block, wherein the first recommended material is related to at least a portion of the content of the first content block that needs to be improved in the current update cycle; and sending the first recommended material to the first operator in response to a first operation triggered by the first operator on the first content block.
[0006] At least one embodiment of this document provides a material recommendation device, including: an acquisition module configured to: acquire a first content block associated with a first operator; a processing module configured to: generate and store a first recommended material corresponding to the first content block in response to satisfying the material generation conditions corresponding to the first content block, wherein the first recommended material is related to at least a portion of the content of the first content block that needs to be improved in the current update cycle; and a sending module configured to: send the first recommended material to the first operator in response to a first operation triggered by the first operator on the first content block.
[0007] At least one embodiment of this document provides an electronic device, including: at least one processor; and at least one memory, including one or more computer program instructions; wherein the one or more computer program instructions are executed by the processor to perform the material recommendation method provided in at least one embodiment of this document.
[0008] At least one embodiment of this document provides a computer-readable storage medium for non-transitory storage of computer-readable instructions, wherein the material recommendation method provided by at least one embodiment of this document is implemented when the computer-readable instructions are executed by a processor.
[0009] At least one embodiment of this document provides a computer program product, including a computer program that, when executed by a processor, implements the material recommendation method provided in at least one embodiment of this document.
[0010] In a material recommendation method provided in at least one embodiment of this paper, in a document editing scenario, a pre-generation logic for recommending materials is provided. By finding the content block associated with the first operator, when the material generation conditions are met, the corresponding recommended materials are pre-generated and stored. Thus, when the first operator triggers the material recommendation operation, the stored recommended materials can be directly provided to the operator without real-time generation, thereby improving the response speed of material recommendation and achieving efficient material recommendation. Attached Figure Description
[0011] The above and other features, advantages, and aspects of the embodiments herein will become more apparent when taken in conjunction with the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote 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.
[0012] Figure 1 This illustration schematically depicts an application scenario of a material recommendation method provided in at least one embodiment of this paper.
[0013] Figure 2 The illustration shows a flowchart of a material recommendation method provided in at least one embodiment of this document;
[0014] Figure 3 The schematic diagram illustrates a structural schematic of a material recommendation device provided in at least one embodiment of this document; and
[0015] Figure 4 A schematic diagram of the structure of an electronic device suitable for implementing at least one embodiment of the present invention is shown. Detailed Implementation
[0016] One or more embodiments of this document will now be described in more detail with reference to the accompanying drawings. While some embodiments of this document are shown in the drawings, it should be understood that this document can be implemented in various forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided to provide a more thorough and complete understanding of this document. It should be understood that the accompanying drawings and embodiments are for illustrative purposes only and are not intended to limit the scope of this document.
[0017] It should be understood that the steps described in the method embodiments herein may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this document is not limited in this respect.
[0018] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based 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". Definitions of other terms will be given in the description below.
[0019] It should be noted that the concepts of "first" and "second" mentioned in this article are only used to distinguish different devices, modules or units, and are not used to limit the order of the functions performed by these devices, modules or units or their interdependencies.
[0020] It should be noted that the terms "one" and "more" used in this document are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0021] The names of the messages or information exchanged between the various devices in the embodiments herein are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0022] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0023] It is understood that before using the technical solutions disclosed in the embodiments of this article, relevant users should be informed of the type, scope of use, and usage scenarios of the information involved in this article and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means. Relevant users may include any type of rights holder, such as individuals, enterprises, or groups.
[0024] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly inform the user that the requested operation will require obtaining and using the user's information, thereby enabling the relevant user to choose whether to provide information to the software or hardware such as the electronic device, application, server, or storage medium that performs the operation of any embodiment of the present invention based on the prompt message.
[0025] As an optional but non-restrictive implementation, in response to a user's active request, a prompt message can be sent to the user, such as a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide information to the electronic device.
[0026] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation method described in this article. Other methods that comply with relevant laws and regulations may also be applied to the implementation method described in this article.
[0027] A document processing system can be understood as a software system used to manage documents. It is widely used in various scenarios such as office work, study, and creation. Users can use the document processing system to perform document-related operations, such as creating, editing, and viewing documents.
[0028] When users edit documents using a document processing system, they often need to use some materials to edit the document content. For example, users need to manually collect the necessary materials and then combine the collected materials to edit the document in the document processing system.
[0029] Taking the example of a user editing a technical introduction document for technology A in a document processing system, the user needs to search for materials related to technology A from different channels such as the internal document library and the Internet, organize the materials related to technology A, and then input the document content into the technical introduction document for technology A.
[0030] The above methods require users to manually collect and integrate materials, which consumes a lot of time in the material preparation process and reduces the user's document editing efficiency. Therefore, some document processing systems provide material recommendation capabilities, which proactively provide users with recommended materials related to the content of the currently edited document during the document editing process. Using recommended materials to help users improve document editing efficiency is particularly important.
[0031] To at least partially solve the above-mentioned technical problem, at least one embodiment of this paper provides a material recommendation method, the method comprising: obtaining a first content block associated with a first operator; generating and storing a first recommended material corresponding to the first content block in response to satisfying the material generation conditions corresponding to the first content block, wherein the first recommended material is related to at least a portion of the content to be improved in the first content block in the current update cycle; and sending the first recommended material to the first operator in response to a first operation triggered by the first operator on the first content block.
[0032] Based on the material recommendation method provided in at least one embodiment of this article, at least one embodiment of this article also provides a material recommendation device, an electronic device, a computer-readable storage medium, and a computer program product.
[0033] In a material recommendation method provided in at least one embodiment of this paper, in a document editing scenario, a pre-generation logic for recommending materials is provided. By finding the content block associated with the first operator, when the material generation conditions are met, the corresponding recommended materials are pre-generated and stored. Thus, when the first operator triggers the material recommendation operation, the stored recommended materials can be directly provided to the operator without real-time generation, thereby improving the response speed of material recommendation and achieving efficient material recommendation.
[0034] The following detailed description, with reference to the accompanying drawings, describes one or more embodiments and some examples thereof.
[0035] Figure 1 The illustration shows an application scenario diagram of a material recommendation method provided in at least one embodiment of this article.
[0036] like Figure 1 As shown, the application scenario provided in this embodiment may include user 101, terminal device 102, server 103, and database 104. Terminal device 102 can be various electronic devices capable of providing interactive pages, such as smart wearable devices, smart appliances, smart cars, mobile phones, tablets, laptops, or desktop computers.
[0037] In one or more embodiments of this document, a client may be installed in the terminal device 102. The client may be a client of a document processing system. The server 103 may be a server that provides support for the operation of the client installed in the terminal device 102. That is, the server 103 may be a server of a document processing system. For example, the server 103 may be a server for a local area network or a wide area network, or a cloud server, etc. The one or more embodiments of this document do not limit this.
[0038] User 101 can be a user of a client installed on terminal device 102. For example, user 101 can be an editor who edits documents, a viewer who views documents, or a commenter who makes comments on documents in a document processing system.
[0039] In one or more embodiments described herein, the document processing system can be deployed in different ways. In some embodiments, the document processing system can be deployed locally, for example, it can be a document processing application (APP), document processing tool, document processing plugin, etc., installed on terminal device 102; or, for example, it can be deployed in the cloud, that is, it can provide document management services in the form of cloud services, for example, it can be an online document processing tool. Furthermore, the document processing system can be integrated into other systems, providing document processing functions as a functional module within those systems. For example, it can be integrated into an office collaboration system, providing document processing services (e.g., cloud document processing services) within that system.
[0040] The server 103 can communicate with the terminal device 102, for example, by providing the client installed on the terminal device 102 with relevant data (such as document content) required by the terminal device to run the client; or, for example, the server 103 can also receive relevant data returned by the terminal device 102 during the running of the client (such as operation data on the document triggered by user 101 on the client).
[0041] Database 104 can communicate with server 103. For example, database 104 can be a storage component with persistent storage and data management capabilities, such as a relational database, a non-relational database, or a distributed database. Database 104 can store data related to document processing, such as data related to document processing permissions, document metadata, document structure data, content index data, document collaboration data, and document configuration data. Server 103 can perform read and write operations on the data stored in database 104.
[0042] For example, the material recommendation method provided in one or more embodiments of this document can be implemented in software, hardware, firmware, or any combination thereof.
[0043] For example, the material recommendation method provided in one or more embodiments of this document is applicable to a terminal device, which can load and execute the material recommendation method. The embodiments of this document do not limit this. For example, the terminal device may include a central processing unit (CPU), graphics processing unit (GPU), digital signal processor (DSP), neural network processing unit (NPU), or other forms of processing units with data processing capabilities and / or instruction execution capabilities, storage units, etc. The server or terminal device may also have an operating system and various types of application programming interfaces (APIs) installed, implementing the material recommendation method provided in the embodiments of this document by running code or instructions.
[0044] The following will combine Figure 2 and Figure 3 This paper provides a detailed description of a material recommendation method based on at least one embodiment.
[0045] Figure 2 The illustration shows a flowchart of a material recommendation method provided in at least one embodiment of this document.
[0046] like Figure 2 As shown, the material recommendation method of this embodiment includes steps S201 to S203. In some embodiments, the executing entity of the material recommendation method can be an electronic device with a client deployed, an electronic device with a server deployed, or any electronic device that communicates between the client and the server; one or more embodiments herein do not limit this. The steps included in the material recommendation method are described below:
[0047] Step S201: Obtain the first content block associated with the first operator.
[0048] The first operator can be understood as any user who has a need to edit documents. For example, the first operator may have editing permissions for some of the candidate documents among multiple candidate documents, and the first operator may edit some content blocks in the candidate documents for which they have editing permissions.
[0049] The first content block associated with the first operator can be understood as at least one content block that the first operator has document editing needs for. For example, the first content block associated with the first operator may be at least one content block that the first operator needs to edit (e.g., a content block that the first operator maintains and updates the document content for).
[0050] In some possible implementations, the process of determining the first content block associated with the first operator from a large number of documents can be achieved by means of a mapping relationship. For example, based on the first mapping relationship, the first content block associated with the first operator can be obtained from multiple content blocks included in multiple candidate documents. The first mapping relationship can be used to characterize the association relationship between the first operator, candidate documents and content blocks.
[0051] Multiple candidate documents can be understood as documents related to different users. For example, multiple candidate documents may include documents edited by different users. When the document processing system is deployed locally, multiple candidate documents can be multiple documents stored locally, such as multiple documents edited locally or multiple documents downloaded locally. When the document processing system is deployed in the cloud, multiple candidate documents can be multiple documents stored in the cloud. For example, when the document processing system is integrated as a functional module into an office collaboration system, multiple candidate documents can be multiple cloud documents edited by multiple users using the office collaboration system.
[0052] Each candidate document is logically divided into structural blocks, that is, each candidate document may include one or more content blocks. A content block can be understood as a document section. A content block corresponds to at least a continuous portion of the document content in the candidate document. For example, a candidate document may include multiple subheadings, and the document content under a subheading can form a content block. Another example is that a candidate document may include a table, and at least one adjacent area in the table can form a content block.
[0053] From multiple candidate documents, the first content block that the first operator may need to edit is selected. In subsequent material recommendations, targeted and granular material recommendations are provided to the corresponding operators on a content block basis.
[0054] The first mapping relationship can be understood as a three-level mapping relationship between the first operator, the candidate document, and the content block. For example, the first mapping relationship can be a mapping relationship between the operator identifier, the document identifier, and the content block identifier of the first operator.
[0055] By constructing a first mapping relationship, a direct correspondence is established between the candidate documents associated with the first operator and the content blocks in the candidate documents. Based on the operator identifier of the first operator, a query is performed using the first mapping relationship to determine the content blocks associated with the first operator and the candidate documents in which the content blocks associated with the first operator are located, thereby improving the efficiency of obtaining the content blocks associated with the first operator.
[0056] In some possible implementations, the first mapping relationship can be constructed as follows: based on the editing information of multiple candidate documents, obtain at least one candidate document associated with the first operator respectively; based on the historical editing information of the first operator and the document content of the at least one candidate document associated with the first operator, obtain at least one content block associated with the first operator from the at least one candidate document associated with the first operator; and construct the first mapping relationship based on the at least one candidate document associated with the first operator and the at least one content block associated with the first operator.
[0057] In other words, the overall logic for constructing the first mapping relationship is as follows: First, based on the editing information of the candidate documents, filter out the candidate documents associated with the first operator. Then, from the candidate documents associated with the first operator, locate the content block associated with the first operator.
[0058] In this way, by first identifying the candidate documents to be associated and then further identifying the associated content blocks, the granularity is gradually refined from coarse to fine, down to the dimension of content blocks, thus achieving an indirect association between the operator and the content blocks.
[0059] In the process of filtering at least one candidate document associated with the first operator, based on the editing information of multiple candidate documents, at least one candidate document associated with the first operator is filtered out from the multiple candidate documents.
[0060] The editing information of a candidate document can be understood as information related to the editor of the candidate document. For example, the editing information of a candidate document can be an identifier of the operator with editing rights to the candidate document, or it can be the editor information of the candidate document, etc.
[0061] Thus, for the first operator, the editing information of the candidate documents is used to filter out the candidate documents that the first operator can edit from among multiple candidate documents. Since the first operator can edit these candidate documents, the first operator and these candidate documents are associated, thus realizing the mapping between the first operator and the candidate documents.
[0062] In the process of locating at least one content block associated with the first operator, for the first operator, based on the first operator's historical editing information and the document content of the candidate documents associated with the first operator, at least one content block associated with the first operator is located from the candidate documents associated with the first operator.
[0063] The first operator's historical editing information can be understood as the first operator's historical editing behavior. For example, the first operator's historical editing information may be the content blocks that the first operator edited during a historical time period.
[0064] The document content of at least one candidate document associated with the first operator can be understood as the document body of at least one candidate document associated with the first operator. For example, in some document processing systems, it is supported to mention the account name in the document, such as to clarify the task person in charge and the communication object by mentioning the account name. In this case, the document content of at least one candidate document associated with the first operator may include the operator identifier.
[0065] Thus, for the first operator, by using the first operator's historical editing information, content blocks that the first operator has previously edited can be filtered out from the candidate documents associated with the first operator. These previously edited content blocks can be content blocks that the first operator needs to edit in the future document editing process. Therefore, the previously edited content blocks can be at least one content block associated with the first operator. By using the document content of at least one candidate document associated with the first operator, content blocks that mention the first operator can be filtered out from the candidate documents associated with the first operator. These content blocks that mention the first operator can be content blocks that the first operator needs to edit in the future document editing process. Therefore, the content blocks that mention the first operator can be at least one content block associated with the first operator. By using the candidate documents as an intermediate bridge, a mapping between the first operator and the content blocks can be realized, thereby realizing a three-level mapping between the first operator, candidate documents, and content blocks, and constructing the first mapping relationship.
[0066] Similarly, for other operators using the document processing system, the above steps for constructing mapping relationships are executed respectively, constructing corresponding mapping relationships for each other operator, forming multiple association relationships between "operators, candidate documents, and content blocks". In the actual operation of the document processing system, the mapping relationships corresponding to different operators are used to determine the associated content blocks for different operators, thereby realizing the pre-generation and storage of corresponding recommended materials for different operators.
[0067] In some embodiments, considering that document type may affect the effect of pre-generated recommended materials, obtaining at least one candidate document associated with the first operator based on the editing information of multiple candidate documents includes: filtering multiple candidate documents according to the document type corresponding to the multiple candidate documents to obtain a set of candidate documents whose document type is periodically updated documents, and obtaining at least one candidate document associated with the first operator based on the editing information of each candidate document in the candidate document set.
[0068] Document types can be used to represent the characteristics of document content. For example, from the perspective of whether it needs periodic updates and maintenance, document types can be classified as periodically updated documents and non-periodic updated documents. Periodically updated documents can be understood as documents that are updated and maintained periodically, such as weekly report documents and quarterly meeting documents. Non-periodic updated documents can be understood as documents that do not have a regular update and maintenance cycle, such as technical documents and creative documents.
[0069] In the material generation method provided in one or more embodiments of this article, recommended materials are generated in advance before the user actually triggers the material recommendation operation. Therefore, for periodically updated documents, since they are updated and maintained in a regular update cycle, the document content involved is more fixed (for example, the document content of a weekly report usually includes the progress of a certain project in different update cycles), and the accuracy of pre-generated recommended materials is higher.
[0070] In this way, by utilizing the document types of multiple candidate documents, the candidate document set belonging to periodically updated documents is retained, while the candidate documents of non-periodic updated documents are discarded. Only candidate documents associated with each operator are selected from the candidate document set. That is, the logic of pre-generating recommended materials only applies to periodically updated documents, ensuring the effectiveness of pre-generated recommended materials.
[0071] In one or more embodiments of this document, the document type of a candidate document may be obtained in different ways. For example, for each candidate document among a plurality of candidate documents, the document type associated with the candidate document may be obtained in response to the document type associated with the candidate document being not empty, or the document type associated with the candidate document may be obtained based on at least one of the document title and the document content of the candidate document in response to the document type associated with the candidate document being empty.
[0072] The fact that the document type associated with the candidate document is not empty can be understood as the document type that has been marked in the historical time period. For candidate documents that have been marked with document types, the document type corresponding to the candidate document can be obtained directly based on the document type associated with the candidate document.
[0073] If the document type associated with a candidate document is empty, it can be understood as an untagged document type. For a candidate document that has not been tagged, the document type of the candidate document is obtained by combining at least one of the document title and document content. In addition, the document type can be associated with the candidate document, that is, the candidate document is tagged after the document type of the candidate document is obtained for the first time.
[0074] Furthermore, to ensure the accuracy of the document types associated with candidate documents, the document types can also be updated. For example, for each of a number of candidate documents, in response to a document title modification operation triggered in that candidate document, the document type associated with the first document can be updated.
[0075] For example, a document title modification operation could be a renaming operation of the candidate document, or a modification operation triggered in the document title area of the candidate document.
[0076] Since document titles typically reflect document characteristics and features, after a document title modification operation is triggered and the candidate document's title is changed, the document type of the candidate document is re-acquired based on the modified title. By updating the document types of candidate documents in real time, the accuracy of the document types is ensured, guaranteeing a match between the candidate document's document type and the actual document.
[0077] Step S202: In response to the fulfillment of the material generation conditions corresponding to the first content block, generate and store the first recommended material corresponding to the first content block.
[0078] In one or more embodiments of this document, for a first content block associated with a first operator, corresponding material generation conditions are configured. The material generation conditions can be used to describe the conditions that need to be met to pre-generate recommended materials.
[0079] Recommended materials can be understood as material information used to assist in editing document content. The first recommended material can be related to at least part of the document content to be improved in the first content block. The at least part of the document content to be improved can be understood as at least part of the document content is missing or at least part of the document content needs to be updated. That is, the first recommended material can be used to assist the first operator in editing the at least part of the document content that is missing in the first content block, or the first recommended material can be used to assist the first operator in editing the at least part of the document content that needs to be updated in the first content block.
[0080] For example, the first content block should include five document contents from (1) to (5). The first content block is missing two document contents from (3) and (4). The document contents from (5) in the first content block need to be updated. The first recommended material is related to the three document contents from (3) to (5) and can be used to assist the first operator in editing the three document contents from (3) to (5) in the first content block.
[0081] The first recommended material can include material information in different forms, such as text material information, video material information, image material information, audio material information, file material information, etc.
[0082] In some embodiments, considering that the first recommended material is used to assist the operator of the first operation in editing the first content block, the first recommended material provided to the operator of the first operation should all be material information that the operator of the first operation has access to. By combining the access rights of the operator of the first operation to generate the first recommended material, it is ensured that the material information included in the first recommended material is in line with the access rights of the operator of the first operation, thereby reducing the impact of recommending first recommended material that is not within the access rights of the operator of the first operation.
[0083] For example, the first recommended material may include one or more of the following: information related to the associated candidate documents and the first content block, detailed information about the recommended material, and source information about the recommended material. The information related to the associated candidate documents and the first content block helps the first operator quickly understand the candidate documents and content blocks corresponding to the first recommended material. The detailed information about the recommended material helps the first operator quickly determine whether the recommended material is available. The source information about the recommended material helps the first operator view the original text of the recommended material and verify its authenticity.
[0084] One or more embodiments of this document support configuring different material generation conditions. In some embodiments, in response to satisfying the material generation conditions corresponding to the first content block, generating and storing the first recommended material corresponding to the first content block includes: in response to reaching the material generation time corresponding to the first content block, generating and storing the first recommended material corresponding to the first content block.
[0085] In other words, the first content block corresponds to a material generation time. When the material generation time of the first content block is reached and the material generation conditions of the first content block are met, the first recommended material needs to be generated in advance before the first operator actually triggers the first operation.
[0086] In other embodiments, in response to satisfying the material generation conditions corresponding to the first content block, generating and storing the first recommended material corresponding to the first content block includes: in response to receiving a material generation instruction for the first content block, generating and storing the first recommended material corresponding to the first content block.
[0087] In other words, users can also send material generation instructions to the first content block. When a material generation instruction for the first content block is received and the material generation conditions of the first content block are met, the first recommended material needs to be generated in advance before the first operator actually triggers the first operation.
[0088] It should be noted that the material generation instruction can be sent by the first operator or other operators. For example, since the first operator knows the first content block that needs to be edited, the first operator can send a material generation instruction before actually editing the first content block to instruct the pre-generation of the first recommended material, so that the first operator can directly obtain the first recommended material when actually editing the first content block. Or, for another example, since the first document containing the first content block can be edited by multiple operators, and the joint editing of the first document by multiple operators takes a certain amount of time, other operators can provide advance reminders about the editing of the first document and send a material generation instruction to instruct the pre-generation of the first recommended material, so that the first operator can directly obtain the first recommended material when actually editing the first content block.
[0089] Thus, the process of pre-generating the first recommended material can be triggered either automatically when the material generation time arrives or manually when a material generation instruction is received. This provides a variety of flexible ways to start the process of pre-generating the first recommended material, ensuring that the process of pre-generating the first recommended material can be started at the appropriate time.
[0090] In some possible implementations, the first document containing the first content block can be a periodically updated document. In this case, in response to the material generation time corresponding to the first content block, the first recommended material corresponding to the first content block is generated and stored, including: obtaining the material generation time of the first content block in the current update cycle according to the update cycle of the first document containing the first content block, and generating and storing the first recommended material corresponding to the first content block in response to the material generation time.
[0091] In other words, for periodically updated documents, there is a corresponding material generation time for each update cycle, and the material generation time for each update cycle is related to the update cycle.
[0092] In this way, for periodically updated documents, the process of pre-generating the first recommended material can be started at the material generation time corresponding to the current update cycle. The first recommended material is prepared in advance for each update cycle, so that the first operator can refer to the first recommended material when editing the first content block in each update cycle, and edit at least some of the document content that needs to be improved in the first content block in the current update cycle, thereby improving the document editing efficiency of the first operator in each update cycle.
[0093] For example, based on the update cycle of the first document to which the first content block is located, the material generation time of the first content block in the current update cycle is obtained, including: based on the update cycle of the first document to which the first content block is located, obtaining the first time interval, and obtaining the update time of the first document in the current update cycle, and based on the time corresponding to the first time interval before the update time, obtaining the material generation time of the first content block in the current update cycle.
[0094] The first time interval can be understood as the lead time for generating recommended materials, that is, the "head start time" for generating recommended materials. The first time interval is related to the update cycle of the first document. For example, the first time interval can be positively correlated with the update cycle of the first document. The longer the update cycle of the first document, the longer the first time interval, and the shorter the update cycle of the first document, the shorter the first time interval. Alternatively, the first time interval can also have a proportional relationship with the update cycle of the first document. The first time interval can be a fixed multiple of the update cycle of the first document, and this fixed multiple can be a value less than 1.
[0095] For example, if the update cycle of the first document is 1 week, the first time interval can be 1 day; if the update cycle of the first document is 1 day, the first time interval can be 3 hours.
[0096] The time interval corresponding to the first document before the update time corresponding to the current update cycle can be understood as the time interval corresponding to the first document before the update time corresponding to the current update cycle. For example, if the update time corresponding to the first document in the current update cycle is 10:00 AM on January 2nd, and the first time interval is 1 day, then the time interval corresponding to the first document before the update time corresponding to the current update cycle is 10:00 AM on January 1st.
[0097] Thus, based on the update cycle of the first document, by configuring a reasonable lead time for the generation of recommended materials, the first recommended material is generated within each update cycle, at a time interval before the update time corresponding to the current update cycle. This allows for the advance generation of the first recommended material in each update cycle, ensuring the smooth generation of the first recommended material in each update cycle.
[0098] For example, in response to receiving a material generation instruction for a first content block, generating and storing the first recommended material corresponding to the first content block includes: obtaining association information related to the first content block, and in response to the association information indicating that editing of the first document containing the first content block is started, generating and storing the first recommended material corresponding to the first content block.
[0099] Related information can be understood as information related to the document content of the first content block. For example, related information can be instant messaging messages, meeting minutes, email content, etc.
[0100] By detecting the associated information related to the first content block and performing content recognition and intent understanding on the associated information, if the associated information indicates that editing of the first document containing the first content block is enabled, it means that the first operator needs to edit at least part of the document content that needs to be improved in the first content block. In this case, the first recommended material is generated and stored in advance so that it can be quickly provided to the first operator for reference when the first operator actually edits the first content block.
[0101] For example, the first document containing the first content block is the weekly report document of project A. The associated information can be an instant messaging message in the instant messaging group of project A, such as "Everyone can prepare this week's report". The associated information indicates that editing of the first document can be started. Therefore, the first recommended material corresponding to the first content block can be generated and stored.
[0102] The following explains the process of generating the first recommended material.
[0103] In some possible implementations, in response to meeting the material generation conditions, generating and storing the first recommended material corresponding to the first content block includes: in response to meeting the material generation conditions, obtaining first information associated with the first content block, the first information associated with the first content block may include at least one of the following: context information of the first content block, the title of the content block corresponding to the first content block, and the content of the historical content block corresponding to the first content block, the content of the historical content block including the content of the first content block in the previous update cycle; and generating and storing the first recommended material corresponding to the first content block based on the first information associated with the first content block.
[0104] The first information associated with the first content block can be understood as information in the first document that is related to the first content block and can help generate the first recommended material. In other words, the first information associated with the first content block serves as the basis for generating the first recommended material, and the first recommended material is related to the first information associated with the first content block.
[0105] The context information of the first content block can be understood as the document content of other content blocks in the first document that are associated with the first content block. For example, the context information of the first content block may include the document content of content blocks in the first document that precede the first content block (e.g., including the content block title and content block body) and the document content of content blocks in the first document that follow the first content block (e.g., including the content block title and content block body). Since the context information of the first content block is related to the document content of the first content block in terms of position, the context information of the first content block is of reference value for editing the document content of the first content block. Therefore, the first recommended material can be generated by combining the context information of the first content block.
[0106] The content block title corresponding to the first content block can reflect the theme of the first content block. For example, multi-level headings related to the first content block can be identified. These multi-level headings can include the first heading in the first content block and at least one parent heading associated with the first heading. By concatenating these multi-level headings, the content block title is obtained. In other words, considering the accuracy of the content block title, in one or more embodiments of this paper, not only the first heading in the first content block is identified, but also higher-level parent headings associated with the first content block are additionally identified. By concatenating these parent headings, the content block title includes multi-level headings from broad to narrow scope, ensuring the semantic coherence and accuracy of the content block title. Thus, by concatenating multi-level headings, an accurate content block title for the first content block is obtained. Based on the accurate content block title of the first content block, the accurate and complete content of the content block text can be obtained, thereby improving the accuracy of the content block text integrity determination.
[0107] Since the title of the first content block can indicate the document content that the first content block should include to a certain extent, the title of the first content block is of reference value for editing the document content of the first content block. Therefore, the first recommended material can be generated by combining the title of the first content block.
[0108] Considering that the first document may contain the content of the same content block (i.e., the first content block) in the historical update cycle (e.g., including the main text and comments), the content of the historical content block is of reference value for the writing of the first content block in the current update cycle. Therefore, the first recommended material can also be generated by combining the content of the historical content block.
[0109] One or more embodiments in this document do not limit the method of obtaining historical content blocks. In the case of a document containing document content from multiple update cycles in the same document, the historical content block can be obtained directly from the first document. For example, the first document is a weekly report document, and the first content block is section A in the weekly report document. In each update cycle, the document content is edited in the first document. Therefore, the document content of the previous update cycle can be located from the first document, and then the historical content block (i.e., section A) can be located from the document content of the previous update cycle.
[0110] For cases where document content from different update cycles is scattered across different documents, i.e., a new document is created for each update cycle, and the content of that update cycle is updated within the new document, considering that document titles from different update cycles are usually quite similar, we first use the document title to retrieve the historical document, and then retrieve the historical content block from the historical document. For example, if the first document is a weekly report document, and the first content block is section A in the weekly report document, we first use the document title of the first document (e.g., the 10th weekly report) to retrieve the historical document (e.g., the document title of the historical document could be the 9th weekly report), and then locate the historical content block (i.e., section A) in the historical document.
[0111] In this way, by combining the first information associated with the first content block, the first recommended material corresponding to the first content block is generated, ensuring that the first recommended material is strongly related to at least some of the content to be improved in the first content block, and ensuring that the first recommended material can play a good role in document editing assistance.
[0112] In some possible implementations, generating and storing the first recommended material corresponding to the first content block based on the first information associated with the first content block includes: obtaining first query information based on the first information associated with the first content block, wherein the first query information is used to query information updated within the time period corresponding to the first document, and the time period corresponding to the first document is determined by the document title of the first document or the update cycle of the first document; and retrieving the first recommended material based on the first query information.
[0113] The first query information can be understood as a query statement used to retrieve materials that can generate the first recommended material. The first query information is generated based on the first information associated with the first content block; that is, the first query information has a strong correlation with both the document type and the first content block of the first document, ensuring that the retrieval process targets the first content block within the first document. The first query information can be used to retrieve candidate materials related to at least a portion of the document content to be improved within the first content block. For example, the first query information can be used to retrieve candidate materials related to the title of the content block within the first content block.
[0114] Considering that periodically updated documents are updated and maintained in each update cycle, to reduce the retrieval of candidate materials unrelated to the current update cycle, the first query information can be time-limited. The time period corresponding to the first document can be understood as the time period corresponding to this update. The time period corresponding to the first document is the same as the duration of the first document's update cycle. The starting point of the time period corresponding to the first document can be the end of the previous update cycle. For example, if the first document is a weekly report document, the update cycle of the first document is one week, the previous update cycle is from January 1st to January 7th, and the first content block is section A in the weekly report document, the first query information could be "What new results were found in section A between January 8th and January 14th?".
[0115] Since past candidate materials have low reference value for document editing in the current update cycle (i.e., the time period corresponding to the first document), content to limit the update time is added to the first query information. This ensures that the first query information can only be used to retrieve candidate materials after the time period corresponding to the first document, thus ensuring that the candidate information retrieved using the first query information is all candidate materials updated within the current update cycle. This reduces the adverse impact of candidate materials updated too early on document editing in the current update cycle. By adjusting the first query information, the accuracy of the first recommended material is improved.
[0116] One or more embodiments of this document do not limit the method of obtaining the first query information. In some embodiments, a query template for the first query information is pre-configured, and the first query information is obtained by extracting some key information from the first information associated with the first content block and filling the key information into the query template.
[0117] In other embodiments, the first query information is obtained automatically using a model. For example, the first query information is obtained based on the first information associated with the first content block, including: sending the first information associated with the first content block to the first model, and obtaining the first query information based on the output of the first model.
[0118] The first model can be understood as any artificial intelligence model with the ability to recognize element information. For example, the first model can include any one or a combination of multiple large-scale models such as language models, speech models, vision models, and multimodal models. For example, the first model can be a model built on a transformer architecture, a model built on a recurrent neural network, a model built on an attention mechanism, etc. Alternatively, the first model can also be a model obtained by improving on the transformer architecture, such as a mixture of experts (MoE) model.
[0119] For example, based on the first query information, a search is performed in at least one data source that corresponds to the first document type and which the first operator has access to obtain the first recommended material. In other words, different document types are configured with different data sources, and the data sources match the access permissions of the first operator. That is, when recommending materials for documents of different document types, recommended materials can be generated from different data sources as material acquisition channels.
[0120] For example, retrieving based on the first query information to obtain the first recommended material includes: retrieving based on the first query information to obtain multiple candidate recall information, and obtaining the first recommended material based on the first information associated with the first content block and the multiple candidate recall information.
[0121] Candidate recall information can be understood as candidate materials used to generate the first recommended material. Candidate recall information can be, for example, data from at least one data source corresponding to a document type. In other words, the process of generating the first recommended material can be divided into two stages: candidate material retrieval and candidate material integration. In the candidate material retrieval stage, a search is performed based on the first query information to obtain multiple candidate recall information entries, from which candidate materials are selected. In the candidate material integration stage, the multiple candidate recall information entries are analyzed and organized to generate the first recommended material that meets the material recommendation requirements and can be provided to the operator performing the first operation.
[0122] For example, the model can be used to automatically integrate candidate recall information, sending the first information associated with the first content block and multiple candidate recall information to the second model, and obtaining the first recommended material based on the output of the second model.
[0123] The second model can be understood as any artificial intelligence model with the ability to recognize element information. For example, the second model can include any one or a combination of multiple large-scale models such as language models, speech models, vision models, and multimodal models. For example, the second model can be a model built on a transformer architecture, a model built on a recurrent neural network, a model built on an attention mechanism, etc. Alternatively, the second model can also be a model obtained by improving on the transformer architecture, such as a mixture of experts (MoE) model.
[0124] It should be noted that in some embodiments, the first model and the second model can be the same artificial intelligence model, while in other embodiments, the first model and the second model can be different artificial intelligence models. One or more embodiments herein do not limit this.
[0125] In this way, through the two stages of candidate material retrieval and candidate material integration, candidate materials (i.e., multiple candidate recall information) related to at least part of the document content to be improved in the first content block are obtained, ensuring the richness of candidate materials. Then, the candidate materials are automatically integrated to form the first recommended material that can be provided to the operator of the first operation. This eliminates the need for the operator of the first operation to manually organize candidate materials, and the first recommended material can provide intuitive assistance in the document editing scenario.
[0126] Step S203: In response to the first operation triggered by the first operator on the first content block, send the first recommended material to the first operator.
[0127] The first operation can be used to trigger material recommendations for the first content block. That is, when the first operator is editing a document for the first content block, the first operation can be triggered to achieve material recommendations for the first content block.
[0128] For example, the document page of the first document containing the first content block can provide a material recommendation control, and the first operator can trigger the first operation by triggering the material recommendation control; or, for example, the triggering logic of the first operation can be pre-configured, and when the operation triggered by the first operator in the first document containing the first content block meets the triggering logic of the first operation, the first operation is triggered.
[0129] For example, the triggering logic for the first operation can be: when the first operator opens the first document, the first operation is triggered; or, the triggering logic for the first operation can also be: when the first operator opens the first document and moves to the first content block, the first operation is triggered.
[0130] In other words, before the first operator triggers the first operation, the first recommended material is pre-generated and stored. When the first operator actually triggers the first operation, the already generated first recommended material is directly provided to the first operator. There is no need to generate the first recommended material in real time in response to the first operation, which shortens the response time to the first operation, improves the material recommendation speed, and reduces the waiting time of the first operator.
[0131] After the first recommended material is generated in advance, the first recommended material can be stored in the following way: the first recommended material is associated with the document identifier of the first document in which the first content block is located and the operator identifier of the first operator.
[0132] For example, the first recommended material can be associated with the document identifier of the first document and the operator identifier of the first operator, respectively, and stored in a database that communicates with the server of the document processing system.
[0133] In other words, when storing the first recommended material, a mapping relationship is established between the first recommended material, the first document, and the first operator. Thus, when the first operator edits the first document (e.g., the first content block in the first document), such as triggering the first operation, the pre-generated first recommended material can be provided to the first operator based on the operator's operator identifier and the document identifier of the first document associated with the first operation. This ensures that the correspondence between the operator, the document, and the recommended material is unique, reducing the possibility of providing incorrect or mismatched recommended materials to the first operator and ensuring the effectiveness of the material recommendation.
[0134] In one or more embodiments of this document, the first recommended material can provide multifaceted assistance to the first operator in the document editing scenario of the first content block. For example, sending the first recommended material to the first operator may include any of the following: sending the first recommended material to the first operator so that the first recommended material is presented to the first operator at a first position associated with the first content block, or sending the first recommended material to the first operator to generate second document content so that the second document content generated based on the first recommended material is presented to the first operator in the first content block.
[0135] The first position associated with the first content block can be understood as a position that is related to the location of the first content block. For example, the first position associated with the first content block could be above the first content block.
[0136] On the one hand, the first recommended material can be directly pushed to the first operator. By presenting the first recommended material to the first operator, the first operator can view the first recommended material and use it to edit at least some of the document content that needs to be improved in the first content block. For example, it can write at least some of the missing document content in the first content block, or modify at least some of the document content that needs to be updated in the first content block. On the other hand, the first recommended material can also be used to generate second document content. The second document content can be at least some of the missing document content in the first content block, or at least some of the updated document content in the first content block. By presenting the second document content to the first operator, the first operator does not need to manually edit the document, thus realizing the automatic continuation or automatic rewriting of the first content block.
[0137] Based on the material recommendation method provided in at least one embodiment of this paper, at least one embodiment of this paper also provides a material recommendation device. The following will be combined with... Figure 3 A detailed description of the material recommendation device is provided.
[0138] Figure 3 The schematic diagram illustrates a structural schematic of a material recommendation device provided in at least one embodiment of this document.
[0139] like Figure 3 As shown, the material recommendation device 300 of this embodiment includes an acquisition module 301 and a processing module 302. For example, the acquisition module 301 and the processing module 302 can be implemented by hardware (e.g., circuit) modules or software modules, as is the case in the following embodiments, and will not be repeated here. For example, the acquisition module 301 and the processing module 302 can be implemented by a central processing unit (CPU), a general-purpose graphics processing unit (GPGPU), a graphics processing unit (GPU), a tensor processor (TPU), a field-programmable gate array (FPGA), or other forms of processing units with data processing capabilities and / or instruction execution capabilities, along with corresponding computer instructions.
[0140] The acquisition module 301 is configured to acquire the first content block associated with the first operator. For example, the acquisition module 301 can be configured to execute step S201 described above. The specific implementation principle can be found in the relevant description of step S201, and will not be repeated here.
[0141] Processing module 302 is configured to: in response to satisfying the material generation conditions corresponding to the first content block, generate and store a first recommended material corresponding to the first content block, wherein the first recommended material is related to at least a portion of the content of the first content block that needs to be improved in the current update cycle. For example, processing module 302 can be configured to execute step S202 described above; its specific implementation principle can be found in the relevant description of step S202, and will not be repeated here.
[0142] The sending module 303 is configured to send the first recommended material to the first operator in response to the first operation triggered by the first operator on the first content block. For example, the sending module 303 can be configured to execute step S203 described above; its specific implementation principle can be found in the relevant description of step S203, and will not be repeated here.
[0143] In at least one embodiment of this document, the acquisition module 301 is further configured to: based on a first mapping relationship, acquire the first content block associated with the first operator from multiple content blocks included in multiple candidate documents, wherein the first mapping relationship is used to characterize the association relationship between the first operator, the candidate documents and the content block.
[0144] In at least one embodiment of this document, the first mapping relationship is constructed as follows: based on the editing information of the plurality of candidate documents, at least one candidate document associated with the first operator is obtained; based on the historical editing information of the first operator and the document content of the at least one candidate document associated with the first operator, at least one content block associated with the first operator is obtained from the at least one candidate document associated with the first operator; based on the at least one candidate document associated with the first operator and the at least one content block associated with the first operator, the first mapping relationship is constructed.
[0145] In at least one embodiment of this document, obtaining at least one candidate document associated with the first operator based on the editing information of the plurality of candidate documents includes: filtering the plurality of candidate documents according to the document types corresponding to the plurality of candidate documents to obtain a set of candidate documents whose document type is periodically updated documents; and obtaining at least one candidate document associated with the first operator based on the editing information of each candidate document in the set of candidate documents.
[0146] In at least one embodiment of this document, the processing module 302 is further configured to: generate and store a first recommended material corresponding to the first content block in response to the arrival of the material generation time corresponding to the first content block; or generate and store a first recommended material corresponding to the first content block in response to receiving a material generation instruction for the first content block.
[0147] In at least one embodiment of this document, the processing module 302 is further configured to: obtain the material generation time of the first content block in the current update cycle according to the update cycle of the first document in which the first content block is located; and generate and store the first recommended material corresponding to the first content block in response to the arrival of the material generation time.
[0148] In at least one embodiment of this document, the processing module 302 is further configured to: obtain a first time interval based on the update cycle of the first document in which the first content block is located, and obtain the update time of the first document corresponding to the current update cycle; and obtain the material generation time of the first content block in the current update cycle based on the time corresponding to the first time interval before the update time.
[0149] In at least one embodiment of this document, the processing module 302 is further configured to: obtain association information related to the first content block; and, in response to the association information indicating that editing of the first document containing the first content block is initiated, generate and store the first recommended material corresponding to the first content block.
[0150] In at least one embodiment of this document, the processing module 302 is further configured to: in response to satisfying the material generation conditions, obtain first information associated with the first content block, wherein the first information associated with the first content block includes at least one of the following: context information of the first content block, content block title corresponding to the first content block, and content of historical content blocks corresponding to the first content block, wherein the content of historical content blocks includes the content of the first content block in the previous update cycle; and generate and store first recommended material corresponding to the first content block based on the first information associated with the first content block.
[0151] In at least one embodiment of this document, the first recommended material is stored in the following manner: the first recommended material is associated with the document identifier of the first document containing the first content block and the operator identifier of the first operator, respectively.
[0152] In at least one embodiment of this document, the sending module 303 is further configured to: send the first recommended material to the first operating party so that the first recommended material is presented to the first operating party at a first position associated with the first content block; or send the first recommended material to the first operating party so that a second document content generated based on the first recommended material is presented to the first operating party in the first content block.
[0153] It should be noted that, for clarity and brevity, at least one embodiment herein does not show all the constituent units of the material recommendation device 300. To achieve the necessary functions of the material recommendation device 300, those skilled in the art can provide and configure other constituent units (not shown) according to specific needs, and one or more embodiments herein do not impose any limitations on this.
[0154] At least one embodiment of this document also provides an electronic device, including a processing device and a storage device, the storage device including one or more computer program modules; wherein the one or more computer program modules are stored in the storage device and configured to be executed by the processing device, the one or more computer program modules being used to implement the material recommendation method provided in any embodiment of this document.
[0155] For example, the processing device may be a processor, such as a central processing unit (CPU), digital signal processor (DSP), image processor (GPU), general-purpose graphics processor (GPGPU), or other form of processing unit with data processing capabilities and / or instruction execution capabilities. It may be a general-purpose processor or a dedicated processor and may control other components in the electronic device to perform the desired functions.
[0156] For example, the storage device may be a memory, and may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory. The non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and a processing device may execute the program instructions to implement the functions (implemented by the processing device) in at least one embodiment herein and / or other desired functions. Various application programs and various data may also be stored in the computer-readable storage medium, which is not limited by one or more embodiments herein.
[0157] The following is for reference. Figure 4This document illustrates a structural schematic of an electronic device (e.g., a terminal device or server) 400 suitable for implementing at least one embodiment of this document. The terminal device in at least one embodiment of this document may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of at least one embodiment herein.
[0158] like Figure 4 As shown, electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 401, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 402 or a program loaded from storage device 408 into random access memory (RAM) 403. RAM 403 also stores various programs and data required for the operation of electronic device 400. Processing device 401, ROM 402, and RAM 403 are interconnected via bus 404. Input / output (I / O) interface 405 is also connected to bus 404.
[0159] Typically, the following devices can be connected to I / O interface 405: input devices 406 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 407 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 408 including, for example, magnetic tapes, hard disks, etc.; and communication devices 409. Communication device 409 allows electronic device 400 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 4 An electronic device 400 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0160] In particular, according to one or more embodiments herein, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, one or more embodiments herein include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 409, or installed from storage device 408, or installed from ROM 402. When the computer program is executed by processing device 401, it performs the functions defined above in the methods of at least one embodiment herein.
[0161] It should be noted that the computer-readable medium described above can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this document, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0162] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0163] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0164] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the aforementioned material recommendation method.
[0165] Computer program code for performing the operations described herein may be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0166] One or more embodiments of this document also provide a computer program product comprising one or more computer instructions. When the computer instructions are loaded and executed on a computing device, all or part of the processes or functions described in any embodiment of this document are generated.
[0167] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, or data center to another website, computer, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.
[0168] When the computer program product is executed by a computer, the computer performs any of the aforementioned material recommendation methods. The computer program product can be a software installation package; when any of the aforementioned material recommendation methods needs to be used, the computer program product can be downloaded and executed on the computer.
[0169] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments herein. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0170] The units or modules described in at least one embodiment herein can be implemented in software or hardware. The names of the units or modules do not, in some cases, constitute a limitation on the unit or module itself.
[0171] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0172] In the context of this document, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0173] According to one or more embodiments of this document, Example 1 provides a material recommendation method, including:
[0174] Retrieve the first content block associated with the first operator;
[0175] In response to meeting the material generation conditions corresponding to the first content block, a first recommended material corresponding to the first content block is generated and stored, wherein the first recommended material is related to at least part of the document content to be improved in the current update cycle of the first content block;
[0176] In response to the first operation triggered by the first operator on the first content block, the first recommended material is sent to the first operator.
[0177] According to one or more embodiments of this document, Example 2 provides the method for obtaining the first content block as described in Example 1, including:
[0178] Based on the first mapping relationship, the first content block associated with the first operator is obtained from the multiple content blocks included in the multiple candidate documents, wherein the first mapping relationship is used to characterize the association relationship between the first operator, the candidate documents and the content block.
[0179] According to one or more embodiments of this document, Example 3 provides that the first mapping relationship in Example 2 is constructed in the following manner:
[0180] Based on the editing information of the multiple candidate documents, at least one candidate document associated with the first operator is obtained;
[0181] Based on the historical editing information of the first operator and the document content of at least one candidate document associated with the first operator, at least one content block associated with the first operator is obtained from the at least one candidate document associated with the first operator.
[0182] The first mapping relationship is constructed based on at least one candidate document associated with the first operator and at least one content block associated with the first operator.
[0183] According to one or more embodiments of this document, Example 4 provides the method in Example 3 for obtaining at least one candidate document associated with the first operator based on the editing information of the plurality of candidate documents, including:
[0184] Based on the document types corresponding to the multiple candidate documents, the multiple candidate documents are filtered to obtain a set of candidate documents whose document type is periodically updated documents;
[0185] Based on the editing information of each candidate document in the candidate document set, at least one candidate document associated with the first operator is obtained.
[0186] According to one or more embodiments of this document, Example 5 provides the method in Example 1 for generating and storing first recommended material corresponding to the first content block in response to satisfying the material generation conditions corresponding to the first content block, including:
[0187] In response to the arrival of the material generation time corresponding to the first content block, generate and store the first recommended material corresponding to the first content block; or
[0188] In response to receiving a material generation instruction for the first content block, generate and store the first recommended material corresponding to the first content block.
[0189] According to one or more embodiments of this document, Example Six provides the method of generating and storing first recommended material corresponding to the first content block in response to the material generation time corresponding to the first content block, as described in Example Five, including:
[0190] Based on the update cycle of the first document containing the first content block, obtain the material generation time of the first content block in the current update cycle;
[0191] In response to the arrival of the material generation time, the first recommended material corresponding to the first content block is generated and stored.
[0192] According to one or more embodiments of this document, Example 7 provides the method in Example 6 for obtaining the material generation time of the first content block in the current update cycle based on the update cycle of the first document to which the first content block is located, including:
[0193] Based on the update cycle of the first document containing the first content block, obtain the first time interval and the update time of the first document corresponding to the current update cycle;
[0194] Based on the time corresponding to the first time interval before the update time, obtain the material generation time of the first content block in the current update cycle.
[0195] According to one or more embodiments of this document, Example 8 provides the method described in Example 5 for generating and storing first recommended material corresponding to the first content block in response to receiving a material generation instruction for the first content block, including:
[0196] Obtain the association information related to the first content block;
[0197] In response to the association information indication, editing of the first document containing the first content block is initiated, and the first recommended material corresponding to the first content block is generated and stored.
[0198] According to one or more embodiments of this document, Example 9 provides the method of generating and storing first recommended material corresponding to the first content block in response to satisfying the material generation conditions, as in Example 1, including:
[0199] In response to meeting the material generation conditions, first information associated with the first content block is obtained, wherein the first information associated with the first content block includes at least one of the following: context information of the first content block, content block title corresponding to the first content block, and content of historical content blocks corresponding to the first content block, wherein the content of historical content blocks includes the content of the first content block in the previous update cycle;
[0200] Based on the first information associated with the first content block, generate and store the first recommended material corresponding to the first content block.
[0201] According to one or more embodiments of this document, Example 10 provides that the first recommended material in any of Examples 1 to 9 is stored in the following manner:
[0202] The first recommended material is associated and stored with the document identifier of the first document containing the first content block and the operator identifier of the first operator, respectively.
[0203] According to one or more embodiments of this document, Example 11 provides a method in any of Examples 1 to 9 where sending the first recommended material to the first operator includes any one of the following:
[0204] Send the first recommended material to the first operator, so that the first recommended material is presented to the first operator at a first position associated with the first content block; or
[0205] The first recommended material is sent to the first operator to present the second document content generated based on the first recommended material to the first operator in the first content block.
[0206] According to one or more embodiments of this document, Example Twelve provides a material recommendation apparatus, comprising:
[0207] The acquisition module is configured to: acquire the first content block associated with the first operator;
[0208] The processing module is configured to: generate and store a first recommended material corresponding to the first content block in response to satisfying the material generation conditions corresponding to the first content block, wherein the first recommended material is related to at least part of the content of the first content block that needs to be improved in the current update cycle;
[0209] The sending module is configured to: in response to a first operation triggered by the first operator on the first content block, send the first recommended material to the first operator.
[0210] According to one or more embodiments herein, Example Thirteen provides an electronic device comprising:
[0211] At least one processor; and
[0212] At least one memory, including one or more computer program instructions;
[0213] The one or more computer program instructions are executed by a processor at runtime using the material recommendation method provided in at least one embodiment of this document.
[0214] According to one or more embodiments herein, Example Fourteen provides a computer-readable storage medium that non-transitory stores computer-readable instructions, wherein the material recommendation method provided in at least one embodiment herein is implemented when the computer-readable instructions are executed by a processor.
[0215] According to one or more embodiments of this document, Example Fifteen provides a computer program product including a computer program that, when executed by a processor, implements the material recommendation method provided in at least one embodiment of this document.
[0216] The above description is merely a preferred embodiment and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure herein is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed herein that have similar functions.
[0217] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in sequential order. Multitasking and parallel processing may be advantageous in certain environments. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this document. Certain features described in the context of a single embodiment may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0218] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for recommending materials, comprising: Retrieve the first content block associated with the first operator; In response to meeting the material generation conditions corresponding to the first content block, a first recommended material corresponding to the first content block is generated and stored, wherein the first recommended material is related to at least part of the document content to be improved in the current update cycle of the first content block; In response to the first operation triggered by the first operator on the first content block, the first recommended material is sent to the first operator.
2. The method according to claim 1, wherein, The process of obtaining the first content block includes: Based on the first mapping relationship, the first content block associated with the first operator is obtained from the multiple content blocks included in the multiple candidate documents, wherein the first mapping relationship is used to characterize the association relationship between the first operator, the candidate documents and the content block.
3. The method according to claim 2, wherein, The first mapping relationship is constructed in the following way: Based on the editing information of the multiple candidate documents, at least one candidate document associated with the first operator is obtained; Based on the historical editing information of the first operator and the document content of at least one candidate document associated with the first operator, at least one content block associated with the first operator is obtained from the at least one candidate document associated with the first operator. The first mapping relationship is constructed based on at least one candidate document associated with the first operator and at least one content block associated with the first operator.
4. The method according to claim 3, wherein, The step of obtaining at least one candidate document associated with the first operator based on the editing information of the plurality of candidate documents includes: Based on the document types corresponding to the multiple candidate documents, the multiple candidate documents are filtered to obtain a set of candidate documents whose document type is periodically updated documents; Based on the editing information of each candidate document in the candidate document set, at least one candidate document associated with the first operator is obtained.
5. The method according to claim 1, wherein, The step of generating and storing the first recommended material corresponding to the first content block in response to satisfying the material generation conditions corresponding to the first content block includes: In response to the arrival of the material generation time corresponding to the first content block, generate and store the first recommended material corresponding to the first content block; or In response to receiving a material generation instruction for the first content block, generate and store the first recommended material corresponding to the first content block.
6. The method according to claim 5, wherein, The step of generating and storing the first recommended material corresponding to the first content block in response to the material generation time corresponding to the first content block includes: Based on the update cycle of the first document containing the first content block, obtain the material generation time of the first content block in the current update cycle; In response to the arrival of the material generation time, the first recommended material corresponding to the first content block is generated and stored.
7. The method according to claim 6, wherein, The step of obtaining the material generation time of the first content block in the current update cycle based on the update cycle of the first document to which the first content block is located includes: Based on the update cycle of the first document containing the first content block, obtain the first time interval and the update time of the first document corresponding to the current update cycle; Based on the time corresponding to the first time interval before the update time, the material generation time of the first content block in the current update cycle is determined.
8. The method according to claim 5, wherein, The step of generating and storing the first recommended material corresponding to the first content block in response to receiving the material generation instruction for the first content block includes: Obtain the association information related to the first content block; In response to the association information indication, editing of the first document containing the first content block is initiated, and the first recommended material corresponding to the first content block is generated and stored.
9. The method according to claim 1, wherein, The step of generating and storing the first recommended material corresponding to the first content block in response to meeting the material generation conditions includes: In response to meeting the material generation conditions, first information associated with the first content block is obtained, wherein the first information associated with the first content block includes at least one of the following: context information of the first content block, content block title corresponding to the first content block, and content of historical content blocks corresponding to the first content block, wherein the content of historical content blocks includes the content of the first content block in the previous update cycle; Based on the first information associated with the first content block, generate and store the first recommended material corresponding to the first content block.
10. The method according to any one of claims 1 to 9, wherein, The first recommended material is stored in the following manner: The first recommended material is associated and stored with the document identifier of the first document containing the first content block and the operator identifier of the first operator.
11. The method according to any one of claims 1 to 9, wherein, Sending the first recommended material to the first operator includes any one of the following: Send the first recommended material to the first operator, so that the first recommended material is presented to the first operator at a first position associated with the first content block; or The first recommended material is sent to the first operator to present the second document content generated based on the first recommended material to the first operator in the first content block.
12. A material recommendation device, comprising: The acquisition module is configured to: acquire the first content block associated with the first operator; The processing module is configured to: generate and store a first recommended material corresponding to the first content block in response to satisfying the material generation conditions corresponding to the first content block, wherein the first recommended material is related to at least part of the content of the first content block that needs to be improved in the current update cycle; The sending module is configured to: in response to a first operation triggered by the first operator on the first content block, send the first recommended material to the first operator.
13. An electronic device, comprising: At least one processor; as well as At least one memory, including one or more computer program instructions; The one or more computer program instructions are executed by the processor to perform the method according to any one of claims 1 to 11.
14. A computer-readable storage medium for non-transitory storage of computer-readable instructions, wherein, The method of any one of claims 1 to 11 is implemented when the computer-readable instructions are executed by a processor.
15. A computer program product comprising a computer program that, when executed by a processor, implements the method of any one of claims 1 to 11.