CN117217185B - Document generation method and system - Google Patents

Document generation method and system Download PDF

Info

Publication number
CN117217185B
CN117217185B CN202311465348.3A CN202311465348A CN117217185B CN 117217185 B CN117217185 B CN 117217185B CN 202311465348 A CN202311465348 A CN 202311465348A CN 117217185 B CN117217185 B CN 117217185B
Authority
CN
China
Prior art keywords
ranking
preset
target
document
sequence number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311465348.3A
Other languages
Chinese (zh)
Other versions
CN117217185A (en
Inventor
曾应龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangxi Isuzu Motors Co Ltd
Original Assignee
Jiangxi Isuzu Motors Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangxi Isuzu Motors Co Ltd filed Critical Jiangxi Isuzu Motors Co Ltd
Priority to CN202311465348.3A priority Critical patent/CN117217185B/en
Publication of CN117217185A publication Critical patent/CN117217185A/en
Application granted granted Critical
Publication of CN117217185B publication Critical patent/CN117217185B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a document generation method and a system, wherein the method comprises the following steps: when ranking data input by a user is detected, segmenting the ranking data based on a preset rule to generate a plurality of corresponding ranking segments, and generating an editing area at the top of each ranking segment, wherein the editing area is a blank area; generating a corresponding editing frame in each blank area, and extracting corresponding keywords in the ranking section, wherein the keywords have uniqueness; and generating corresponding headers in each editing frame according to the keywords, and constructing a mapping relation between each header and each ranking section to generate corresponding documents. The method and the device can greatly improve the generation efficiency of the header and improve the use experience of the user.

Description

Document generation method and system
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and a system for generating a document.
Background
With the development of the age and the progress of technology, the Internet and computers have been popularized in daily life and work of people, so that people can work and shop online, and the life of people is greatly facilitated.
When people perform computer office work, most of the office work software such as word or excel is used for office work so as to correspondingly edit needed electronic files, so that the electronic files are convenient to store and transmit on the one hand, and the work efficiency of people is greatly improved.
Specifically, in the process of editing a word document, most people can set a header at the top of the word document in order to facilitate quick understanding of contents edited in the document, however, most users in the prior art need to manually edit a required header at the top of the document according to the contents edited in the document, and the mode needs to consume a certain editing time, and meanwhile, the phenomenon of missing editing or wrong editing is easy to occur, so that the use experience of the users is reduced.
Disclosure of Invention
Based on the above, the invention aims to provide a document generation method and a document generation system, so as to solve the problems that a certain editing time is required to be consumed and meanwhile, the phenomenon of missing editing or wrong editing is easy to occur in the prior art.
The first aspect of the embodiment of the invention provides:
a document generation method, wherein the method comprises:
when ranking data input by a user are detected, carrying out segmentation processing on the ranking data based on a preset rule to generate a plurality of corresponding ranking segments, and generating an editing area at the top of each ranking segment, wherein the editing area is a blank area;
generating a corresponding editing frame in each blank area, and extracting corresponding keywords in the ranking section, wherein the keywords have uniqueness;
and generating a corresponding header in each editing frame according to the keywords, and constructing a mapping relation between each header and each ranking section to generate a corresponding document.
The beneficial effects of the invention are as follows: by detecting ranking data input by a user in real time and generating corresponding ranking segments according to the ranking data, further, an editing area convenient for subsequent editing can be generated between two adjacent ranking segments, based on the editing area, keywords corresponding to each ranking segment are further extracted, required headers can be further generated according to the keywords, meanwhile, the current headers can be synchronously displayed in each editing frame, manual input operation is correspondingly omitted, errors can be avoided, and user experience is correspondingly improved.
Further, the step of segmenting the ranking data based on the preset rule to generate a plurality of corresponding ranking segments includes:
when the ranking data are acquired, detecting a plurality of ranking elements contained in the ranking data, wherein the ranking elements comprise ranking serial numbers, lists and prize grades;
sequentially detecting whether the ranking serial numbers between two adjacent lists have continuity from top to bottom in the ranking data;
if the fact that the ranking sequence numbers between the two adjacent lists are not continuous is detected in real time, a segmentation point is added between the two adjacent lists, and segmentation processing is conducted on the ranking data through the segmentation point.
Further, the step of sequentially detecting whether the ranking sequence numbers between two adjacent lists have continuity in the ranking data from top to bottom includes:
respectively detecting a first ranking sequence number and a second ranking sequence number between two adjacent lists, and calculating whether the sequence number difference between the first ranking sequence number and the second ranking sequence number is equal to a preset difference threshold value or not in real time;
if the sequence number difference between the first ranking sequence number and the second ranking sequence number is calculated to be equal to the preset difference threshold value in real time, judging that the ranking sequence numbers between the current adjacent two lists have continuity;
if the sequence number difference between the first ranking sequence number and the second ranking sequence number is calculated to be not equal to the preset difference threshold value in real time, judging that the ranking sequence numbers between the current adjacent two lists are not continuous, and adding the partition points between the current adjacent two lists.
Further, the step of generating a corresponding header in each edit box according to the keyword includes:
when the keyword is acquired, detecting the part of speech corresponding to the keyword in real time, and matching a target sentence matched with the keyword in a preset word stock according to the part of speech;
and correspondingly fusing the keywords into the target sentences to correspondingly generate the headers, and correspondingly inputting the headers into the editing frame.
Further, the step of correspondingly fusing the keywords into the target sentence to correspondingly generate the header includes:
when the target sentence is obtained, carrying out forward maximum step word segmentation processing on the target sentence so as to correspondingly generate a plurality of minimum characters, and detecting target words corresponding to the keywords one by one in the plurality of minimum characters;
and adding a corresponding replacement identifier to the target word, and replacing the target word with the keyword based on the replacement identifier, wherein the replacement identifier has uniqueness.
Further, the method further comprises:
when the generation of the document is detected, detecting a document type corresponding to the document according to the ranking data, and storing the document into a preset target database according to the document type;
uploading the preset target database to a preset cloud server, and carrying out dynamic encryption processing on the preset target database through the preset cloud server, wherein each document type corresponds to one preset target database.
Further, the method further comprises:
when the preset cloud server receives the access request of the user, analyzing the access request to extract the name of the access person and the access time contained in the access request, and extracting the target letter contained in the name of the access person and the target number contained in the access time;
and based on a preset rule, arranging and combining the target letters and the target numbers to generate a plurality of corresponding sequence passwords, randomly selecting a sequence password, and transmitting the sequence password to the mobile terminal of the user so that the user can start the preset target database through the sequence password.
A second aspect of an embodiment of the present invention proposes:
a document generation system, wherein the system comprises:
the detection module is used for carrying out segmentation processing on the ranking data based on a preset rule when the ranking data input by a user are detected, so as to generate a plurality of corresponding ranking segments, and an editing area is generated at the top of each ranking segment, wherein the editing area is a blank area;
the extraction module is used for generating a corresponding editing frame in each blank area and extracting corresponding keywords in the ranking section, wherein the keywords have uniqueness;
and the editing module is used for generating a corresponding header in each editing frame according to the keywords, and constructing a mapping relation between each header and each ranking section so as to generate a corresponding document.
Further, the detection module is specifically configured to:
when the ranking data are acquired, detecting a plurality of ranking elements contained in the ranking data, wherein the ranking elements comprise ranking serial numbers, lists and prize grades;
sequentially detecting whether the ranking serial numbers between two adjacent lists have continuity from top to bottom in the ranking data;
if the fact that the ranking sequence numbers between the two adjacent lists are not continuous is detected in real time, a segmentation point is added between the two adjacent lists, and segmentation processing is conducted on the ranking data through the segmentation point.
Further, the detection module is specifically further configured to:
respectively detecting a first ranking sequence number and a second ranking sequence number between two adjacent lists, and calculating whether the sequence number difference between the first ranking sequence number and the second ranking sequence number is equal to a preset difference threshold value or not in real time;
if the sequence number difference between the first ranking sequence number and the second ranking sequence number is calculated to be equal to the preset difference threshold value in real time, judging that the ranking sequence numbers between the current adjacent two lists have continuity;
if the sequence number difference between the first ranking sequence number and the second ranking sequence number is calculated to be not equal to the preset difference threshold value in real time, judging that the ranking sequence numbers between the current adjacent two lists are not continuous, and adding the partition points between the current adjacent two lists.
Further, the editing module is specifically configured to:
when the keyword is acquired, detecting the part of speech corresponding to the keyword in real time, and matching a target sentence matched with the keyword in a preset word stock according to the part of speech;
and correspondingly fusing the keywords into the target sentences to correspondingly generate the headers, and correspondingly inputting the headers into the editing frame.
Further, the editing module is specifically further configured to:
when the target sentence is obtained, carrying out forward maximum step word segmentation processing on the target sentence so as to correspondingly generate a plurality of minimum characters, and detecting target words corresponding to the keywords one by one in the plurality of minimum characters;
and adding a corresponding replacement identifier to the target word, and replacing the target word with the keyword based on the replacement identifier, wherein the replacement identifier has uniqueness.
Further, the document generation system further includes a storage module, where the storage module is specifically configured to:
when the generation of the document is detected, detecting a document type corresponding to the document according to the ranking data, and storing the document into a preset target database according to the document type;
uploading the preset target database to a preset cloud server, and carrying out dynamic encryption processing on the preset target database through the preset cloud server, wherein each document type corresponds to one preset target database.
Further, the document generation system further includes an encryption module, where the encryption module is specifically configured to:
when the preset cloud server receives the access request of the user, analyzing the access request to extract the name of the access person and the access time contained in the access request, and extracting the target letter contained in the name of the access person and the target number contained in the access time;
and based on a preset rule, arranging and combining the target letters and the target numbers to generate a plurality of corresponding sequence passwords, randomly selecting a sequence password, and transmitting the sequence password to the mobile terminal of the user so that the user can start the preset target database through the sequence password.
A third aspect of an embodiment of the present invention proposes:
a computer comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the document generation method as described above when the computer program is executed.
A fourth aspect of the embodiment of the present invention proposes:
a readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements a document generation method as described above.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a flowchart of a document generation method provided by a first embodiment of the present invention;
fig. 2 is a block diagram showing a structure of a document generating system according to a sixth embodiment of the present invention.
The invention will be further described in the following detailed description in conjunction with the above-described figures.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. Several embodiments of the invention are presented in the figures. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "mounted" on another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like are used herein for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, a document generating method according to a first embodiment of the present invention is shown, where each header can be correspondingly displayed in each edit box, so that manual input operation is omitted, errors can be avoided, and user experience is improved.
Specifically, the document generation method provided in this embodiment specifically includes the following steps:
step S10, when ranking data input by a user are detected, segmenting the ranking data based on a preset rule to generate a plurality of corresponding ranking segments, and generating an editing area at the top of each ranking segment, wherein the editing area is a blank area;
step S20, generating a corresponding editing frame in each blank area, and extracting corresponding keywords in the ranking section, wherein the keywords have uniqueness;
and step S30, generating a corresponding header in each editing frame according to the keywords, and constructing a mapping relation between each header and each ranking segment to generate a corresponding document.
Specifically, in this embodiment, it should be first described that the document generating method is specifically used in various events or scenes of evaluating prizes, and is used to process ranking data generated in real time, and finally generate a corresponding ranking document, so as to facilitate subsequent use. Based on this, when the server detects the ranking data input by the user in real time, specifically, the ranking corresponding to each player is finally generated in a certain match, further, in order to facilitate the generation of the subsequent page eyebrows, the current ranking data is immediately segmented according to the preset rule at this time, meanwhile, the corresponding ranking segments can be generated, and an editing area is correspondingly generated at the top of each ranking segment, specifically, the editing area is a blank area.
Furthermore, in order to generate subsequent headers, the server further generates an adaptive editing frame in each blank area, meanwhile, in order to generate appropriate content, further extracts corresponding keywords, such as keywords like "first-class rewards" or "second-class rewards" in the current ranking section, further, generates a corresponding language section according to each keyword, wherein the language section is the required header, and on the basis, a mapping relation between each header and each ranking section, namely, the mapping relation is mutually related, is constructed in real time, and finally, the required ranking document can be correspondingly generated.
Second embodiment
Specifically, in this embodiment, it should be noted that the step of performing the segmentation processing on the ranking data based on the preset rule to generate a plurality of corresponding ranking segments includes:
when the ranking data are acquired, detecting a plurality of ranking elements contained in the ranking data, wherein the ranking elements comprise ranking serial numbers, lists and prize grades;
sequentially detecting whether the ranking serial numbers between two adjacent lists have continuity from top to bottom in the ranking data;
if the fact that the ranking sequence numbers between the two adjacent lists are not continuous is detected in real time, a segmentation point is added between the two adjacent lists, and segmentation processing is conducted on the ranking data through the segmentation point.
Specifically, in this embodiment, after the ranking data input by the user is obtained in real time, a plurality of ranking elements respectively included in the current ranking data may be detected correspondingly, and specifically include a ranking number element, a list element, a prize level element, and the like, where the ranking number element is formed by specific arabic numerals, and specifically, "for example, 1, 2, 3, 4, 5, and the like".
Furthermore, whether the ranking sequence numbers between the two adjacent lists have continuity or not can be detected in the ranking data directly according to the sequence from top to bottom, specifically, if so, the current two lists of the list names are integrated and correspond to each other, if not, the current two lists of the list names respectively belong to two ranking sections, and corresponding division points are needed to be added between the current two lists, and meanwhile, the ranking data are subjected to segmentation processing through the division points.
Specifically, in this embodiment, it should be further noted that the step of sequentially detecting, from top to bottom, whether the ranking sequence numbers between two adjacent lists have continuity in the ranking data includes:
respectively detecting a first ranking sequence number and a second ranking sequence number between two adjacent lists, and calculating whether the sequence number difference between the first ranking sequence number and the second ranking sequence number is equal to a preset difference threshold value or not in real time;
if the sequence number difference between the first ranking sequence number and the second ranking sequence number is calculated to be equal to the preset difference threshold value in real time, judging that the ranking sequence numbers between the current adjacent two lists have continuity;
if the sequence number difference between the first ranking sequence number and the second ranking sequence number is calculated to be not equal to the preset difference threshold value in real time, judging that the ranking sequence numbers between the current adjacent two lists are not continuous, and adding the partition points between the current adjacent two lists.
Specifically, in this embodiment, it should also be noted that, in order to accurately detect whether there is continuity between the first ranking sequence number and the second ranking sequence number between two adjacent lists, only the sequence number difference between the current first ranking sequence number and the second ranking sequence number needs to be directly calculated at this time, and further, whether the calculated sequence number difference is equal to the preset difference threshold value is further determined in real time, specifically, the preset difference threshold value is set to be 1, for example, the first ranking sequence number of the current first list is 2, and the corresponding second ranking sequence number of the second list adjacent to the first ranking sequence number is 3, then the sequence number difference between the two adjacent lists is 1, that is, equal to the preset difference threshold value, then it can be immediately determined that there is continuity between the ranking sequence numbers between the current two lists, for example, the first ranking sequence number of the first list is 5, and the ranking sequence number of the second list adjacent to the first ranking sequence number is 1, then the sequence number difference between the first ranking sequence number and the second ranking sequence number of the first ranking sequence number is 4, and the ranking sequence number of the second ranking sequence number is greater than the preset threshold value, so that it can be immediately determined that there is no continuity between the ranking sequence numbers between the two lists. Further, synchronization adds a split point between two lists that are not continuous to facilitate subsequent processing.
Third embodiment
In addition, in this embodiment, it should be further noted that the step of generating the corresponding header in each edit box according to the keyword includes:
when the keyword is acquired, detecting the part of speech corresponding to the keyword in real time, and matching a target sentence matched with the keyword in a preset word stock according to the part of speech;
and correspondingly fusing the keywords into the target sentences to correspondingly generate the headers, and correspondingly inputting the headers into the editing frame.
In addition, in this embodiment, it should be noted that, in order to simply and quickly generate a required header, after the required keyword is extracted, the part of speech of the current keyword may be correspondingly detected at this time, for example, if the detected keyword is "school", the ranking data may be correspondingly described as a comment item of school or a match ranking, based on which, a target sentence adapted to the current keyword may be further matched in a preset word stock, for example, "a winning list of a B game in a 2023 year a" may be further matched, and further, in order to be adapted to the scene of the current school, the required header may be further correspondingly fused into the target sentence, so as to quickly generate the required header.
Further, the headers are synchronously displayed in the editing frame, so that each header and each ranking section can be further connected together to facilitate subsequent processing.
In addition, in this embodiment, it should be further noted that the step of correspondingly fusing the keywords into the target sentence to correspondingly generate the header includes:
when the target sentence is obtained, carrying out forward maximum step word segmentation processing on the target sentence so as to correspondingly generate a plurality of minimum characters, and detecting target words corresponding to the keywords one by one in the plurality of minimum characters;
and adding a corresponding replacement identifier to the target word, and replacing the target word with the keyword based on the replacement identifier, wherein the replacement identifier has uniqueness.
In addition, in this embodiment, it should be further noted that, after the target sentence is passed, in order to accurately fuse the extracted keyword into the current target sentence, the current target sentence may be subjected to forward maximum step word segmentation processing in real time at this time so as to be correspondingly split into a plurality of minimum characters, and based on this, only the target word corresponding to the keyword needs to be detected one by one in the current plurality of minimum characters, and further, only a required replacement identifier needs to be added to the current target word, so that the current target word may be replaced with the required keyword immediately, so as to correspondingly generate the header.
Fourth embodiment
In this embodiment, it should be noted that:
when the generation of the document is detected, detecting a document type corresponding to the document according to the ranking data, and storing the document into a preset target database according to the document type;
uploading the preset target database to a preset cloud server, and carrying out dynamic encryption processing on the preset target database through the preset cloud server, wherein each document type corresponds to one preset target database.
In this embodiment, it should be noted that, after the required document is generated through the above steps, in order to save the document in time and enable multiple people to view the current document at the same time, at this time, the document type corresponding to the current document may be further detected according to the ranking data, preferably, for example, the document type corresponding to the current document is a school, and then the current document may be further stored in a preset target database corresponding to the current school. Furthermore, the preset target database is uploaded to a preset cloud server, and corresponding encryption processing is performed, so that data leakage is prevented, and meanwhile, the confidentiality of the data can be enhanced.
Fifth embodiment
In this embodiment, it should be noted that:
when the preset cloud server receives the access request of the user, analyzing the access request to extract the name of the access person and the access time contained in the access request, and extracting the target letter contained in the name of the access person and the target number contained in the access time;
and based on a preset rule, arranging and combining the target letters and the target numbers to generate a plurality of corresponding sequence passwords, randomly selecting a sequence password, and transmitting the sequence password to the mobile terminal of the user so that the user can start the preset target database through the sequence password.
In this embodiment, it should be noted that, in the actual use process, when the foregoing preset cloud server receives the access request of the user in real time, the current access request needs to be immediately analyzed, that is, the name of the visitor and the access time carried in the current access request are analyzed, preferably, for example, the name of the visitor is "wangwu", and the access time is "2023/06 days", so that the required target letters and the target numbers can be further extracted.
Further, the extracted target letter is "wangwu" and the target number is "20230606", so that the current target letter and the target number can be arranged and combined to correspondingly generate a plurality of sequence passwords with six digits, specifically, for example, the obtained sequence passwords can be "wang06", "wu0606", "230606", an2023 "and the like, based on the obtained sequence passwords, only one mobile terminal issued to a user needs to be randomly selected from the generated sequence passwords, and the current user can further open the preset target database through the sequence passwords so as to correspondingly find a required document.
Referring to fig. 2, a sixth embodiment of the present invention provides:
a document generation system, wherein the system comprises:
the detection module is used for carrying out segmentation processing on the ranking data based on a preset rule when the ranking data input by a user are detected, so as to generate a plurality of corresponding ranking segments, and an editing area is generated at the top of each ranking segment, wherein the editing area is a blank area;
the extraction module is used for generating a corresponding editing frame in each blank area and extracting corresponding keywords in the ranking section, wherein the keywords have uniqueness;
and the editing module is used for generating a corresponding header in each editing frame according to the keywords, and constructing a mapping relation between each header and each ranking section so as to generate a corresponding document.
In the above document generation system, the detection module is specifically configured to:
when the ranking data are acquired, detecting a plurality of ranking elements contained in the ranking data, wherein the ranking elements comprise ranking serial numbers, lists and prize grades;
sequentially detecting whether the ranking serial numbers between two adjacent lists have continuity from top to bottom in the ranking data;
if the fact that the ranking sequence numbers between the two adjacent lists are not continuous is detected in real time, a segmentation point is added between the two adjacent lists, and segmentation processing is conducted on the ranking data through the segmentation point.
In the above document generation system, the detection module is further specifically configured to:
respectively detecting a first ranking sequence number and a second ranking sequence number between two adjacent lists, and calculating whether the sequence number difference between the first ranking sequence number and the second ranking sequence number is equal to a preset difference threshold value or not in real time;
if the sequence number difference between the first ranking sequence number and the second ranking sequence number is calculated to be equal to the preset difference threshold value in real time, judging that the ranking sequence numbers between the current adjacent two lists have continuity;
if the sequence number difference between the first ranking sequence number and the second ranking sequence number is calculated to be not equal to the preset difference threshold value in real time, judging that the ranking sequence numbers between the current adjacent two lists are not continuous, and adding the partition points between the current adjacent two lists.
In the above document generation system, the editing module is specifically configured to:
when the keyword is acquired, detecting the part of speech corresponding to the keyword in real time, and matching a target sentence matched with the keyword in a preset word stock according to the part of speech;
and correspondingly fusing the keywords into the target sentences to correspondingly generate the headers, and correspondingly inputting the headers into the editing frame.
In the above document generation system, the editing module is further specifically configured to:
when the target sentence is obtained, carrying out forward maximum step word segmentation processing on the target sentence so as to correspondingly generate a plurality of minimum characters, and detecting target words corresponding to the keywords one by one in the plurality of minimum characters;
and adding a corresponding replacement identifier to the target word, and replacing the target word with the keyword based on the replacement identifier, wherein the replacement identifier has uniqueness.
In the above document generation system, the document generation system further includes a storage module, where the storage module is specifically configured to:
when the generation of the document is detected, detecting a document type corresponding to the document according to the ranking data, and storing the document into a preset target database according to the document type;
uploading the preset target database to a preset cloud server, and carrying out dynamic encryption processing on the preset target database through the preset cloud server, wherein each document type corresponds to one preset target database.
In the above document generation system, the document generation system further includes an encryption module, where the encryption module is specifically configured to:
when the preset cloud server receives the access request of the user, analyzing the access request to extract the name of the access person and the access time contained in the access request, and extracting the target letter contained in the name of the access person and the target number contained in the access time;
and based on a preset rule, arranging and combining the target letters and the target numbers to generate a plurality of corresponding sequence passwords, randomly selecting a sequence password, and transmitting the sequence password to the mobile terminal of the user so that the user can start the preset target database through the sequence password.
A seventh embodiment of the present invention provides a computer including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the document generation method provided in the above embodiments when executing the computer program.
An eighth embodiment of the present invention provides a readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the document generation method provided in the above embodiment.
In summary, the document generation method and system provided by the embodiments of the present invention can correspondingly display each header in each edit box, thereby omitting the operation of manual input, avoiding errors, and correspondingly improving the user experience.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (6)

1. A document generation method, the method comprising:
when ranking data input by a user are detected, carrying out segmentation processing on the ranking data based on a preset rule to generate a plurality of corresponding ranking segments, and generating an editing area at the top of each ranking segment, wherein the editing area is a blank area;
generating a corresponding editing frame in each blank area, and extracting corresponding keywords in the ranking section, wherein the keywords have uniqueness;
generating a corresponding header in each editing frame according to the keywords, and constructing a mapping relation between each header and each ranking section to generate a corresponding document;
the step of segmenting the ranking data based on preset rules to generate a plurality of corresponding ranking segments comprises the following steps:
when the ranking data are acquired, detecting a plurality of ranking elements contained in the ranking data, wherein the ranking elements comprise ranking serial numbers, lists and prize grades;
sequentially detecting whether the ranking serial numbers between two adjacent lists have continuity from top to bottom in the ranking data;
if the fact that the ranking sequence numbers between the two adjacent lists are not continuous is detected in real time, dividing points are added between the two adjacent lists, and the ranking data are subjected to sectional processing through the dividing points;
the step of sequentially detecting whether the ranking serial numbers between two adjacent lists have continuity in the ranking data from top to bottom comprises the following steps:
respectively detecting a first ranking sequence number and a second ranking sequence number between two adjacent lists, and calculating whether the sequence number difference between the first ranking sequence number and the second ranking sequence number is equal to a preset difference threshold value or not in real time;
if the sequence number difference between the first ranking sequence number and the second ranking sequence number is calculated to be equal to the preset difference threshold value in real time, judging that the ranking sequence numbers between the current adjacent two lists have continuity;
if the sequence number difference between the first ranking sequence number and the second ranking sequence number is calculated to be not equal to the preset difference threshold value in real time, judging that the ranking sequence numbers between the current adjacent two lists are not continuous, and adding the dividing points between the current adjacent two lists;
the step of generating a corresponding header in each edit box according to the keywords comprises the following steps:
when the keyword is acquired, detecting the part of speech corresponding to the keyword in real time, and matching a target sentence matched with the keyword in a preset word stock according to the part of speech;
correspondingly fusing the keywords into the target sentences to correspondingly generate the headers, and correspondingly inputting the headers into the editing frame;
the step of correspondingly fusing the keywords into the target sentences to correspondingly generate the headers comprises the following steps:
when the target sentence is obtained, carrying out forward maximum step word segmentation processing on the target sentence so as to correspondingly generate a plurality of minimum characters, and detecting target words corresponding to the keywords one by one in the plurality of minimum characters;
and adding a corresponding replacement identifier to the target word, and replacing the target word with the keyword based on the replacement identifier, wherein the replacement identifier has uniqueness.
2. The document generating method according to claim 1, wherein: the method further comprises the steps of:
when the generation of the document is detected, detecting a document type corresponding to the document according to the ranking data, and storing the document into a preset target database according to the document type;
uploading the preset target database to a preset cloud server, and carrying out dynamic encryption processing on the preset target database through the preset cloud server, wherein each document type corresponds to one preset target database.
3. The document generating method according to claim 2, wherein: the method further comprises the steps of:
when the preset cloud server receives the access request of the user, analyzing the access request to extract the name of the access person and the access time contained in the access request, and extracting the target letter contained in the name of the access person and the target number contained in the access time;
and based on a preset rule, arranging and combining the target letters and the target numbers to generate a plurality of corresponding sequence passwords, randomly selecting a sequence password, and transmitting the sequence password to the mobile terminal of the user so that the user can start the preset target database through the sequence password.
4. A document generation system for implementing the document generation method of any one of claims 1 to 3, the system comprising:
the detection module is used for carrying out segmentation processing on the ranking data based on a preset rule when the ranking data input by a user are detected, so as to generate a plurality of corresponding ranking segments, and an editing area is generated at the top of each ranking segment, wherein the editing area is a blank area;
the extraction module is used for generating a corresponding editing frame in each blank area and extracting corresponding keywords in the ranking section, wherein the keywords have uniqueness;
and the editing module is used for generating a corresponding header in each editing frame according to the keywords, and constructing a mapping relation between each header and each ranking section so as to generate a corresponding document.
5. A computer comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the document generation method of any one of claims 1 to 3 when the computer program is executed.
6. A readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements a document generation method as claimed in any one of claims 1 to 3.
CN202311465348.3A 2023-11-07 2023-11-07 Document generation method and system Active CN117217185B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311465348.3A CN117217185B (en) 2023-11-07 2023-11-07 Document generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311465348.3A CN117217185B (en) 2023-11-07 2023-11-07 Document generation method and system

Publications (2)

Publication Number Publication Date
CN117217185A CN117217185A (en) 2023-12-12
CN117217185B true CN117217185B (en) 2024-03-01

Family

ID=89046554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311465348.3A Active CN117217185B (en) 2023-11-07 2023-11-07 Document generation method and system

Country Status (1)

Country Link
CN (1) CN117217185B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081732A (en) * 2010-12-29 2011-06-01 方正国际软件有限公司 Method and system for recognizing format template
CN109144954A (en) * 2018-09-18 2019-01-04 天津字节跳动科技有限公司 Edit resource recommendation method, device and the electronic equipment of document
CN110555202A (en) * 2018-05-30 2019-12-10 微软技术许可有限责任公司 method and device for generating abstract broadcast
CN110827938A (en) * 2019-10-09 2020-02-21 云知声智能科技股份有限公司 Method and system for automatically generating medical record document template
CN111414727A (en) * 2019-01-07 2020-07-14 珠海金山办公软件有限公司 Method and device for editing header and footer of PDF (Portable document Format) document and electronic equipment
CN112232038A (en) * 2020-09-22 2021-01-15 苏州艾特律宝智能科技有限公司 Document output method, system, computer device and storage medium
CN113780229A (en) * 2021-09-18 2021-12-10 北京金山数字娱乐科技有限公司 Text recognition method and device
WO2022184034A1 (en) * 2021-03-01 2022-09-09 北京字跳网络技术有限公司 Document processing method and apparatus, device, and medium
CN115438635A (en) * 2022-09-07 2022-12-06 支付宝(杭州)信息技术有限公司 Report generation method, report generation device, and computer storage medium
CN115826991A (en) * 2023-02-14 2023-03-21 江西曼荼罗软件有限公司 Software script generation method, system, computer and readable storage medium
CN115964998A (en) * 2022-12-09 2023-04-14 安徽兆尹信息科技股份有限公司 Automatic generation method of financial report document
CN116049356A (en) * 2023-02-09 2023-05-02 三体智慧网络科技(苏州)有限公司 Document information determining method and device, electronic equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081732A (en) * 2010-12-29 2011-06-01 方正国际软件有限公司 Method and system for recognizing format template
CN110555202A (en) * 2018-05-30 2019-12-10 微软技术许可有限责任公司 method and device for generating abstract broadcast
CN109144954A (en) * 2018-09-18 2019-01-04 天津字节跳动科技有限公司 Edit resource recommendation method, device and the electronic equipment of document
CN111414727A (en) * 2019-01-07 2020-07-14 珠海金山办公软件有限公司 Method and device for editing header and footer of PDF (Portable document Format) document and electronic equipment
CN110827938A (en) * 2019-10-09 2020-02-21 云知声智能科技股份有限公司 Method and system for automatically generating medical record document template
CN112232038A (en) * 2020-09-22 2021-01-15 苏州艾特律宝智能科技有限公司 Document output method, system, computer device and storage medium
WO2022184034A1 (en) * 2021-03-01 2022-09-09 北京字跳网络技术有限公司 Document processing method and apparatus, device, and medium
CN113780229A (en) * 2021-09-18 2021-12-10 北京金山数字娱乐科技有限公司 Text recognition method and device
CN115438635A (en) * 2022-09-07 2022-12-06 支付宝(杭州)信息技术有限公司 Report generation method, report generation device, and computer storage medium
CN115964998A (en) * 2022-12-09 2023-04-14 安徽兆尹信息科技股份有限公司 Automatic generation method of financial report document
CN116049356A (en) * 2023-02-09 2023-05-02 三体智慧网络科技(苏州)有限公司 Document information determining method and device, electronic equipment and storage medium
CN115826991A (en) * 2023-02-14 2023-03-21 江西曼荼罗软件有限公司 Software script generation method, system, computer and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Bag-of-Concepts representation for document classification based on automatic knowledge acquisition from probabilistic knowledge base;Pengfei Li;Knowledge-Based Systems;第193卷;全文 *
毕业论文的高效编辑方法;于风义;;新校园(上旬)(第05期);全文 *

Also Published As

Publication number Publication date
CN117217185A (en) 2023-12-12

Similar Documents

Publication Publication Date Title
CN108287858B (en) Semantic extraction method and device for natural language
CN110020437B (en) Emotion analysis and visualization method combining video and barrage
CN106649603B (en) Designated information pushing method based on emotion classification of webpage text data
CN112328762B (en) Question-answer corpus generation method and device based on text generation model
CN109710841B (en) Comment recommendation method and device
CN112533051B (en) Barrage information display method, barrage information display device, computer equipment and storage medium
CN111428488A (en) Resume data information analyzing and matching method and device, electronic equipment and medium
CN104376010B (en) User recommendation method and device
DE112012001794T5 (en) Method for determining a mood from a text
CN111597309A (en) Similar enterprise recommendation method and device, electronic equipment and medium
CN112765974B (en) Service assistance method, electronic equipment and readable storage medium
CN111737961B (en) Method and device for generating story, computer equipment and medium
CN110209721A (en) Judgement document transfers method, apparatus, server and storage medium
CN111368066B (en) Method, apparatus and computer readable storage medium for obtaining dialogue abstract
JP5462546B2 (en) Content detection support apparatus, content detection support method, and content detection support program
CN113934834A (en) Question matching method, device, equipment and storage medium
CN113673294A (en) Method and device for extracting key information of document, computer equipment and storage medium
CN113705164A (en) Text processing method and device, computer equipment and readable storage medium
CN117217185B (en) Document generation method and system
CN113132368B (en) Chat data auditing method and device and computer equipment
CN112115362B (en) Programming information recommendation method and device based on similar code recognition
CN114328895A (en) News abstract generation method and device and computer equipment
CN114722267A (en) Information pushing method and device and server
CN112613775A (en) Resource quality evaluation method and device, electronic device and storage medium
CN112487800B (en) Text processing method, device, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant