CN111159982B - Document editing method, device, electronic equipment and computer readable storage medium - Google Patents

Document editing method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111159982B
CN111159982B CN201911341414.XA CN201911341414A CN111159982B CN 111159982 B CN111159982 B CN 111159982B CN 201911341414 A CN201911341414 A CN 201911341414A CN 111159982 B CN111159982 B CN 111159982B
Authority
CN
China
Prior art keywords
document
target user
text information
label
result
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
CN201911341414.XA
Other languages
Chinese (zh)
Other versions
CN111159982A (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.)
China Citic Bank Corp Ltd
Original Assignee
China Citic Bank Corp 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 China Citic Bank Corp Ltd filed Critical China Citic Bank Corp Ltd
Priority to CN201911341414.XA priority Critical patent/CN111159982B/en
Publication of CN111159982A publication Critical patent/CN111159982A/en
Application granted granted Critical
Publication of CN111159982B publication Critical patent/CN111159982B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application provides a document editing method, a document editing device, electronic equipment and a computer readable storage medium, which are applied to the technical field of computers, wherein the method comprises the following steps: the edited document is checked based on the predefined and centrally managed writing rules, so that the automatic check of the document is realized, and the document check efficiency is improved; in addition, when the fact that the input cursor of the target user moves to the second label is detected, the text information input at the first label is checked based on the acquired first writing rule, so that real-time check of the written document is achieved, timeliness of document check is improved compared with check after the whole document is edited, and the target user is helped to find errors in the document in time and correct errors.

Description

