Content publishing method and device, equipment and storage medium
By obtaining content generation instructions and using language models to generate initial content, and performing content inspection and typesetting, the problem of complex operations and publishing processes affecting efficiency in content creation is solved, and efficient content release and quality assurance is achieved.
Patent Information
- Application Number
- CN202410956914.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-08
AI Technical Summary
In the process of content creation, complex creative operations and publishing processes affect the efficiency of content creation, making it difficult for creators to focus on the creation of the content itself, and they need to be familiar with the publishing process specifications of each platform.
Provide a content publishing method, by obtaining content generation instructions, using the language model to generate initial content according to the target writing requirements, and performing content inspection and typesetting, automatically adapting to the publishing rules of different content platforms, reducing the creation time and manual adjustments of creators.
It improves content creation efficiency, reduces the creative time of creators, ensures content quality, and realizes automated releases for different content platforms, simplifying the creative process of creators.
Smart Images

Figure CN118917275A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and specifically to a content publishing method, device, equipment and storage medium. Background Art
[0002] The rapid development of emerging technology industries such as big data and the Internet has placed higher demands on content creation. In terms of content quality, creators are required to create higher quality content that better meets the needs of readers. In terms of content quantity, creators are required to create more content to meet the needs of readers who want to read more content.
[0003] At present, in the process of content creation, complex creation operations and publishing processes have become important factors affecting the efficiency of content creation. Creators need to be familiar with cumbersome creation operations and the norms of content publishing processes on various platforms while creating high-quality content. It is difficult for creators to focus on the creation of the content itself, which affects the efficiency of content publishing. Summary of the invention
[0004] In view of this, the present application provides a content publishing method, apparatus, device and storage medium, which can improve the efficiency of content publishing.
[0005] The technical solutions provided by this application are as follows:
[0006] In a first aspect, the present application provides a content publishing method, the method comprising:
[0007] Obtaining a content generation instruction, wherein the content generation instruction includes target writing requirement information, wherein the target writing requirement information is used to describe requirements to be met by the content to be generated, and the writing requirement information is used to guide the generation of the content;
[0008] Using a language model to write requirement information according to the target and generate initial content;
[0009] performing a content check on the initial content;
[0010] According to the layout rules of the target content platform, the initial content that has passed the content check is layouted to obtain the content to be published;
[0011] The to-be-published content is published on the target content platform.
[0012] In a possible implementation, the obtaining of the content generation instruction includes:
[0013] In response to obtaining a trigger instruction for a writing requirement configuration control, displaying a plurality of candidate writing requirement information, the candidate writing requirement information including a role type and a role writing requirement corresponding to the role type, the role type being a role involved in the content to be generated, and the role writing requirement being a requirement to be met by the content to be generated for the role type;
[0014] In response to acquiring a selection instruction for target writing requirement information belonging to the plurality of candidate writing requirement information, a content generation instruction is generated.
[0015] In a possible implementation, the content generation instruction further includes a target title, where the target title is a title of the content to be generated, and the method further includes:
[0016] In response to obtaining a trigger instruction for a title configuration control, displaying a plurality of candidate titles, wherein the candidate titles are generated based on content search keywords after repeated screening and quality screening;
[0017] Obtaining a selection instruction for a target title, the target title belonging to the plurality of candidate titles;
[0018] The using of the language model to generate initial content according to the target writing requirement information includes:
[0019] The language model is used to generate initial content according to the target writing requirement information and the target title.
[0020] In a possible implementation, the role type includes one or more of a system role, a questioner role, and an answerer role, and the role writing requirement includes information in one or more of the following dimensions:
[0021] System role style, questioner portrait, writing tasks, writing style, content framework and content highlights.
[0022] In a possible implementation, before typesetting the initial content that has passed the content check according to the typesetting rules of the target content platform to obtain the content to be published, the method further includes:
[0023] Taking the content platform where the initial content that has passed the content check has not been published as the target content platform;
[0024] Obtain the layout rules of the target content platform.
[0025] In a possible implementation manner, publishing the to-be-published content on the target content platform includes:
[0026] Determining that the content to be published meets the publishing conditions of the target content platform;
[0027] The to-be-published content is published on the target content platform according to a preset publishing rule, wherein the publishing rule includes one or more of a content publishing interval and a publishing time period.
[0028] In a possible implementation, the method further includes:
[0029] The language model is adjusted using the initial content that has passed the content inspection.
[0030] In a second aspect, the present application provides a content publishing device, the device comprising:
[0031] An acquisition unit, configured to acquire a content generation instruction, wherein the content generation instruction includes target writing requirement information, wherein the target writing requirement information is used to describe requirements to be met by the content to be generated, and the writing requirement information is used to guide the generation of the content;
[0032] A content generation unit, configured to generate initial content according to the target writing requirement information using a language model;
[0033] A content inspection unit, configured to perform content inspection on the initial content;
[0034] A content layout unit is used to layout the initial content that has passed the content check according to the layout rules of the target content platform to obtain the content to be published;
[0035] A publishing unit is used to publish the content to be published on the target content platform.
[0036] In one possible implementation, the acquisition unit is specifically used to display multiple candidate writing requirement information in response to acquiring a trigger instruction for a writing requirement configuration control, the candidate writing requirement information including a role type and a role writing requirement corresponding to the role type, the role type being a role involved in the content to be generated, and the role writing requirement being a requirement that the content to be generated must meet for the role type; and generate a content generation instruction in response to acquiring a selection instruction for target writing requirement information, the target writing requirement information belonging to the multiple candidate writing requirement information.
[0037] In a possible implementation, the content generation instruction further includes a target title, which is a title of the content to be generated. The acquisition unit is further configured to, in response to acquiring a trigger instruction for a title configuration control, display a plurality of candidate titles, wherein the candidate titles are generated based on content search keywords after repeated screening and quality screening; and acquire a selection instruction for the target title, wherein the target title belongs to the plurality of candidate titles;
[0038] The content generation unit is specifically configured to generate initial content using a language model according to the target writing requirement information and the target title.
[0039] In a possible implementation, the role type includes one or more of a system role, a questioner role, and an answerer role, and the role writing requirement includes information in one or more of the following dimensions:
[0040] System role style, questioner portrait, writing tasks, writing style, content framework and content highlights.
[0041] In a possible implementation manner, the device further includes:
[0042] The determination unit is used to take the content platform where the initial content that has passed the content check has not been published as the target content platform; and obtain the typesetting rules of the target content platform.
[0043] In a possible implementation, the publishing unit is specifically used to determine whether the content to be published meets the publishing conditions of the target content platform; and publish the content to be published on the target content platform according to preset publishing rules, wherein the publishing rules include one or more of a content publishing interval and a publishing time period.
[0044] In a possible implementation manner, the device further includes:
[0045] The model adjustment unit is used to adjust the language model by using the initial content that passes the content inspection.
[0046] In a third aspect, the present application provides a device, including: a processor, a memory, and a system bus;
[0047] The processor and the memory are connected via the system bus;
[0048] The memory is used to store one or more programs, and the one or more programs include instructions. When the instructions are executed by the processor, the processor executes the method described in any embodiment of the first aspect.
[0049] In a fourth aspect, the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a terminal device, the terminal device executes the method described in any implementation of the first aspect above.
[0050] It can be seen that this application has the following beneficial effects:
[0051] The present application provides a content publishing method, device, equipment and storage medium. Obtain content generation instructions including target writing requirements. The target writing requirements are relatively clear and specific requirements selected by the creator to guide content generation. Using a language model to automatically generate initial content based on the target writing requirements information helps the creator to focus on clarifying the content creation requirements and save the creator's time in writing content. Then perform content inspection on the generated initial content. There is no need for the creator to manually check and modify it, which can save the creator's creation time and ensure the quality of the content. According to the typesetting rules of the target content platform, the initial content that passes the content inspection is typed, and the typesetting needs for the release of different content platforms are realized. The content is automatically typed, and the creator does not need to pay attention to the typesetting rules of different content platforms, nor does it need to manually adjust the content typesetting, which further saves the creator's creation time and improves the creation efficiency. Finally, the content to be published after content typesetting is published on the target content platform. In this way, it is possible to automatically generate, check and publish content based on the target writing requirements selected by the creator, which not only reduces the creator's creation time, but also ensures higher quality content and improves the efficiency of content publishing. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of a scenario provided for an embodiment of the present application;
[0053] Figure 2 A flowchart of a content publishing method provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of a process for generating candidate titles provided in an embodiment of the present application;
[0055] Figure 4 A schematic diagram of a process of generating initial content and checking content provided in an embodiment of the present application;
[0056] Figure 5 A schematic diagram of a process of content typesetting and content publishing provided in an embodiment of the present application;
[0057] Figure 6 A schematic diagram of a model adjustment process provided in an embodiment of the present application;
[0058] Figure 7A schematic diagram of the structure of a content publishing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to facilitate the understanding and explanation of the technical solutions provided by the embodiments of the present application, the background technology of the present application will be described below.
[0060] With the rapid development of the Internet, a large number of content platforms have emerged. Creators can publish their own content on content platforms for readers to browse and realize information interaction. In order to attract readers' attention from the large amount of content published on content platforms, creators need to improve the speed of content creation and the quality of the content they create. However, in the process of creating content, creators need to consider content review requirements, the publishing process specifications of various content platforms, and readers' search tendencies in addition to the content itself. Specifically, creators may face the following problems in the process of creating content: (1) Creators need to write a large amount of content. Creators may make multiple content modifications based on content review requirements. In addition, creators need to study the publishing process specifications of the content platform before publishing so that they can operate the content in accordance with the publishing process specifications when publishing. In some cases, the content needs to be adjusted in terms of format and layout according to the publishing process specifications of the content platform. The modification process will affect the efficiency of creators in creating content. (2) Creators need to provide higher quality content. Creators need to create high-quality content to attract readers' attention from a large amount of information. (3) It is necessary to clarify the content positioning and analyze readers' needs. Creators need to understand the needs of current readers and create corresponding content based on their needs. (4) Creators need to optimize the search method of content. Creators need to pay attention to the changes in search engine optimization (SEO) and content distribution algorithms, and adjust the content they create simultaneously to increase the probability of readers browsing the created content.
[0061] The above problems in the creative process make it difficult for creators to focus on content creation, affecting the quality of the content and the efficiency of content creation.
[0062] Based on this, the embodiment of the present application provides a content publishing method. Obtain content generation instructions. The content generation instructions include relatively clear and specific target writing requirements selected by the creator. Generate initial content using a language model according to the target writing requirement information. In this way, the language model can be used to automatically create content according to the target writing requirements selected by the creator, which helps the creator to focus on clarifying the content creation requirements and reduce the time for the creator to write content. Then, the generated initial content is checked. There is no need for the creator to manually check and modify it, which can save the creator's creation time and ensure the quality of the content. According to the typesetting rules of the target content platform, the initial content that passes the content check is typeset, and the typesetting needs for the release of different content platforms are realized. The content is automatically typeset, and the creator does not need to pay attention to the typesetting rules of different content platforms, nor does it need to manually adjust the content typesetting, which further saves the creator's creation time and improves the creation efficiency. Finally, the content to be published after content typesetting is published on the target content platform. In this way, it is possible to automatically generate, check and publish content based on the target writing requirements selected by the creator, that is, to reduce the creator's creation time, and to ensure higher quality content and improve the efficiency of content creation.
[0063] In order to facilitate understanding of the technical solution provided by the embodiment of the present application, a content publishing method provided by the embodiment of the present application is described below with reference to the accompanying drawings.
[0064] First of all, it should be noted that the content publishing method provided in the embodiment of the present application can be applied to the content creation system. The content creation system can be deployed on a terminal device or on a cloud platform, and the embodiment of the present application does not limit this. In addition, the content creation system can be used as an independent system or as a subsystem integrated into other systems, such as a management system or a business system.
[0065] See also Figure 1As shown, the figure is a scenario diagram provided by an embodiment of the present application. The content creation system 101 obtains a content generation instruction triggered by a user (creator) 102. The content generation instruction includes target writing requirement information. The target writing requirement information is selected by the user 102 and is used to describe the requirements to be met by the content to be generated. The target writing requirement information includes, for example, information such as text style and content framework. The content creation system 101 calls a pre-trained language model 1011. The language model 1011 is used to generate initial content according to the target writing requirement information. The pre-trained content inspection model 1012 is then used to inspect the initial content. After the initial content passes the inspection, the content creation system 101 determines the target content platform 103 where the initial content that has passed the inspection is to be published. The content creation system 101 typeset the initial content that has passed the inspection according to the typesetting rules of the target content platform 103 to obtain the content to be published. The content creation system 101 publishes the content to be published in the target content platform 103. In this way, it is possible to realize target-based writing requirement information, automatically realize content creation, checking and publishing, simplify the creative process for creators, and achieve comprehensive optimization of the creative process, which helps creators focus on studying the content itself and improve the efficiency and quality of content creation.
[0066] Above Figure 1 The application scenario shown is only an example and the embodiments of the present application are not limited to Figure 1 Limitations of the scenario shown.
[0067] See also Figure 2 As shown, the figure is a flow chart of a content publishing method provided in an embodiment of the present application, including S201-S205:
[0068] S201: Obtain content generation instructions including target writing requirement information.
[0069] The target writing requirement information is information used to guide the generation of content. The target writing requirement information is used to describe the requirements to be met by the content to be generated. The target writing requirement information can be information selected in advance by the creator from candidate writing requirement information, or information input by the creator.
[0070] The content generation instruction can be triggered by a user (creator) or automatically triggered by a content creation system, which is not limited in the embodiments of the present application.
[0071] As an example, an embodiment of the present application provides a possible implementation method for obtaining content generation instructions including target writing requirement information.
[0072] The creator, that is, the user of the content creation system, can trigger the writing requirement configuration control displayed by the content creation system. In response to obtaining a trigger instruction for the writing requirement configuration control, multiple candidate writing requirement information is displayed. The candidate writing requirement information is pre-set in the content creation system and is selectable. The creator can select the target writing requirement information needed for this content creation from multiple candidate writing requirement information. The target writing requirement information can be one or more.
[0073] In response to the selection instruction for obtaining the target writing requirement information, a content generation instruction is generated. In this way, the user (creator) can determine the writing requirements that need to be met for this content creation by selection, which is more convenient for the creator to choose, saving the creator's time, helping the creator to conceive the content more attentively, and also improving the quality of the generated content.
[0074] The embodiments of the present application also do not limit the dimensions of the information included in the candidate writing requirement information. In some possible implementations, the candidate writing requirement information includes a role type and a requirement content corresponding to the role type. The role type is a role of different identities involved in the content to be generated. For example, the role type includes one or more of a system role, a questioner role, and an answerer role. Among them, the system role is the automatic response part of the interactive system or application itself, which may involve managing the dialogue process, sending system messages, or guiding the users of the interactive system on how to interact with the system. The questioner role is the initiator of the dialogue, usually a real human user. The questioner role obtains information, solves problems, or interacts with the system by using the system. The answerer role is the answerer of the dialogue, usually driven by artificial intelligence, and can understand and respond to the dialogue of the user (questioner) of the interactive system.
[0075] In the process of content creation, the content to be expressed by the above three types of roles may be involved. For example, in the process of creating content for insurance product evaluation, system roles, questioner roles, and answerer roles will be involved. For example, write popular science content about insurance knowledge from the perspective of a system role. Write evaluation results of insurance products from the perspective of real users from the role of a questioner. Write introduction content about insurance products from the role of an answerer. Different types of roles make it easier for creators to choose content writing requirements for different types of roles.
[0076] Different role types have different writing requirements for content. The role writing requirements corresponding to the role types included in the candidate writing requirement information are requirements that the content to be generated must meet for the role types.
[0077] As an example, the role writing requirements include one or more of system role style, questioner portrait, writing task, writing style, content framework, and content highlights.
[0078] System role style is the expression style of the system role. Questioner portrait is the portrait of the reader of the content, which is used to describe the characteristics of the questioner. Writing task is the purpose of creating this content. Text style is the style of the text of the content. Content framework is the main framework of the content to be generated. Content highlights are the main points included in the content to be generated.
[0079] As an example, see Table 1, which includes various role writing requirements provided in the embodiments of the present application, as well as the specific content of each type of role writing requirement.
[0080] Table 1
[0081]
[0082] Furthermore, in some possible implementations, the content generation instruction also includes a target title. The target title is the title of the content to be generated. The target title can be a title selected by the creator. The target title can reflect the theme of the content to be created and is used to assist in generating the content.
[0083] The embodiment of the present application also provides a possible implementation method for obtaining content generation instructions including target writing requirement information. Before triggering the writing requirement configuration control, the user can first trigger the title configuration control. In response to obtaining the trigger instruction for the title configuration control, multiple candidate titles are displayed.
[0084] The creator can select the target title required for this content creation from multiple candidate titles, triggering a selection instruction for the target title. The content creation system obtains the selection instruction for the target title.
[0085] In addition, the candidate titles can be pre-created in the content creation system. For example, the candidate titles are pre-entered by the creator in the content creation system, or generated based on keywords searched for content. In a possible implementation, see Figure 3As shown, the figure is a flow chart of generating candidate titles provided by an embodiment of the present application. Keywords of interest to readers (users of the content platform) imported by external systems such as search engines are obtained. Keywords can be hot words whose search times are greater than a threshold determined based on historical search records, or they can be associative recommended words provided by search engines to facilitate readers' searches. The imported keywords are subjected to duplicate screening and quality screening. Duplicate screening is used to remove duplicate keywords, and only one duplicate keyword is saved. Quality screening is used to remove keywords that do not meet the requirements of the title, such as deleting sensitive words. Candidate titles are generated using keywords that pass duplicate screening and quality screening. As an example, a pre-trained artificial intelligence model is called to process keywords that pass duplicate screening and quality screening to obtain candidate titles. As another example, according to pre-set title generation rules, keywords that pass duplicate screening and quality screening are processed to generate candidate titles. The generated candidate titles can be stored in a title library for creators to select.
[0086] Titles generated using search keywords make it easier for readers to search for the generated content after it is published, which can attract a large number of readers and increase their stay time, improve the efficiency of content dissemination, enhance the conversion rate of content-related business opportunities, reduce the time creators spend studying readers' search habits, and improve content creation efficiency.
[0087] Taking Table 1 as an example, taking the target title selected by the creator as: How to check medical insurance participation information, as an example, the embodiment of the present application also provides a content generation instruction including target writing requirement information and a target title.
[0088] The role field indicates the role type. The system field indicates the system role. The user field indicates the questioner role. The assistant field indicates the answerer role. The content field indicates the role writing requirements corresponding to the role type.
[0089] The content generation instruction is: prompt = [{'role':'system','content':'Please act as a senior public account editor Dabai to write. You are good at popularizing insurance knowledge and configuring insurance plans. You can explain complex insurance knowledge to readers in a concise and easy-to-understand language; please use the tone of face-to-face dialogue to start writing, and do not use third-person titles such as user / reader / audience that have a sense of distance'},{'role':'user','content':'Please write with the title "How to Check Medical Insurance Participation Information". '},{'role':'user','content':'You need to write an insurance product evaluation article to help readers quickly understand the characteristics, advantages and disadvantages of insurance products, and judge whether insurance products are worth buying; when introducing the highlights of insurance products, you need to argue according to the following logic: conditions that can be achieved - what protection / service can be obtained - the benefits of this protection / service - the value that insurance products can bring; please write in Chinese. '},{'role':'user','content':'The writing should use a conversational tone, with interesting, concise and easy to understand language, and a certain degree of interactivity. In the writing process, opinions and suggestions should be given directly without too much transition and background preparation.'},{'role':'assistant','content':'The article can discuss from the perspectives of insurance characteristics, insurance terms, purchase conditions, advantages and disadvantages, precautions, prices, purchase methods, payment methods and compensation methods. Starting from the specific life scenarios and protection needs of insurance users, corresponding insurance purchase suggestions are given for insurance users with different economic foundations, age groups, health conditions and insurance purchase needs. Please select appropriate content for discussion according to the needs of writing, and do not repeat views. In addition, appropriate case references should be made during the writing process. The cases should have specific details and convincing plots, and be able to reflect the significance and value of purchasing the insurance.'}].
[0090] S202: Generate initial content using a language model based on target writing requirement information.
[0091] The language model is pre-trained, and generates an artificial intelligence model of the initial content that meets the target writing requirement information according to the input target writing requirement information. The embodiment of the present application does not limit the type of language model. As an example, the language model is a large language model (LLM). The language model is based on natural language processing technology to ensure the fluency and logic of the initial content output while maintaining the innovation and attractiveness of the content text.
[0092] The target writing requirement information is input into the language model so that the language model generates initial content according to the target writing requirement information.
[0093] For other possible implementations, see Figure 4 As shown, this figure is a schematic diagram of a process of generating initial content and content checking provided by an embodiment of the present application. The creator pre-selects a target title and target writing requirement information to generate a content generation instruction. The target writing requirement information and target title included in the content generation instruction are input into the language model so that the language model generates initial content based on the target writing requirement information and the target title. The initial content generated in this way better meets the creator's creative needs, and there is no need for the creator to edit or adjust the title generated by the language model, thereby improving the efficiency of content creation.
[0094] S203: Perform content check on the initial content.
[0095] If the language model successfully generates initial content, the initial content needs to be checked.
[0096] Content checking includes, for example, one or more of grammar checking, spelling checking, sentence fluency checking, risk control checking, fact checking, and style consistency checking. Grammar checking is used to check whether there are grammatical problems in the language of the initial content. Spelling checking is used to check whether there are spelling errors in the initial content. Sentence fluency checking is used to check the fluency between sentences in the initial content. Risk control checking is used to check the initial content for risks. Fact checking is used to verify whether the initial content is consistent with the facts. Style consistency checking is used to check whether the style of the entire initial content is consistent. The initial content after content checking meets the basic requirements for content publication.
[0097] The embodiments of the present application do not limit the method for implementing content inspection. As an example, a pre-trained content inspection model is called to perform content inspection on the initial content. The content inspection model is used to inspect the input content. As another example, the initial content is inspected according to a pre-set content inspection rule.
[0098] See also Figure 4 As shown, if the language model successfully generates the initial content, the initial content is checked. If the initial content passes the content check, the initial content is added to the pending release pool for subsequent release. If the initial content fails the content check, the current content release is terminated.
[0099] Through automatic content checking, there is no need for creators to check, which saves creators' creation time. In addition, the quality of content that has passed content verification is high and meets the needs of content creation.
[0100] S204: Layout the initial content that has passed the content check according to the layout rules of the target content platform to obtain content to be published.
[0101] The target content platform is the content platform where the initial content that has passed the content check is to be published. The target content platform is, for example, a pre-set content platform where content needs to be published, or a content platform where the initial content that has passed the content check is not published.
[0102] As an example, see Figure 5 As shown, the figure is a schematic diagram of a process of content typesetting and content publishing provided in an embodiment of the present application.
[0103] In some possible implementations, initial content is selected from the pool to be published, and it is detected in the content platform whether the initial content has been published. For example, the identifier of the initial content and the identifier of the content platform are detected to obtain the publishing status of the initial content on the content platform. The identifier of the initial content is, for example, the number of the initial content, or the title, etc. The identifier of the initial content is used to identify the initial content. The identifier of the content platform is used to identify the content platform. If the publishing status of the initial content on the content platform is unpublished, the content platform is used as the target content platform.
[0104] The target content platform's layout rules are the layout rules for the content published on the target content platform. The target content platform's layout rules can be obtained from the target content platform after the target content platform is determined. The target content platform's layout rules can also be obtained by pre-acquiring the layout rules of various content platforms, and after the target content platform is determined, the target content platform's layout rules are obtained from the layout rules of various content platforms.
[0105] The initial content that passes the content check needs to be further typeset so that the typeset content meets the typesetting rules of the target content platform.
[0106] The initial content that has passed the content check is typeset according to the typesetting rules of the target content platform. Specifically, the typesetting rules of the target content platform include text typesetting rules, text format, and typesetting rules between text and images. Based on the typesetting rules of the target content platform, the content to be published after typesetting the initial content that has passed the content check can meet the typesetting rules of the target content platform, which is helpful for subsequent publishing on the target content platform, and also realizes automatic typesetting adaptation for the target content platform, without the need for manual typesetting adjustments, saving creators' creation time.
[0107] S205: Publish the content to be published on the target content platform.
[0108] See also Figure 5 As shown, the content to be published is published on the target content platform, and the content is automatically published. There is no need for the creator to manually publish the content, which saves the creator's creation time and further improves the efficiency of content creation.
[0109] In some possible implementations, the target content platform has corresponding publishing conditions. The publishing conditions can be the conditions that the content creation platform pre-configured to be published must meet. The publishing conditions are the conditions for publishing content on the target content platform. For example, the publishing conditions include the maximum number threshold of content published by the target content platform. If the total number of content published on the target content platform is less than the maximum number threshold, the publishing conditions are met and the content to be published is published on the target content platform. In addition, the publishing conditions also include the platform name of the target content platform. In this way, the corresponding publishing conditions can be queried using the platform name of the target content platform.
[0110] Furthermore, when publishing the content to be published, the content to be published can also be published according to the preset publishing rules. The preset publishing rules are used to indicate the way to publish the content. The publishing rules, for example, include one or more of the content publishing interval and the publishing time period. The content publishing interval is the interval between adjacent published content. The content publishing interval is, for example, 30 minutes. The publishing time period is the time period in which the content is published. For example, the publishing time period is 8:00-17:00.
[0111] Based on the above S201-S205 related content, it can be seen that by automating the generation, inspection, typesetting and publication of content, creators can get rid of auxiliary work such as modification, typesetting and publication, which is conducive to creators focusing on the content itself, enhancing the depth and breadth of the content, and while improving the quality of content, speeding up the creation of content and improving the efficiency of content publishing.
[0112] In some possible implementations, the initial content that passes the content inspection can also be used for language model adjustment. Figure 6 As shown, this figure is a flow chart of a model adjustment provided in an embodiment of the present application. In addition to the above steps, the initial content that passes the content check is added to the model training database. The initial content that passes the content check is preprocessed, including text cleaning, text normalization and word segmentation. Text cleaning is used to remove information that is irrelevant to improving model performance, such as special characters, numbers and non-text content. Text normalization is to adjust the text so that the text meets the requirements of normalization. Word segmentation is to divide continuous text into meaningful characters or words for language model processing.
[0113] The embodiment of the present application does not limit the way to trigger the language model to adjust the model. As an example, according to the preset adjustment cycle of the language model, when one cycle is reached, the language model is adjusted. As another example, when a model adjustment instruction for the language model is obtained, the language model is adjusted.
[0114] Furthermore, when the number of initial contents that have passed the content check is large, some of the initial contents that have passed the content check can be selected to perform model adjustment on the language model.
[0115] Adjusting the language model can enable the language model to learn from new content to adapt to changes in search engine algorithms and the evolution of readers' reading habits, achieve self-learning and evolution of the language model, further improve the model performance of the language model, and provide higher-quality content.
[0116] Based on the content publishing method provided by the above method embodiment, the present application embodiment also provides a content publishing device. The content publishing device will be described below in conjunction with the accompanying drawings.
[0117] See also Figure 7 As shown in FIG. 1 , this figure is a schematic diagram of the structure of a content publishing device provided in an embodiment of the present application. Figure 7 As shown, the content publishing device includes:
[0118] An acquisition unit 701 is used to acquire a content generation instruction, wherein the content generation instruction includes target writing requirement information, wherein the target writing requirement information is used to describe requirements to be met by the content to be generated, and the writing requirement information is used to guide the generation of the content;
[0119] A content generation unit 702 is used to generate initial content according to the target writing requirement information using a language model;
[0120] A content inspection unit 703, configured to perform content inspection on the initial content;
[0121] The content layout unit 704 is used to layout the initial content that has passed the content check according to the layout rules of the target content platform to obtain the content to be published;
[0122] The publishing unit 705 is used to publish the to-be-published content on the target content platform.
[0123] In one possible implementation, the acquisition unit 701 is specifically used to display multiple candidate writing requirement information in response to acquiring a trigger instruction for a writing requirement configuration control, the candidate writing requirement information including a role type and a role writing requirement corresponding to the role type, the role type being a role involved in the content to be generated, and the role writing requirement being a requirement that the content to be generated must meet for the role type; and generate a content generation instruction in response to acquiring a selection instruction for target writing requirement information, the target writing requirement information belonging to the multiple candidate writing requirement information.
[0124] In a possible implementation, the content generation instruction further includes a target title, which is a title of the content to be generated. The acquisition unit 701 is further configured to, in response to acquiring a trigger instruction for a title configuration control, display a plurality of candidate titles, wherein the candidate titles are generated based on content search keywords after repeated screening and quality screening; and acquire a selection instruction for the target title, wherein the target title belongs to the plurality of candidate titles;
[0125] The content generation unit 702 is specifically configured to generate initial content according to the target writing requirement information and the target title by using a language model.
[0126] In a possible implementation, the role type includes one or more of a system role, a questioner role, and an answerer role, and the role writing requirement includes information in one or more of the following dimensions:
[0127] System role style, questioner portrait, writing tasks, writing style, content framework and content highlights.
[0128] In a possible implementation manner, the device further includes:
[0129] The determination unit is used to take the content platform where the initial content that has passed the content check has not been published as the target content platform; and obtain the typesetting rules of the target content platform.
[0130] In a possible implementation, the publishing unit 705 is specifically used to determine whether the content to be published meets the publishing conditions of the target content platform; publish the content to be published on the target content platform according to preset publishing rules, and the publishing rules include one or more of a content publishing interval and a publishing time period.
[0131] In a possible implementation manner, the device further includes:
[0132] The model adjustment unit is used to adjust the language model by using the initial content that passes the content inspection.
[0133] Based on a content publishing method provided by the above method embodiment, the present application provides a device, including: a processor, a memory, and a system bus;
[0134] The processor and the memory are connected via the system bus;
[0135] The memory is used to store one or more programs, and the one or more programs include instructions. When the instructions are executed by the processor, the processor executes the content publishing method described in any of the above embodiments.
[0136] Based on a content publishing method provided by the above method embodiment, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes the content publishing method described in any of the above embodiments.
[0137] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0138] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0139] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0140] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0141] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A content publishing method, characterized in that: The method comprises: Obtaining a content generation instruction, wherein the content generation instruction includes target writing requirement information, wherein the target writing requirement information is used to describe requirements to be met by the content to be generated, and the writing requirement information is used to guide the generation of the content; Using a language model to write requirement information according to the target and generate initial content; performing a content check on the initial content; According to the layout rules of the target content platform, the initial content that has passed the content check is layouted to obtain the content to be published; The to-be-published content is published on the target content platform.
2. The method according to claim 1, characterized in that The obtaining of the content generation instruction comprises: In response to obtaining a trigger instruction for a writing requirement configuration control, displaying a plurality of candidate writing requirement information, the candidate writing requirement information including a role type and a role writing requirement corresponding to the role type, the role type being a role involved in the content to be generated, and the role writing requirement being a requirement to be met by the content to be generated for the role type; In response to acquiring a selection instruction for target writing requirement information belonging to the plurality of candidate writing requirement information, a content generation instruction is generated.
3. The method according to claim 2, characterized in that The content generation instruction further includes a target title, where the target title is the title of the content to be generated. The method further includes: In response to obtaining a trigger instruction for a title configuration control, displaying a plurality of candidate titles, wherein the candidate titles are generated based on content search keywords after repeated screening and quality screening; Obtaining a selection instruction for a target title, the target title belonging to the plurality of candidate titles; The using of the language model to generate initial content according to the target writing requirement information includes: The language model is used to generate initial content according to the target writing requirement information and the target title.
4. The method according to claim 2, characterized in that The role type includes one or more of a system role, a questioner role, and an answerer role. The role writing requirements include information in one or more of the following dimensions: System role style, questioner portrait, writing tasks, writing style, content framework and content highlights.
5. The method according to claim 1, characterized in that Before typesetting the initial content that has passed the content check according to the typesetting rules of the target content platform to obtain the content to be published, the method further includes: Taking the content platform where the initial content that has passed the content check has not been published as the target content platform; Obtain the layout rules of the target content platform.
6. The method according to claim 1, characterized in that The publishing the to-be-published content on the target content platform includes: Determining that the content to be published meets the publishing conditions of the target content platform; The to-be-published content is published on the target content platform according to a preset publishing rule, wherein the publishing rule includes one or more of a content publishing interval and a publishing time period.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The language model is adjusted using the initial content that has passed the content inspection.
8. A content publishing device, characterized in that: The device comprises: An acquisition unit, configured to acquire a content generation instruction, wherein the content generation instruction includes target writing requirement information, wherein the target writing requirement information is used to describe requirements to be met by the content to be generated, and the writing requirement information is used to guide the generation of the content; A content generation unit, configured to generate initial content according to the target writing requirement information using a language model; A content inspection unit, configured to perform content inspection on the initial content; A content layout unit is used to layout the initial content that has passed the content check according to the layout rules of the target content platform to obtain the content to be published; A publishing unit is used to publish the content to be published on the target content platform.
9. A device, characterized in that: include: Processor, memory, system bus; The processor and the memory are connected via the system bus; The memory is used to store one or more programs, wherein the one or more programs include instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the method according to any one of claims 1 to 7.
