Method for automatically generating text in specified format
By receiving text summary information input by users, using pre-trained artificial intelligence models and text generation rule bases, text content is automatically generated and formatted, solving the problems of low text generation efficiency and erroneous format in the existing technology, and achieving high efficiency, Standardized text generation.
Patent Information
- Application Number
- CN202411339593.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2025-01-07
AI Technical Summary
The prior art is difficult to effectively generate text files that meet specific format and consistency requirements, resulting in inefficiency and format errors.
By receiving text summary information input by the user, the pre-trained artificial intelligence model is used to analyze semantics and contextual relationships, and combining text generation rules and domain knowledge bases, automatically generate and format text content to meet the user's specified format requirements.
It improves text generation efficiency, reduces format errors, improves text professionalism and standardization, adapts to the needs of different fields, and is versatile and scalable.
Smart Images

Figure CN119272736A_ABST
Abstract
Description
Technical Field
[0001] The invention discloses a method for automatically generating a text in a specified format, and relates to the technical field of artificial intelligence. Background Art
[0002] In many industry scenarios, it is often necessary to write official documents in a standardized format. Manual writing is not only inefficient, but also prone to errors, especially in formatting and detail control. With the development of artificial intelligence technology, although some text generation tools have emerged, they often cannot meet the needs of generating texts in specific formats, especially while maintaining content consistency, they cannot ensure the correctness and standardization of the format. Summary of the invention
[0003] In view of the problems of the prior art, the present invention provides a method for automatically generating text in a specified format, which improves the text generation efficiency, reduces format conversion errors, and meets the standardization requirements for text generation in a specific field.
[0004] The specific scheme proposed by the present invention is:
[0005] The present invention provides a method for automatically generating a text in a specified format, comprising:
[0006] Step 1: Receive the text summary information entered by the user,
[0007] Step 2: Use the pre-trained artificial intelligence model to analyze and process the received text summary information to understand the semantics and contextual relationships within the text summary information.
[0008] Step 3: Based on the analysis results, combined with the preset text generation rule base and domain knowledge base, the complete text content matching the summary information is automatically generated.
[0009] Step 4: According to the format requirements specified by the user, the generated text content is automatically converted and typeset to generate a text file that conforms to the format specified by the user.
[0010] Step 5: Output the generated text in the specified format for user use or further editing.
[0011] Furthermore, in the method for automatically generating text in a specified format, the text summary information received in step 1 includes a title, keywords, and main content points.
[0012] Furthermore, in step 2 of the method for automatically generating text in a specified format, the received text summary information is analyzed and processed using a pre-trained artificial intelligence model GPT-3 to understand the semantics and contextual relationships within the text summary information, or the received text summary information is analyzed and processed using a pre-trained artificial intelligence model BERT to understand the semantics and contextual relationships within the text summary information.
[0013] Furthermore, in step 3 of the method for automatically generating text in a specified format, the text generation rule base and the domain knowledge base are updated and expanded according to actual needs.
[0014] The present invention also provides a device for automatically generating a specified format text, comprising a receiving module, an analyzing and processing module, a text generating module, a format conversion module and an output module.
[0015] The receiving module receives the text summary information input by the user.
[0016] The analysis and processing module uses a pre-trained artificial intelligence model to analyze and process the received text summary information, understand the semantics and contextual relationships within the text summary information,
[0017] The text generation module automatically generates complete text content that matches the summary information based on the analysis results, combined with the preset text generation rule library and domain knowledge base.
[0018] The format conversion module automatically converts and typesets the generated text content according to the format requirements specified by the user, and generates a text file that conforms to the format specified by the user.
[0019] The output module outputs the generated text in a specified format for user use or further editing.
[0020] Furthermore, the text summary information received by the receiving module of the apparatus for automatically generating text in a specified format includes a title, keywords, and main content points.
[0021] Furthermore, the analysis and processing module of the device for automatically generating text in a specified format uses a pre-trained artificial intelligence model GPT-3 to analyze and process the received text summary information to understand the semantics and contextual relationships within the text summary information, or uses a pre-trained artificial intelligence model BERT to analyze and process the received text summary information to understand the semantics and contextual relationships within the text summary information.
[0022] Furthermore, the text generation module of the device for automatically generating text in a specified format updates and expands the text generation rule base and the domain knowledge base according to actual needs.
[0023] The present invention also provides a computer-readable medium, on which computer instructions are stored. When the computer instructions are executed by a processor, the processor executes the method for automatically generating a text in a specified format.
[0024] The benefits of the present invention are:
[0025] (1) Improved text generation efficiency and reduced manual writing costs.
[0026] (2) Reduced formatting errors and layout issues, and improved the professionalism and standardization of the text.
[0027] (3) It can flexibly adapt to the text generation needs of different fields and has strong versatility and scalability. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic flow chart of the method of the present invention. DETAILED DESCRIPTION
[0029] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0030] Example 1
[0031] The present invention provides a method for automatically generating a text in a specified format, comprising:
[0032] Step 1: receiving text summary information input by a user, wherein the received text summary information includes a title, keywords, and main content points.
[0033] Step 2: Use a pre-trained artificial intelligence model to analyze and process the received text summary information to understand the semantics and contextual relationships within the text summary information. The pre-trained artificial intelligence model GPT-3 can be used to analyze and process the received text summary information to understand the semantics and contextual relationships within the text summary information, or the pre-trained artificial intelligence model BERT can be used to analyze and process the received text summary information to understand the semantics and contextual relationships within the text summary information.
[0034] Step 3: Based on the analysis results, combined with the preset text generation rule base and domain knowledge base, the complete text content matching the summary information is automatically generated. The text generation rule base and domain knowledge base can be updated and expanded according to actual needs.
[0035] Step 4: According to the format requirements specified by the user, the generated text content is automatically converted and typeset to generate a text file that conforms to the format specified by the user.
[0036] Step 5: Output the generated text in the specified format for user use or further editing.
[0037] The present invention also provides a device for automatically generating a specified format text, comprising a receiving module, an analyzing and processing module, a text generating module, a format conversion module and an output module.
[0038] The receiving module receives the text summary information input by the user.
[0039] The analysis and processing module uses a pre-trained artificial intelligence model to analyze and process the received text summary information, understand the semantics and contextual relationships within the text summary information,
[0040] The text generation module automatically generates complete text content that matches the summary information based on the analysis results, combined with the preset text generation rule library and domain knowledge base.
[0041] The format conversion module automatically converts and typesets the generated text content according to the format requirements specified by the user, and generates a text file that conforms to the format specified by the user.
[0042] The output module outputs the generated text in a specified format for user use or further editing.
[0043] As the information interaction and execution process between the modules of the above-mentioned device are based on the same concept as the embodiment of the method of the present invention, the specific contents can be found in the description of the embodiment of the method of the present invention and will not be repeated here.
[0044] Likewise, the benefits of the device of the present invention are:
[0045] (1) Improved text generation efficiency and reduced manual writing costs.
[0046] (2) Reduced formatting errors and layout issues, and improved the professionalism and standardization of the text.
[0047] (3) It can flexibly adapt to the text generation needs of different fields and has strong versatility and scalability.
[0048] The present invention also provides a computer-readable medium, on which a computer instruction is stored, and when the computer instruction is executed by a processor, the processor executes the method for automatically generating a text in a specified format. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code for implementing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0049] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0050] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0051] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0052] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0053] It should be noted that not all steps and modules in the above-mentioned processes and device structures are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0054] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.
Claims
1. A method for automatically generating a specified format text, characterized in that include: Step 1: Receive the text summary information entered by the user, Step 2: Use the pre-trained artificial intelligence model to analyze and process the received text summary information to understand the semantics and contextual relationships within the text summary information. Step 3: Based on the analysis results, combined with the preset text generation rule base and domain knowledge base, the complete text content matching the summary information is automatically generated. Step 4: According to the format requirements specified by the user, the generated text content is automatically converted and typeset to generate a text file that conforms to the format specified by the user. Step 5: Output the generated text in the specified format for user use or further editing.
2. The method for automatically generating a text in a specified format according to claim 1, characterized in that The text summary information received in step 1 includes title, keywords, and main content points.
3. The method for automatically generating a text in a specified format according to claim 1, characterized in that In step 2, the received text summary information is analyzed and processed using the pre-trained artificial intelligence model GPT-3 to understand the semantics and contextual relationships within the text summary information, or the received text summary information is analyzed and processed using the pre-trained artificial intelligence model BERT to understand the semantics and contextual relationships within the text summary information.
4. The method for automatically generating a text in a specified format according to claim 1, characterized in that In step 3, the text generation rule base and domain knowledge base are updated and expanded according to actual needs.
5. A device for automatically generating a text in a specified format, characterized in that It includes receiving module, analyzing and processing module, text generation module, format conversion module and output module. The receiving module receives the text summary information input by the user. The analysis and processing module uses a pre-trained artificial intelligence model to analyze and process the received text summary information, understand the semantics and contextual relationships within the text summary information, The text generation module automatically generates complete text content that matches the summary information based on the analysis results, combined with the preset text generation rule library and domain knowledge base. The format conversion module automatically converts and typesets the generated text content according to the format requirements specified by the user, and generates a text file that conforms to the format specified by the user. The output module outputs the generated text in a specified format for user use or further editing.
6. The device for automatically generating a text in a specified format according to claim 5, characterized in that The text summary information received by the receiving module includes title, keywords, and main content points.
7. The device for automatically generating a text in a specified format according to claim 5, characterized in that The analysis and processing module uses the pre-trained artificial intelligence model GPT-3 to analyze and process the received text summary information to understand the semantics and contextual relationships within the text summary information, or uses the pre-trained artificial intelligence model BERT to analyze and process the received text summary information to understand the semantics and contextual relationships within the text summary information.
8. The device for automatically generating a text in a specified format according to claim 5, characterized in that The text generation module updates and expands the text generation rule base and domain knowledge base according to actual needs.
9. A computer readable medium, characterized in that The computer-readable medium stores computer instructions, which, when executed by a processor, cause the processor to execute a method for automatically generating a text in a specified format as described in any one of claims 1 to 4.