Document editing method, device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a document editing method, a document editing device, an electronic device, and a computer readable storage medium.
Background
With the development of computer technology, electronic office work has become a trend, business personnel can generate massive documents in the process of project development or daily work, and how to ensure the quality of the generated documents has become a problem. At present, the document is checked manually, namely, each written document is checked manually by reading the document, however, according to the current document checking mode, corresponding auditors are required to read each document one by one, the problem of low efficiency exists, and especially under the condition of large document quantity, more time is consumed, and in addition, the writing errors in the document are easily missed by the manual checking mode.
Disclosure of Invention
The application provides a document editing method, a device, electronic equipment and a computer readable storage medium, which are used for improving the efficiency of document editing and improving the accuracy of proofreading, and the technical scheme adopted by the application is as follows:
in a first aspect, there is provided a document editing method, the method comprising,
acquiring text information input by a target user at a first tag based on a target document template;
when detecting that an input cursor of a target user moves to a second label, acquiring a first writing rule corresponding to text information at the first label, wherein the first label and the second label are labels corresponding to corresponding parts of a target document template respectively;
based on the acquired first writing rule, checking the text information input at the first label;
and prompting corresponding information for the target user based on the document correction result of the first writing rule.
Optionally, the method further comprises:
receiving an instruction of selecting a document template by a target user;
inquiring a local database or sending a document template request instruction to a server based on an instruction of selecting a document template by a target user;
and displaying the target document template based on the query result of the local database or the result information fed back by the server.
Optionally, the first writing rule includes a format rule and a content rule, and based on the acquired first writing rule, the checking the text information input at the first tag includes:
checking the format of the text information input at the first tag based on the format rule to obtain a format checking result;
the content of the text information input at the first tag is checked based on the content rule, and a content check result is obtained;
a first document collation result is determined based on the format collation result and the content collation result.
Optionally, the content of the text information input at the first tag is checked based on the content rule, and the content check result includes at least one of the following:
detecting whether text information input at a first label contains a preset first keyword or not, and if the text information does not contain the preset first keyword, checking that the result is not passed;
detecting whether text information input at the first tag contains a preset second keyword, and if so, checking that the result is not passed;
and extracting the theme of the text information input at the first label through a corresponding natural language understanding algorithm, and if the theme is different from a preset theme, checking the result as not passing.
Optionally, the method further comprises:
storing the current document edited by the target user;
receiving an editing request of a current document edited by a target user and stored by the target user;
and displaying the stored current document edited by the target user, checking the stored current document edited by the target user based on the updated writing rule corresponding to the at least one tag, and displaying a second checking result to the user.
In a second aspect, there is provided a document editing apparatus, the apparatus comprising,
the first acquisition module is used for acquiring text information input by a target user at a first label based on a target document template;
the second acquisition module is used for acquiring a first writing rule corresponding to text information at a first label when detecting that an input cursor of a target user moves to a second label, wherein the first label and the second label are labels corresponding to corresponding parts of a target document template respectively;
the first checking module is used for checking the text information input at the first label based on the acquired first writing rule;
and the prompt module is used for prompting corresponding information for the target user based on the first document correction result.
Optionally, the apparatus further comprises:
the first receiving module is used for receiving an instruction of selecting the document template by a target user;
the query module is used for querying a local database or sending a document template request instruction to the server based on the instruction of selecting the document template by the target user;
and the display module is used for displaying the target document template based on the query result of the local database or the result information fed back by the server.
Optionally, the first writing rule includes a format rule and a content rule, and the first collation module includes:
the first checking unit is used for checking the format of the text information input at the first tag based on the format rule to obtain a format checking result;
the second correction unit is used for correcting the content of the text information input at the first label based on the content rule to obtain a content correction result;
and a determining unit configured to determine a first document collation result based on the format collation result and the content collation result.
Optionally, the second checking unit is specifically configured to detect whether the text information input at the first tag includes a preset first keyword, and if the text information does not include the preset first keyword, the checking result is that the text information does not pass;
and/or the method is used for detecting whether the text information input at the first label contains a preset second keyword, and if so, the result of the checking is not passed;
and/or extracting the theme of the text information input at the first tag through a corresponding natural language understanding algorithm, and if the theme is different from a preset theme, checking that the result is not passed.
Optionally, the apparatus further comprises:
the storage module is used for storing the current document edited by the target user;
the receiving module is used for receiving an editing request of a target user for a stored current document edited by the target user;
and the second proofreading module is used for displaying the stored current document edited by the target user, proofreading the stored current document edited by the target user based on the updated writing rule corresponding to the at least one label, and displaying a second proofreading result to the user.
In a third aspect, an electronic device is provided, the electronic device comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: the document editing method shown in the first aspect is performed.
In a fourth aspect, there is provided a computer-readable storage medium storing computer instructions that, when run on a computer, cause the computer to perform the document editing method of the first aspect.
Compared with the prior art for realizing document verification in a manual mode, the method, the device and the electronic equipment acquire text information input by a target user at a first label based on a target document template, acquire a first writing rule corresponding to the text information at the first label when detecting that an input cursor of the target user moves to a second label, wherein the first label and the second label are labels corresponding to corresponding parts of the target document template respectively, then verify the text information input at the first label based on the acquired first writing rule, and finally prompt corresponding information of the target user based on a first document verification result. The edited document is checked based on the predefined writing rules which are managed in a centralized way, so that the automatic check of the document is realized, and the efficiency of document check is improved; in addition, when the fact that the input cursor of the target user moves to the second label is detected, the text information input at the first label is checked based on the acquired first writing rule, so that real-time check of the written document is achieved, timeliness of document check is improved compared with check after the whole document is edited, and the target user is helped to find errors in the document in time and correct errors.
Additional aspects and advantages of the application 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 application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a schematic flow chart of a document editing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a document editing apparatus according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another document editing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of illustrating the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The embodiment of the application provides a document editing method, as shown in fig. 1, which can include the following steps:
step S101, obtaining text information input by a target user at a first label based on a target document template;
specifically, the document edited by the target user has a corresponding target document template, the target document may include a plurality of labels, for example, the target document may include a background, a catalog, a summary, a keyword, a first chapter (or a first portion, a first chapter, etc.), and the target user may select to edit and input a corresponding text at any label (such as the first label), and may acquire text information input by the target user at the first label based on the target document template through a corresponding text acquisition method.
The text input by the target user can be input online through a browser (such as an IE browser and a Chrome browser).
Step S102, when detecting that an input cursor of a target user moves to a second label, acquiring a first writing rule corresponding to text information at the first label, wherein the rule is stored in a database of an application background to be uniformly maintained and managed by a scale team, and the first label and the second label are labels corresponding to corresponding parts of a target document template respectively;
specifically, when detecting that an input cursor of a target user moves from a first label to a second label according to a corresponding monitoring rule, acquiring a first writing rule corresponding to text information at the first label; the first label and the second label are labels corresponding to corresponding parts of the target document template respectively, for example, the first label and the second label can be a background label and a abstract label of the target document template respectively; the monitoring can be realized through NTKO plug-in units or other methods, and is not limited herein, wherein NTKO can directly edit documents such as WPS, MS Office, gold mountain electronic watch and the like in kernel browsers such as IE, google and the like and store the documents on a web server, unified management of the documents and electronic forms is realized, and the method has the necessary functions of basic editing operation, trace reservation, template cover red, two-dimensional code reading, pdf reading, tif reading and the like of Office automation systems.
Step S103, based on the acquired first writing rule, checking the text information input at the first label;
the first writing rule is predefined, and based on the first writing rule, whether text information input at the first tag accords with the first writing rule or not can be checked.
Step S104, based on the first document checking result, prompting corresponding information for the target user.
Specifically, when the text information input at the first tag accords with the first writing rule, a prompt for writing correctness or no problem is performed, or no prompt is performed; when the text information input at the first tag does not accord with the first writing rule, prompting the user to change, wherein the prompting can comprise a format, content and the like which need to be changed.
Compared with the prior art that the document is checked by a manual mode, according to the method, text information input by a target user at a first label is acquired based on a target document template, when the fact that an input cursor of the target user moves to a second label is detected, a first writing rule corresponding to the text information at the first label is acquired, the first label and the second label are labels corresponding to corresponding parts of the target document template respectively, then the text information input at the first label is checked based on the acquired first writing rule, and finally corresponding information prompt is carried out on the target user based on a first document checking result. The edited document is checked based on the predefined writing rule, so that the automatic check of the document is realized, and the efficiency of document check is improved; in addition, when the fact that the input cursor of the target user moves to the second label is detected, the text information input at the first label is checked based on the acquired first writing rule, so that real-time check of the written document is achieved, timeliness of document check is improved compared with check after the whole document is edited, and the target user is helped to find errors in the document in time and correct errors.
The embodiment of the application provides a possible implementation manner, and the method further comprises the following steps:
step S105 (not shown in the figure), receiving an instruction of selecting a document template by a target user;
specifically, when the target user logs in to the corresponding document editing management system, a plurality of selectable document templates are presented to the target user, and the target user can select the corresponding document templates based on own writing requirements.
Step S106 (not shown), based on the instruction of selecting the document template by the target user, inquiring the local database or sending the document template request instruction to the server;
specifically, based on the document template selection instruction of the target user, the local database may be queried or a document template request instruction may be sent to the server to obtain the document template selected by the target user;
the method comprises the steps that a local database stores a plurality of document templates, and the locally stored document templates are updated (new document templates can be added) every preset threshold time, wherein the updating can be achieved by sending a request instruction to a server and acquiring the latest document template from the server, so that the locally stored document template is ensured to be the latest document template;
the method can also obtain the latest document template by sending a request instruction to a server, wherein the server stores a plurality of document templates which can be formulated and shared by a plurality of business groups or business group personnel.
Step S107 (not shown in the figure), displaying the target document template based on the local database query result or the result information fed back by the server.
Specifically, a target document template is presented to the user for document editing based on the target document template based on the result information queried from the local database or fed back from the server.
For the embodiment of the application, the acquisition problem of the target document template is solved, so that a foundation is laid for a target user to edit the document based on the target document template.
The embodiment of the application provides a possible implementation manner, specifically, the first writing rule includes a format rule and a content rule, and step S103 includes:
step S1031 (not shown in the figure), checking the format of the text information input at the first tag based on the format rule to obtain a format checking result;
the first writing rule is predefined and defined, and may include a corresponding format rule (such as a word size, a line space, a font, whether to thicken, a paragraph, a first line indentation, etc.), and a content rule (such as content at the tag must explicitly include content, not include content, content that is included in a condition, etc.).
Specifically, based on the corresponding format rule, the format of the text information input at the first tag is checked (such as whether the font, the font size, etc. are correct) to obtain a format check result.
Step S1032 (not shown), the content of the text information input at the first label is checked based on the content rule, and a content check result is obtained;
specifically, based on the corresponding content rule, the content of the text information input at the first tag is checked, wherein the wrongly written characters of the text can be checked, and a content check result is obtained.
Step S1033 (not shown in the figure), determines a first document collation result based on the format collation result and the content collation result.
Specifically, a first document collation result is determined based on the format collation result and the content collation result.
For the embodiment of the application, the document proofreading comprises format proofreading and content proofreading, so that the richness of the document proofreading function is improved, and the quality and efficiency of the written document can be further improved.
The present embodiment provides a possible implementation manner, specifically, step S1032 (not shown in the figure) includes at least one of the following:
step S10321 (not shown in the figure) detects whether the text information input at the first tag contains a preset first keyword, and when the text information does not contain the preset first keyword, the result of the verification is that the text information does not pass;
specifically, the corresponding content rule is that the content at the tag must contain the corresponding content, whether the text information input at the first tag contains a preset first keyword can be detected, when the text information does not contain the preset first keyword, the result of the checking is that the text information does not pass through, and the target user is prompted to add the content of the corresponding part.
Step S10322 (not shown in the figure) detects whether the text information input at the first tag contains a preset second keyword, and when the text information contains the preset second keyword, the checking result is not passed;
specifically, the corresponding content rule is that the content at the tag does not need to contain the corresponding content, whether the text information input at the first tag contains a preset first keyword can be detected, when the text information contains the preset first keyword, the result of the checking is that the text information does not pass through, and the target user is prompted to delete the content of the corresponding part.
Step S10323 (not shown in the figure) extracts the subject of the text information input at the first tag through the corresponding natural language understanding algorithm, and when the subject is different from the preset subject, the result of the verification is not passed.
Specifically, a theme of the text information input at the first tag can be extracted through a corresponding natural language understanding algorithm, when the theme is different from a preset theme, the verification result is not passed, a target user is prompted to modify corresponding content, and when the extracted theme is the same as the preset theme, the verification result is passed. The method can also detect the similarity between the text information input at the first tag and the corresponding text content in the target document template, when the similarity is within a preset threshold range, the correction is passed, and when the similarity exceeds the preset threshold range, the correction is not passed, and the target user is prompted to modify the corresponding part.
For the embodiment of the application, the problem of how to realize document proofreading according to content rules is solved.
The embodiment of the application provides a possible implementation manner, and further, the method further comprises the following steps:
step S108 (not shown in the figure), storing the current document edited by the target user;
specifically, the target user may store the edited current document; the current edited document can be a document with complete editing or a document with incomplete editing; the storage may be local or stored in a server; the storing process may be performed automatically (e.g., may be performed automatically at intervals of a predetermined threshold time), or may be performed manually; the document can be saved by adopting a delta updating mechanism, namely the document is saved in an increment way, so that when the document needs to be saved to a server, the network is ensured not to be blocked by large document data.
Step S109 (not shown in the figure) of receiving an editing request of a current document edited by a target user stored by the target user;
specifically, the target user can re-edit the stored current document edited by the target user; the saved edited current document can be an edited document or an incompletely edited document, and the target user can modify the edited document or supplement the content of the incompletely edited document.
Step S110 (not shown in the figure) displays the stored current document edited by the target user, collates the stored current document edited by the target user based on the updated writing rule corresponding to the at least one tag, and displays the second collating result to the user.
Specifically, the latest writing rule corresponding to each label corresponding to the document is obtained, the stored current document edited by the target user is checked based on the updated writing rule corresponding to at least one label, and the second checking result is displayed to the user.
For the embodiment of the application, the document to be reedited by the target user is checked based on the latest compiling rule of the corresponding label, so that the document edited by the target user accords with the latest rule, and the quality of document editing can be improved.
Fig. 2 is a document editing apparatus according to an embodiment of the present application, where the apparatus 20 includes: a first acquisition module 201, a second acquisition module 202, a first calibration module 203 and a prompt module 204,
a first obtaining module 201, configured to obtain text information input by a target user at a first tag based on a target document template;
the second obtaining module 202 is configured to obtain a first writing rule corresponding to text information at a first tag when it is detected that an input cursor of a target user moves to the second tag, where the first tag and the second tag are tags corresponding to corresponding portions of a target document template respectively;
the first proofreading module 203 is configured to proofread text information input at the first tag based on the obtained first writing rule;
and the prompting module 204 is used for prompting corresponding information for the target user based on the first document checking result.
Compared with the prior art that the document is checked by a manual mode, according to the document editing device, text information input by a target user at the first label is acquired based on the target document template, when the fact that an input cursor of the target user moves to the second label is detected, a first writing rule corresponding to the text information at the first label is acquired, the first label and the second label are labels corresponding to corresponding parts of the target document template respectively, then the text information input at the first label is checked based on the acquired first writing rule, and finally corresponding information prompt is carried out on the target user based on a first document checking result. The edited document is checked based on the predefined writing rule, so that the automatic check of the document is realized, and the efficiency of document check is improved; in addition, when the fact that the input cursor of the target user moves to the second label is detected, the text information input at the first label is checked based on the acquired first writing rule, so that real-time check of the written document is achieved, timeliness of document check is improved compared with check after the whole document is edited, and the target user is helped to find errors in the document in time and correct errors.
The document editing apparatus of the present embodiment may perform a document editing method provided in the above embodiments of the present application, and the implementation principle is similar, and will not be described here again.
As shown in fig. 3, another document editing apparatus is provided according to an embodiment of the present application, the apparatus 30 including: a first acquisition module 301, a second acquisition module 302, a first calibration module 303 and a prompt module 304,
a first obtaining module 301, configured to obtain text information input by a target user at a first tag based on a target document template;
the first acquisition module 301 in fig. 3 is the same as or similar to the first acquisition module 201 in fig. 2.
The second obtaining module 302 is configured to obtain a first writing rule corresponding to text information at a first tag when it is detected that an input cursor of a target user moves to the second tag, where the first tag and the second tag are tags corresponding to corresponding portions of a target document template respectively;
wherein the second acquisition module 302 in fig. 3 is the same as or similar to the function of the second acquisition module 202 in fig. 2.
A first checking module 303, configured to check text information input at the first tag based on the obtained first writing rule;
wherein the first collation module 303 in fig. 3 is the same as or similar to the function of the first collation module 203 in fig. 2.
And the prompt module 304 is configured to prompt the target user for corresponding information based on the first document verification result.
Wherein the hinting module 304 in fig. 3 is the same or similar to the functionality of the hinting module 204 in fig. 2.
The embodiment of the application provides a possible implementation manner, and further, the device further comprises:
a first receiving module 305, configured to receive an instruction for selecting a document template by a target user;
a query module 306 for querying a local database or sending a document template request instruction to a server based on an instruction for selecting a document template by a target user;
and the display module 307 is used for displaying the target document template based on the query result of the local database or the result information fed back by the server.
For the embodiment of the application, the acquisition problem of the target document template is solved, so that a foundation is laid for a target user to edit the document based on the target document template.
The embodiment of the present application provides a possible implementation manner, where the first writing rule includes a format rule and a content rule, and specifically, the first proofreading module 303 includes:
a first checking unit 3031, configured to check the format of the text information input at the first tag based on the format rule, to obtain a format check result;
a second correction unit 3032, configured to correct the content of the text information input at the first tag based on the content rule, to obtain a content correction result;
a determining unit 3033, configured to determine a first document collation result based on the format collation result and the content collation result.
For the embodiment of the application, the document proofreading comprises format proofreading and content proofreading, so that the richness of the document proofreading content is improved, and the quality of the written document is further improved.
The embodiment of the present application provides a possible implementation manner, specifically, the second calibration unit 3032 is specifically configured to detect whether text information input at the first tag includes a preset first keyword, and if the text information does not include the preset first keyword, the calibration result is not passed;
and/or the method is used for detecting whether the text information input at the first label contains a preset second keyword, and if so, the result of the checking is not passed;
and/or extracting the theme of the text information input at the first tag through a corresponding natural language understanding algorithm, and if the theme is different from a preset theme, checking that the result is not passed.
For the embodiment of the application, the problem of how to realize document proofreading according to content rules is solved.
The embodiment of the application provides a possible implementation manner, and further, the device further comprises:
a storage module 308, configured to store a current document edited by a target user;
a receiving module 309, configured to receive an editing request of a current document edited by a target user and stored by the target user;
and the second correction module 310 is configured to display the stored current document edited by the target user, and correct the stored current document edited by the target user based on the updated writing rule corresponding to the at least one tag, and display the second correction result to the user.
For the embodiment of the application, the document to be reedited by the target user is checked based on the latest compiling rule of the corresponding label, so that the document edited by the target user accords with the latest rule, and the quality of document editing can be improved.
Compared with the prior art that the document is checked by a manual mode, according to the document editing device, text information input by a target user at the first label is acquired based on the target document template, when the fact that an input cursor of the target user moves to the second label is detected, a first writing rule corresponding to the text information at the first label is acquired, the first label and the second label are labels corresponding to corresponding parts of the target document template respectively, then the text information input at the first label is checked based on the acquired first writing rule, and finally corresponding information prompt is carried out on the target user based on a first document checking result. The edited document is checked based on the predefined writing rule of unified management, so that the automatic check of the document is realized, and the document check efficiency is improved; in addition, when the fact that the input cursor of the target user moves to the second label is detected, the text information input at the first label is checked based on the acquired first writing rule, so that real-time check of written documents is achieved, timeliness of document check is improved compared with check after the whole document is edited, and the method is beneficial to timely finding errors in the documents and correcting errors of the target users of the scale team.
The embodiment of the present application provides a document editing apparatus, which is applicable to the method shown in the foregoing embodiment, and is not described herein again.
The embodiment of the application provides an electronic device, as shown in fig. 4, an electronic device 40 shown in fig. 4 includes: a processor 4001 and a memory 4003. Wherein the processor 4001 is coupled to the memory 4003, such as via a bus 4002. Further, the electronic device 40 may also include a transceiver 4004. Note that, in practical applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 400 is not limited to the embodiment of the present application. The processor 4001 is applied to the embodiment of the present application, and is configured to implement functions of the first acquiring module, the second acquiring module, the first checking module, and the prompting module shown in fig. 2 or fig. 3, and functions of the first receiving module, the query module, the display module, the storage module, the receiving module, and the second checking module shown in fig. 3. The transceiver 4004 includes a receiver and a transmitter.
The processor 4001 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor 4001 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 4002 may include a path to transfer information between the aforementioned components. Bus 4002 may be a PCI bus or an EISA bus, or the like. The bus 4002 can be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
The memory 4003 may be, but is not limited to, ROM or other type of static storage device that can store static information and instructions, RAM or other type of dynamic storage device that can store information and instructions, EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 4003 is used for storing application program codes for executing the present application, and execution is controlled by the processor 4001. The processor 4001 is configured to execute application program codes stored in the memory 4003 to realize the functions of the document editing apparatus provided by the embodiment shown in fig. 2 or fig. 3.
Compared with the prior art for realizing document proofreading by a manual mode, the embodiment of the application obtains the text information input by a target user at a first label based on a target document template, when detecting that an input cursor of the target user moves to a second label, obtains a first writing rule corresponding to the text information at the first label, wherein the first label and the second label are labels corresponding to corresponding parts of the target document template respectively, proofreads the text information input at the first label based on the obtained first writing rule, and finally prompts corresponding information for the target user based on a first document proofreading result. The edited document is checked based on the predefined writing rule, so that the automatic check of the document is realized, and the efficiency of document check is improved; in addition, when the fact that the input cursor of the target user moves to the second label is detected, the text information input at the first label is checked based on the acquired first writing rule, so that real-time check of the written document is achieved, timeliness of document check is improved compared with check after the whole document is edited, and the target user is helped to find errors in the document in time and correct errors.
The embodiment of the application provides electronic equipment which is suitable for the embodiment of the method. And will not be described in detail herein.
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method shown in the above embodiment.
Compared with the prior art that document proofreading is achieved manually, according to the embodiment of the application, text information input by a target user at a first label is obtained based on a target document template, when the fact that an input cursor of the target user moves to a second label is detected, a first writing rule corresponding to the text information at the first label is obtained, the first label and the second label are labels corresponding to corresponding parts of the target document template respectively, then the text information input at the first label is proofreaded based on the obtained first writing rule, and finally corresponding information prompt is carried out on the target user based on a first document proofreading result. The edited document is checked based on the predefined writing rule of unified management, so that the automatic check of the document is realized, and the document check efficiency is improved; in addition, when the fact that the input cursor of the target user moves to the second label is detected, the text information input at the first label is checked based on the acquired first writing rule, so that real-time check of written documents is achieved, timeliness of document check is improved compared with the fact that check is conducted after the whole document is edited, and the target user of the scale team can find errors in the documents in time and correct errors.
The present application provides a computer readable storage medium suitable for use in the above method embodiments. And will not be described in detail herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present application and it should be noted that, for a person skilled in the art, several improvements and modifications can be made without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (8)

