CN111159982A - Document editing method and device, electronic equipment and computer readable storage medium - Google Patents
Document editing method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN111159982A CN111159982A CN201911341414.XA CN201911341414A CN111159982A CN 111159982 A CN111159982 A CN 111159982A CN 201911341414 A CN201911341414 A CN 201911341414A CN 111159982 A CN111159982 A CN 111159982A
- Authority
- CN
- China
- Prior art keywords
- document
- label
- target user
- text information
- proofreading
- 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.)
- Granted
Links
Images
Landscapes
- Document Processing Apparatus (AREA)
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 corrected based on the predefined compiling rule which can be managed in a centralized way, so that the automatic correction of the document is realized, and the document correction efficiency is improved; in addition, when the input cursor of the target user is detected to move to the second label, the text information input at the first label is corrected based on the acquired first compiling rule, so that the real-time correction of the compiled document is realized, and compared with the correction after the whole document is edited, the timeliness of the document correction is improved, and the target user can find and correct errors in the document in time.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a document editing method, an apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of computer technology, electronic office becomes 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 becomes a problem. At present, the proofreading of the documents is performed manually, that is, each written document is proofread in a manner of manually reading the document, however, according to the current document proofreading manner, it is necessary for corresponding auditors to read each document one by one, which has a problem of low efficiency, and especially under the condition of a large number of documents, the consumed time is more, and in addition, the writing errors in the documents are easily missed in the manual proofreading manner.
Disclosure of Invention
The application provides a document editing method, a document editing device, an electronic device and a computer-readable storage medium, which are used for improving the document editing efficiency and the proofreading accuracy, 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 label based on a target document template;
when the input cursor of a target user is detected to move to a second label, acquiring a first writing rule corresponding to text information at a 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 proofreading result of the first writing rule.
Optionally, the method further comprises:
receiving an instruction of a target user for selecting a document template;
based on 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;
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 the proofreading the text information input at the first tag based on the obtained first writing rule includes:
the format of the text information input at the first label is corrected based on the format rule, and a format correction result is obtained;
checking the content of the text information input at the first label based on the content rule to obtain a content checking result;
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 checking result includes at least one of the following:
detecting whether the text information input at the first label contains a preset first keyword or not, and if not, judging that the proofreading result is not passed;
detecting whether the text information input at the first label contains a preset second keyword or not, and if so, determining that the proofreading result is not passed;
and extracting the theme of the text information input at the first label through a corresponding natural language understanding algorithm, wherein when the theme is different from the preset theme, the proofreading result is failed.
Optionally, the method further comprises:
storing a current document edited by a target user;
receiving an editing request of a current document edited by a target user 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, 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 obtaining module is used for obtaining a first writing rule corresponding to the text information at the first label when the input cursor of the target user is detected to move to the second label, and the first label and the second label are labels corresponding to corresponding parts of the target document template respectively;
the first proofreading module is used for proofreading the text information input at the first label based on the acquired first writing rule;
and the prompting module is used for prompting corresponding information to the target user based on the first document proofreading result.
Optionally, the apparatus further comprises:
the first receiving module is used for receiving an instruction of a target user for selecting a document template;
the query module is used for querying a local database or sending a document template request instruction to the server based on an instruction of selecting a document template by a 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 proofreading unit is used for proofreading the format of the text information input at the first label based on the format rule to obtain a format proofreading result;
the second proofreading unit is used for proofreading the content of the text information input at the first label based on the content rule to obtain a content proofreading result;
a determination 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 verification system is used for detecting whether the text information input at the first label contains a preset second keyword or not, and if the text information contains the preset second keyword, the verification result is that the text information does not pass;
and/or the theme used for extracting the text information input at the first label through a corresponding natural language understanding algorithm, and when the theme is different from the preset theme, the proofreading result is failed.
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, which includes:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs 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 for storing computer instructions which, when run on a computer, cause the computer to perform the document editing method shown in the first aspect.
Compared with the prior art that the document is corrected manually, the document editing method, the document editing device, the electronic equipment and the computer-readable storage medium have the advantages that the text information input by a target user at a first label based on a target document template is obtained, when the input cursor of the target user is detected to move to a second label, 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 corrected based on the obtained first writing rule, and finally the target user is prompted for corresponding information based on a first document correction result. The edited document is corrected based on the predefined centralized management compiling rule, so that the automatic correction of the document is realized, and the document correction efficiency is improved; in addition, when the input cursor of the target user is detected to move to the second label, the text information input at the first label is corrected based on the acquired first compiling rule, so that the real-time correction of the compiled document is realized, and compared with the correction after the whole document is edited, the timeliness of the document correction is improved, and the target user can find and correct errors in the document in time.
Additional aspects and advantages of the present 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 present 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 of which:
FIG. 1 is a flowchart illustrating a document editing method according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a document editing apparatus according to an embodiment of the present application;
FIG. 3 is a schematic structural 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
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining 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 the context clearly indicates otherwise. 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. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, 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 to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
An embodiment of the present application provides a document editing method, as shown in fig. 1, the method may include the following steps:
step S101, acquiring 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 tags, for example, the target document may include tags such as a background, a catalog, an abstract, a keyword, a first chapter (or a first part, a first chapter, and the like), the target user may select to edit and input a corresponding text at any tag (such as the first tag), and text information input by the target user at the first tag based on the target document template may be acquired by a corresponding text acquisition method.
The process of inputting text by the target user can be input online through a browser (such as an IE browser, 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 a first label, wherein the rule is stored in a database of an application background and is uniformly maintained and managed by a scale team, and the first label and the second label are respectively labels corresponding to corresponding parts of a target document template;
specifically, when the input cursor of the target user is detected to move from a first label to a second label according to the corresponding monitoring rule, a first writing rule corresponding to the text information at the first label is obtained; the first tag and the second tag are tags corresponding to corresponding portions of the target document template, for example, the first tag and the second tag may be a background tag and an abstract tag of the target document template, respectively; the monitoring can be realized through NTKO plug-in or other methods, and the monitoring is not limited in the application, wherein the NTKO can directly edit documents such as WPS, MS Office, Jinshan electronic watch and the like in kernel browsers such as IE, Google and the like and store the documents on a web server, so that the unified management of the documents and the electronic forms is realized, and the monitoring has the necessary functions of an Office automation system such as basic editing operation, trace reservation, template red-in-red, two-dimensional code, pdf reading, tif reading and the like.
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 the text information input at the first label conforms to the first writing rule can be checked.
And step S104, prompting corresponding information to the target user based on the first document proofreading result.
Specifically, when the text information input at the first tag conforms to the first writing rule, prompting that writing is correct or no problem is performed, or prompting is not performed; and when the text information input at the first label does not accord with the first writing rule, prompting the user to change, wherein the prompt can comprise the format, the content and the like needing to be changed.
The embodiment of the application provides a document editing method, compared with the prior art that document proofreading is achieved manually, according to the method, text information input by a target user at a first label based on a target document template is obtained, when it is detected that an input cursor of the target user moves to a second label, 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, based on the obtained first writing rule, the text information input at the first label is proofread, and finally, based on a first document proofreading result, corresponding information is prompted to the target user. The edited document is corrected based on the predefined writing rule, so that the automatic correction of the document is realized, and the document correction efficiency is improved; in addition, when the input cursor of the target user is detected to move to the second label, the text information input at the first label is corrected based on the acquired first compiling rule, so that the real-time correction of the compiled document is realized, and compared with the correction after the whole document is edited, the timeliness of the document correction is improved, and the target user can find and correct errors in the document in time.
The embodiment of the present application provides a possible implementation manner, and the method further includes:
step S105 (not shown in the figure), receiving an instruction of a target user to select a document template;
specifically, when a target user logs in a corresponding document editing management system, a plurality of selectable document templates are displayed for the target user, and the target user can select the corresponding document template based on the writing requirement of the target user.
Step S106 (not shown in the figure), based on the instruction of the target user selecting the document template, inquiring a local database or sending a document template request instruction to a 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, so as to obtain the document template selected by the target user;
the method includes that a plurality of document templates are stored in a local database, and the plurality of locally stored templates are updated (new document templates can be added) every predetermined threshold time, wherein the updating can be realized by sending a request instruction to a server and acquiring the latest document template from a server, so that the locally stored document template is ensured to be the latest document template;
the latest document template may also be obtained by sending a request instruction to a server, where the server stores a plurality of document templates, and the document templates may be made and shared by a plurality of business groups or business group personnel.
Step S107 (not shown), displaying the target document template based on the query result of the local database or the result information fed back by the server.
Specifically, the target document template is presented to the user based on the result queried from the local database or the result information fed back by the server, so that the user can edit the document based on the target document template.
According to the embodiment of the application, the problem of obtaining 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, specifically, the first writing rule includes a format rule and a content rule, and step S103 includes:
step S1031 (not shown in the figure), which collates the format of the text information input at the first tag based on the format rule to obtain a format collation result;
the first writing rule is predefined and may include corresponding format rules (e.g. font size, line spacing, font style, bold, paragraph, head line indentation, etc.), content rules (e.g. content that the content at the tag must explicitly contain, not contain, conditionally contain, etc.).
Specifically, based on the corresponding format rule, the format of the text information input at the first tag is corrected (e.g., whether the font, the font size, etc. are correct), so as to obtain a format correction result.
Step S1032 (not shown in the figure), performing content proofreading on the content of the text information input at the first tag based on the content rule, and obtaining a content proofreading result;
specifically, the content of the text information input at the first tag is checked based on the corresponding content rule, wherein the wrongly written characters of the text can be checked to obtain a content checking result.
Step S1033 (not shown in the figure), a first document collation result is determined 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 proofreading of the document not only comprises format proofreading, but also comprises content proofreading, so that the richness of the document proofreading function is improved, and the quality and the efficiency of the written document can be further improved.
The embodiment of the present application provides a possible implementation manner, and specifically, step S1032 (not shown in the figure) includes at least one of the following:
step S10321 (not shown in the figure) of detecting whether the text information input at the first tag includes a preset first keyword, and if not, the result of the check is not passed;
specifically, the corresponding content rule is that the content at the tag must include the corresponding content, and it may be detected whether the text information input at the first tag includes a preset first keyword, and when the text information does not include the preset first keyword, the checking result is failed, and the target user is prompted to add the corresponding content.
Step S10322 (not shown in the figure) of detecting whether the text information input at the first tag includes a preset second keyword, and if the text information includes the preset second keyword, the result of the check is not passed;
specifically, the corresponding content rule is that the content at the tag does not necessarily include the corresponding content, and it may be detected whether the text information input at the first tag includes a preset first keyword, and when the text information includes the preset first keyword, the checking result is failed, and the target user is prompted to delete the corresponding part of the content.
Step S10323 (not shown in the figure) extracts the subject of the text information input at the first tag through a corresponding natural language understanding algorithm, and if the subject is not the same as the preset subject, the collation result is no-pass.
Specifically, the theme of the text information input at the first tag may be extracted and obtained through a corresponding natural language understanding algorithm, when the theme is different from the preset theme, the collation result is failed, the target user is prompted to modify the corresponding content, and when the extracted theme is the same as the preset theme, the collation result is passed. The similarity between the text information input at the first tag and the corresponding text content in the target document template can also be detected, when the similarity is within a preset threshold range, the proofreading is passed, and when the similarity exceeds the preset threshold range, the proofreading is not passed, and the target user is prompted to modify the corresponding part.
The method and the device solve the problem of how to realize document proofreading according to the content rule.
The embodiment of the present application provides a possible implementation manner, and further, the method further includes:
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 edited current document can be an edited document or an incompletely edited document; the storage may be locally stored or stored to a server; the storage process may be performed automatically (for example, the storage may be performed automatically at predetermined threshold time intervals), or may be performed manually; the document can be saved by adopting a delta updating mechanism, namely, the document is saved in an increment mode, 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), receiving an editing request of the current document edited by the target user stored by the target user;
specifically, the target user may 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), displaying the stored current document edited by the target user, performing a proofreading on the stored current document edited by the target user based on the updated writing rule corresponding to the at least one tag, and displaying the second proofreading result to the user.
Specifically, the writing rule corresponding to each latest tag corresponding to the document is acquired, the stored current document edited by the target user is corrected based on the updated writing rule corresponding to at least one tag, and the second correction result is displayed to the user.
According to the embodiment of the application, the document to be edited by the target user is corrected based on the latest writing rule of the corresponding tag, so that the document edited by the target user meets the latest rule, and the document editing quality can be improved.
Fig. 2 is a document editing apparatus provided in an embodiment of the present application, where the apparatus 20 includes: a first obtaining module 201, a second obtaining module 202, a first proofreading module 203 and a prompting 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;
a second obtaining module 202, configured to obtain, when it is detected that an input cursor of a target user moves to a second tag, a first writing rule corresponding to text information at a first 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 the text information input at the first tag based on the acquired first writing rule;
and the prompt module 204 is configured to prompt the target user for corresponding information based on the first document proofreading result.
The embodiment of the application provides a document editing device, and compared with the prior art that document proofreading is achieved manually, according to the document editing device, text information input by a target user at a first label based on a target document template is obtained, when it is detected that an input cursor of the target user moves to a second label, 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 based on the obtained first writing rule, the text information input at the first label is proofread, and finally based on a first document proofreading result, corresponding information is prompted to the target user. The edited document is corrected based on the predefined writing rule, so that the automatic correction of the document is realized, and the document correction efficiency is improved; in addition, when the input cursor of the target user is detected to move to the second label, the text information input at the first label is corrected based on the acquired first compiling rule, so that the real-time correction of the compiled document is realized, and compared with the correction after the whole document is edited, the timeliness of the document correction is improved, and the target user can find and correct errors in the document in time.
The document editing apparatus of this embodiment can execute the document editing method provided in the above embodiments of this application, and the implementation principles thereof are similar, and are not described herein again.
As shown in fig. 3, the present embodiment provides another document editing apparatus, where the apparatus 30 includes: a first obtaining module 301, a second obtaining module 302, a first checking module 303 and a prompting 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 obtaining module 301 in fig. 3 has the same or similar function as the first obtaining module 201 in fig. 2.
A second obtaining module 302, configured to obtain, when it is detected that an input cursor of a target user moves to a second tag, a first writing rule corresponding to text information at a first tag, where the first tag and the second tag are tags corresponding to corresponding portions of a target document template, respectively;
wherein the second obtaining module 302 in fig. 3 has the same or similar function as the second obtaining module 202 in fig. 2.
The first proofreading module 303 is configured to proofread the text information input at the first tag based on the acquired first writing rule;
wherein the first checking module 303 in fig. 3 has the same or similar function as the first checking 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 proofreading result.
The hinting module 304 of fig. 3 can have the same or similar functions as the hinting module 204 of fig. 2.
The embodiment of the present application provides a possible implementation manner, and further, the apparatus further includes:
a first receiving module 305, configured to receive an instruction of a target user to select a document template;
the query module 306 is used for querying 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 the display module 307 is configured to display the target document template based on the query result of the local database or the result information fed back by the server.
According to the embodiment of the application, the problem of obtaining 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:
the first proofreading unit 3031 is configured to proofread the format of the text information input at the first tag based on the format rule, and obtain a format proofreading result;
a second proofreading unit 3032, configured to proofread the content of the text information input at the first tag based on the content rule, so as to obtain a content proofreading result;
a determining unit 3033 is configured to determine a first document proofreading result based on the format proofreading result and the content proofreading result.
For the embodiment of the application, the proofreading of the document not only comprises format proofreading, but also comprises content proofreading, so that the richness of the proofreading content of the document is improved, and the quality of the written document can be further improved.
The embodiment of the present application provides a possible implementation manner, and in particular, the second proofreading unit 3032 is specifically configured to detect whether text information input at the first tag includes a preset first keyword, and when the text information does not include the preset first keyword, the proofreading result is not passed;
and/or the verification system is used for detecting whether the text information input at the first label contains a preset second keyword or not, and if the text information contains the preset second keyword, the verification result is that the text information does not pass;
and/or the theme used for extracting the text information input at the first label through a corresponding natural language understanding algorithm, and when the theme is different from the preset theme, the proofreading result is failed.
The method and the device solve the problem of how to realize document proofreading according to the content rule.
The embodiment of the present application provides a possible implementation manner, and further, the apparatus further includes:
the storage module 308 is 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 stored in the target user;
and the second check-up module 310 is configured to display the stored current document edited by the target user, check the stored current document edited by the target user based on the updated writing rule corresponding to the at least one tag, and display a second check-up result to the user.
According to the embodiment of the application, the document to be edited by the target user is corrected based on the latest writing rule of the corresponding tag, so that the document edited by the target user meets the latest rule, and the document editing quality can be improved.
The embodiment of the application provides a document editing device, and compared with the prior art that document proofreading is achieved manually, according to the document editing device, text information input by a target user at a first label based on a target document template is obtained, when it is detected that an input cursor of the target user moves to a second label, 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 based on the obtained first writing rule, the text information input at the first label is proofread, and finally based on a first document proofreading result, corresponding information is prompted to the target user. The edited document is corrected based on the predefined uniformly managed compiling rule, so that the automatic correction of the document is realized, and the document correction efficiency is improved; in addition, when the input cursor of the target user is detected to move to the second label, the text information input at the first label is corrected based on the acquired first compiling rule, so that the real-time correction of the compiled document is realized, and compared with the correction after the whole document is edited, the timeliness of the document correction is improved, and the target user of the scale team can find and correct errors in the document in time.
The embodiment of the present application provides a document editing apparatus, which is suitable for the method shown in the foregoing embodiment, and details are not described here again.
An embodiment of the present 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. Processor 4001 is coupled to memory 4003, such as via bus 4002. Further, the electronic device 40 may also include a transceiver 4004. In addition, the transceiver 4004 is not limited to one in practical applications, and the structure of the electronic device 400 is not limited to the embodiment of the present application. The processor 4001 is applied to this embodiment, and is configured to implement the functions of the first obtaining module, the second obtaining module, the first proofreading module, and the prompt module shown in fig. 2 or fig. 3, and the functions of the first receiving module, the query module, the display module, the storage module, the receiving module, and the second proofreading module shown in fig. 3. The transceiver 4004 includes a receiver and a transmitter.
The memory 4003 is used for storing application codes for executing the scheme of the present application, and the execution is controlled by the processor 4001. The processor 4001 is configured to execute application code stored in the memory 4003 to implement the functions of the document editing apparatus provided by the embodiment shown in fig. 2 or fig. 3.
The embodiment of the application provides electronic equipment, 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 based on a target document template is obtained, when it is detected that an input cursor of the target user moves to a second label, 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, based on the obtained first writing rule, the text information input at the first label is proofread, and finally, based on a first document proofreading result, corresponding information is prompted to the target user. The edited document is corrected based on the predefined writing rule, so that the automatic correction of the document is realized, and the document correction efficiency is improved; in addition, when the input cursor of the target user is detected to move to the second label, the text information input at the first label is corrected based on the acquired first compiling rule, so that the real-time correction of the compiled document is realized, and compared with the correction after the whole document is edited, the timeliness of the document correction is improved, and the target user can find and correct errors in the document in time.
The embodiment of the application provides an electronic device suitable for the method embodiment. And will not be described in detail herein.
The present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method shown in the above embodiments is implemented.
Compared with the prior art that the document is corrected manually, the text information input by the target user at the first label based on the target document template is obtained, when the input cursor of the target user is detected to move to the second label, the first writing rule corresponding to the text information at the first label is obtained, the first label and the second label are respectively labels corresponding to corresponding parts of the target document template, the text information input at the first label is corrected based on the obtained first writing rule, and finally the target user is prompted for corresponding information based on the first document correction result. The edited document is corrected based on the predefined uniformly managed compiling rule, so that the automatic correction of the document is realized, and the document correction efficiency is improved; in addition, when the input cursor of the target user is detected to move to the second label, the text information input at the first label is corrected based on the acquired first compiling rule, so that the real-time correction of the compiled document is realized, and compared with the correction after the whole document is edited, the timeliness of the document correction is improved, and the target user of a scale team can find and correct errors in the document in time.
The embodiment of the application provides a computer-readable storage medium which is suitable for the method embodiment. 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, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.
Claims (10)
1. A method of document editing, comprising:
acquiring text information input by a target user at a first label based on a target document template;
when the input cursor of the target user is detected to move 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 the 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 first document proofreading result.
2. The method of claim 1, further comprising:
receiving an instruction of the target user for selecting a document template;
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 first composition rule comprises a format rule and a content rule, and wherein the proofreading the text information input at the first tag based on the obtained first composition rule comprises:
the format of the text information input at the first label is corrected based on the format rule, and a format correction result is obtained;
checking the content of the text information input at the first label based on the content rule to obtain a content checking result;
determining the first document proofreading result based on the format proofreading result and the content proofreading result.
4. The method of claim 1, wherein the content of the text information input at the first tag is checked based on the content rule, and obtaining a content check 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 not, judging that the proofreading result is not passed;
detecting whether the text information input at the first label contains a preset second keyword or not, and if so, determining that the proofreading result is not passed;
and extracting the theme of the text information input at the first label through a corresponding natural language understanding algorithm, wherein when the theme is different from a preset theme, the proofreading result is failed.
5. The method of claim 1, further comprising:
storing the current document edited by the target user;
receiving an edit request of the target user's stored current document edited 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.
6. 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;
a second obtaining module, configured to obtain, when it is detected that an input cursor of the target user moves to a second tag, a first writing rule corresponding to text information at the first tag, where the first tag and the second tag are tags corresponding to corresponding portions of the target document template, respectively;
the first proofreading module is used for proofreading the text information input at the first label based on the acquired first writing rule;
and the prompting module is used for prompting corresponding information to the target user based on the first document proofreading result.
7. The apparatus of claim 6, further comprising:
the first receiving module is used for receiving an instruction of selecting a 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.
8. The apparatus of claim 6, wherein the first composition rule comprises a format rule and a content rule, and wherein the first collation module comprises:
the first proofreading unit is used for proofreading the format of the text information input at the first label based on the format rule to obtain a format proofreading result;
the second proofreading unit is used for proofreading the content of the text information input at the first label based on the content rule to obtain a content proofreading result;
a determination unit configured to determine the first document collation result based on the format collation result and the content collation result.
9. 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 programs configured to: performing the document editing method of any one of claims 1 to 5.
10. A computer-readable storage medium for storing computer instructions which, when executed on a computer, cause the computer to perform the document editing method of any of claims 1 to 5.
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 true CN111159982A (en) | 2020-05-15 |
CN111159982B 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) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111753507A (en) * | 2020-06-30 | 2020-10-09 | 腾讯数码(天津)有限公司 | Text data processing method, device, equipment and storage medium |
CN113128181A (en) * | 2021-03-24 | 2021-07-16 | 五八有限公司 | Information processing method and device |
CN113255303A (en) * | 2020-09-14 | 2021-08-13 | 苏州七星天专利运营管理有限责任公司 | Method and system for assisting in editing document |
CN113689198A (en) * | 2021-08-31 | 2021-11-23 | 远光软件股份有限公司 | Project file generation method and device, storage medium and terminal equipment |
CN114399774A (en) * | 2022-01-19 | 2022-04-26 | 润申标准化技术服务(上海)有限公司 | File processing method and device and electronic equipment |
CN116976300A (en) * | 2023-06-19 | 2023-10-31 | 珠海盈米基金销售有限公司 | Text information extraction and generation method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130243263A1 (en) * | 2012-03-06 | 2013-09-19 | International Business Machines Corporation | Information processor, method, and program for document proofreading |
US20150199322A1 (en) * | 2014-01-15 | 2015-07-16 | Min Kyu Kim | Operating Method of Terminal for Proofreading Electronic Document |
CN109445657A (en) * | 2018-10-17 | 2019-03-08 | 天津字节跳动科技有限公司 | Document edit method and device |
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 |
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 |
-
2019
- 2019-12-24 CN CN201911341414.XA patent/CN111159982B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130243263A1 (en) * | 2012-03-06 | 2013-09-19 | International Business Machines Corporation | Information processor, method, and program for document proofreading |
US20150199322A1 (en) * | 2014-01-15 | 2015-07-16 | Min Kyu Kim | Operating Method of Terminal for Proofreading 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 |
CN109445657A (en) * | 2018-10-17 | 2019-03-08 | 天津字节跳动科技有限公司 | Document edit 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 |
Non-Patent Citations (1)
Title |
---|
龚永罡 等: "中文文本敏感信息自动校对方法研究", 《电脑与电信》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111753507A (en) * | 2020-06-30 | 2020-10-09 | 腾讯数码(天津)有限公司 | Text data processing method, device, equipment and storage medium |
CN113255303A (en) * | 2020-09-14 | 2021-08-13 | 苏州七星天专利运营管理有限责任公司 | Method and system for assisting in editing document |
CN113128181A (en) * | 2021-03-24 | 2021-07-16 | 五八有限公司 | Information processing method and device |
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 |
CN114399774A (en) * | 2022-01-19 | 2022-04-26 | 润申标准化技术服务(上海)有限公司 | File processing method and device and electronic equipment |
CN114399774B (en) * | 2022-01-19 | 2025-01-24 | 润申标准化技术服务(上海)有限公司 | File processing method, device and electronic equipment |
CN116976300A (en) * | 2023-06-19 | 2023-10-31 | 珠海盈米基金销售有限公司 | Text information extraction and generation method and system |
Also Published As
Publication number | Publication date |
---|---|
CN111159982B (en) | 2023-05-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111159982B (en) | Document editing method, device, electronic equipment and computer readable storage medium | |
US8752009B2 (en) | Source code comparison device, source code comparison method and source code comparison program | |
CN104462179B (en) | Method for processing big data, apparatus for executing the same and storage medium storing the same | |
CN106844307B (en) | System and method for converting Excel into Word based on mark | |
CN111191079B (en) | Document content acquisition method, device, equipment and storage medium | |
CN112036144B (en) | Data analysis method, device, computer equipment and readable storage medium | |
CN111352628A (en) | Front-end code generation method and device, computer system and readable storage medium | |
CN114090671A (en) | Data import method and device, electronic equipment and storage medium | |
CN114417226A (en) | Page generation method, display method, device, electronic equipment and storage medium | |
CN107844468A (en) | The cross-page recognition methods of form data, electronic equipment and computer-readable recording medium | |
CN110806866A (en) | Generation method and device of front-end management system | |
CN116933350A (en) | Inventory compiling method, device, equipment and storage medium based on drawing sheet | |
US20210174013A1 (en) | Information processing apparatus and non-transitory computer readable medium storing program | |
CN113010169A (en) | Method and apparatus for converting UI diagram into code file | |
US7386592B2 (en) | Method and system for merging topically related e-mail in a collaborative work environment | |
US10007593B2 (en) | Injection of data into a software application | |
CN112068841B (en) | Method and system for automatically generating project flow document | |
CN111444368B (en) | Method and device for constructing user portrait, computer equipment and storage medium | |
CN112685013A (en) | CSS code optimization method based on front-end vue project and related equipment | |
CN112508535A (en) | Jbpm-based method and device for improving approval workflow | |
CN111898759A (en) | Knowledge base updating method and device, electronic equipment and readable storage medium | |
CN108228688B (en) | Template generation method, system and server based on XBRL | |
CN115169307A (en) | Data processing method, device and equipment based on table and storage medium | |
CN116227454A (en) | Universal automatic report generation method and system | |
CN115983208A (en) | Document conversion method and electronic equipment |
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 |