1. A document editing method, comprising:
acquiring text information input by a target user at a first tag based on a target document template;
when the input cursor of the target user is detected to move to a second label, a first writing rule corresponding to text information at the first label is obtained, wherein the first label and the second label are labels corresponding to corresponding parts of the target document template respectively;
based on the obtained first writing rule, performing proofreading on the text information input at the first tag, where the first writing rule includes a format rule and a content rule, and based on the obtained first writing rule, performing proofreading on the text information input at the first tag includes:
the format of the text information input at the first tag is checked based on the format rule, and a format check result is obtained;
the content of the text information input at the first tag is checked based on the content rule, and a content check result is obtained;
determining a first document collation result based on the format collation result and the content collation result;
and prompting corresponding information for the target user based on the first document correction result.
2. The method according to claim 1, characterized in that the method further comprises:
receiving an instruction of selecting a document template by the target user;
based on the instruction of selecting the document template by the target user, inquiring a local database or sending a document template request instruction to a server;
and displaying the target document template based on the query result of the local database or the result information fed back by the server.
3. The method of claim 1, wherein the comparing the content of the text information entered at the first tag based on the content rule to obtain a content comparison result comprises at least one of:
detecting whether the text information input at the first label contains a preset first keyword or not, and if the text information does not contain the preset first keyword, checking that the result is not passed;
detecting whether the text information input at the first label contains a preset second keyword, and if so, determining that the result of the correction is not passed;
and extracting the theme of the text information input at the first tag through a corresponding natural language understanding algorithm, and if the theme is different from a preset theme, checking the result as not passing.
4. The method according to claim 1, characterized in that the method further comprises:
storing the current document edited by the target user;
receiving an editing request of the current document edited by the target user and stored by the target user;
and displaying the stored current document edited by the target user, checking the stored current document edited by the target user based on the updated writing rule corresponding to at least one tag, and displaying a second checking result to the user.
5. A document editing apparatus, comprising:
the first acquisition module is used for acquiring text information input by a target user at a first label based on a target document template;
the second acquisition module is used for acquiring a first writing rule corresponding to text information at the first label when detecting that the input cursor of the target user moves to a second label, wherein the first label and the second label are labels corresponding to corresponding parts of the target document template respectively;
the first proofreading module is configured to proofread text information input at the first tag based on the acquired first writing rule, where the first proofreading module includes:
the first checking unit is used for checking the format of the text information input at the first tag based on the format rule to obtain a format checking result;
the second correction unit is used for correcting the content of the text information input at the first tag based on the content rule to obtain a content correction result;
a determining unit configured to determine a first document collation result based on the format collation result and the content collation result;
and the prompt module is used for prompting corresponding information for the target user based on the first document correction result.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the first receiving module is used for receiving an instruction of selecting the document template by the target user;
the query module is used for querying a local database or sending a document template request instruction to a server based on the instruction of selecting the document template by the target user;
and the display module is used for displaying the target document template based on the query result of the local database or the result information fed back by the server.
7. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: a document editing method according to any one of claims 1 to 4 is performed.
8. A computer readable storage medium for storing computer instructions which, when run on a computer, cause the computer to perform the document editing method of any of the preceding claims 1 to 4.
CN201911341414.XA 2019-12-24 2019-12-24 Document editing method, device, electronic equipment and computer readable storage medium Active CN111159982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911341414.XA CN111159982B (en) 2019-12-24 2019-12-24 Document editing method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911341414.XA CN111159982B (en) 2019-12-24 2019-12-24 Document editing method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111159982A CN111159982A (en) 2020-05-15
CN111159982B true CN111159982B (en) 2023-05-16

Family

ID=70558104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911341414.XA Active CN111159982B (en) 2019-12-24 2019-12-24 Document editing method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111159982B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111753507B (en) * 2020-06-30 2022-08-26 腾讯数码(天津)有限公司 Text data processing method, device, equipment and storage medium
CN113255303B (en) * 2020-09-14 2022-03-25 苏州七星天专利运营管理有限责任公司 Method and system for assisting in editing document
CN113128181B (en) * 2021-03-24 2023-04-07 五八有限公司 Information processing method and device
CN113689198A (en) * 2021-08-31 2021-11-23 远光软件股份有限公司 Project file generation method and device, storage medium and terminal equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5833956B2 (en) * 2012-03-06 2015-12-16 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Information processing apparatus, method, and program for proofreading document
KR20150085282A (en) * 2014-01-15 2015-07-23 김민규 Operating method of terminal for correcting electronic document
US20190138645A1 (en) * 2017-11-07 2019-05-09 Microsoft Technology Licensing, Llc Automated document assistant with top skills
CN110020381A (en) * 2018-02-23 2019-07-16 中国平安财产保险股份有限公司 Method of calibration, device, equipment and computer storage medium based on configuration file
CN109445657B (en) * 2018-10-17 2021-04-16 天津字节跳动科技有限公司 Document editing method and device
CN110134929A (en) * 2019-04-17 2019-08-16 深圳壹账通智能科技有限公司 Document verification method, apparatus, computer equipment and storage medium
CN110516045A (en) * 2019-08-30 2019-11-29 北京字节跳动网络技术有限公司 Method, apparatus, electronic equipment and the storage medium of document detection

Also Published As

Publication number Publication date
CN111159982A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN111159982B (en) Document editing method, device, electronic equipment and computer readable storage medium
CN106844307B (en) System and method for converting Excel into Word based on mark
CN111352628A (en) Front-end code generation method and device, computer system and readable storage medium
CN112286934A (en) Database table importing method, device, equipment and medium
CN114090671A (en) Data import method and device, electronic equipment and storage medium
CN111475700A (en) Data extraction method and related equipment
CN112036144A (en) Data analysis method and device, computer equipment and readable storage medium
CN114417226A (en) Page generation method, display method, device, electronic equipment and storage medium
CN111444368B (en) Method and device for constructing user portrait, computer equipment and storage medium
US20140177951A1 (en) Method, apparatus, and storage medium having computer executable instructions for processing of an electronic document
US20170371847A1 (en) Autotagging a template of a reporting workbook
CN115983208A (en) Document conversion method and electronic equipment
CN114169306A (en) Method, device and equipment for generating electronic receipt and readable storage medium
CN112463896B (en) Archive catalogue data processing method, archive catalogue data processing device, computing equipment and storage medium
US8719693B2 (en) Method for storing localized XML document values
CN113239670A (en) Method and device for uploading service template, computer equipment and storage medium
CN108228688B (en) Template generation method, system and server based on XBRL
CN113377712B (en) Buried data query method, buried data query device, buried data query equipment and computer readable storage medium
CN113268193B (en) Notebook page moving method, electronic equipment and computer storage medium
CN113448927A (en) File naming method and device, electronic equipment and storage medium
CN116431950A (en) Web control element management method and device, electronic equipment and medium
CN114676151A (en) Data labeling method, device, equipment and storage medium
CN115964051A (en) Multilingual entry detection method and device, computer equipment and storage medium
CN115062584A (en) Document style generation method and device and electronic equipment
CN114238839A (en) Page generation method and device, electronic equipment 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