CN110968989A - Method and device for displaying error correction information on front-end page - Google Patents

Method and device for displaying error correction information on front-end page Download PDF

Info

Publication number
CN110968989A
CN110968989A CN201811130150.9A CN201811130150A CN110968989A CN 110968989 A CN110968989 A CN 110968989A CN 201811130150 A CN201811130150 A CN 201811130150A CN 110968989 A CN110968989 A CN 110968989A
Authority
CN
China
Prior art keywords
error correction
error
document
information
label
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
Application number
CN201811130150.9A
Other languages
Chinese (zh)
Other versions
CN110968989B (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201811130150.9A priority Critical patent/CN110968989B/en
Publication of CN110968989A publication Critical patent/CN110968989A/en
Application granted granted Critical
Publication of CN110968989B publication Critical patent/CN110968989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Machine Translation (AREA)

Abstract

The invention discloses a method and a device for displaying error correction information on a front-end page, which relate to the technical field of data processing and are greatly convenient for a user to carry out recheck operation on intelligent error correction, and the main technical scheme of the invention is as follows: when the operation of putting the referee document into the rich text editor in a webpage document format is detected, sending a request for performing error correction on the referee document to a background; receiving error points fed back by a background and error correction labels corresponding to the error points, wherein the error correction labels at least comprise error correction reason information and correction information; acquiring the position information of the error point on the referee document; establishing a mapping relation between the position information and an error correction label corresponding to the error point; when the operation of clicking the error correction label is received, the error point and the error correction label on the position corresponding to the position information are displayed on the front-end page according to the position information with the mapping relation with the error correction label. The method is mainly used for carrying out rechecking on intelligent error correction of the referee document.

Description

Method and device for displaying error correction information on front-end page
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for displaying error correction information on a front-end page.
Background
The referee document is used for recording the trial case process and result of the people's court, is a carrier of the result of the litigation activity and is a unique certificate for the people's court to determine and distribute the right obligation of the entity of the party. A referee document with complete structure, complete elements and strict logic is a certificate for the right and burden of a party and is also an important basis for the upper-level people court to supervise the civil judgment activities of the lower-level people court.
At present, a court produces a large amount of referee documents every day, carelessness is inevitable when documents are manually written, but manual review is troublesome and labor cost is high. The existing countermeasure is to intelligently correct possible errors on a referee document according to an agreed rule by means of a computer language. However, for the intelligently checked errors, the errors still need to be manually searched and rechecked one by one, so that omission or repetition of rechecking is inevitable, if the checked errors relate to legal professional knowledge, related data also needs to be manually searched, whether the errors need to be corrected or not is analyzed and judged, and if the errors need to be corrected, manual modification is correspondingly performed, so that the consumed labor cost is quite large, and particularly for a large number of referee documents, when the number of the checked errors is large, the manual rechecking efficiency is lower.
Disclosure of Invention
In view of this, the present invention provides a method for displaying error correction information on a front-end page, and a main object of the method is to optimize a method for displaying an error correction label and corresponding error points on the front-end page, so as to visually display the error points, corresponding error correction reason information, and corresponding correction information of a referee document on the front-end page, thereby greatly facilitating a user to perform a review operation on an intelligent error correction, ensuring that the review operation is clear, accurate, controllable, and improving the review efficiency.
The viewing time length data is subjected to data cleaning, so that the viewing time length generated by the non-user actual viewing behavior is deleted, and the cleaned viewing time length data can reflect the viewing behavior of the user more accurately.
In order to solve the above problems, the present invention mainly provides the following technical solutions:
in one aspect, the present invention provides a method for displaying error correction information on a front-end page, including:
when the operation of putting the referee document into a rich text editor in a webpage document format is detected, sending a request for performing error correction on the referee document to a background;
receiving an error point on the referee document fed back by the background and an error correction label corresponding to the error point, wherein the error correction label at least comprises error correction reason information and correction information;
acquiring the position information of the error point on the referee document;
establishing a mapping relation between the position information and an error correction label corresponding to the error point;
when the operation of clicking the error correction label is received, displaying an error point on a position corresponding to the position information and the error correction label on a front-end page according to the position information with a mapping relation with the error correction label.
Optionally, the establishing a mapping relationship between the location information and the error correction label corresponding to the error point includes:
adding a positioning identifier to the position information;
binding the error correction label with the positioning identifier;
and establishing a mapping relation between the position information and the error correction label through the positioning identifier.
Optionally, the method further includes:
acquiring a text corresponding to the error point;
and positioning error fragments on the text according to the correction information.
Optionally, the error correction tag further includes at least an ignore button and a correct button, and the method further includes:
when the operation of clicking the ignore button is received, determining that the error fragment does not need to be corrected;
and when the operation of clicking the correction button is received, covering the error fragment by using the correct text stored in the correction information.
Optionally, the overwriting the error fragment with the correct text stored in the revision information includes:
according to the size of a preset document fragment, performing fragment splitting on the correct text to obtain a plurality of first document fragments;
splitting the error fragments according to the size of preset document fragments to obtain a plurality of second document fragments;
searching for document fragments which are different from the error fragments in the correct text according to the comparison between the first document fragments and the second document fragments, marking different first document fragments in the first document fragments of the correct text, and marking different second document fragments in the second document fragments of the error fragments;
overwriting the marked second document fragment with the marked first document fragment.
Optionally, after the mapping relationship between the location information and the error correction label corresponding to the error point is established, the method further includes:
when the operation of clicking the error correction label is received, determining the position information which has a mapping relation with the error correction label;
scrolling to a position corresponding to the position information by calling a scrolling function of the rich text editor;
and adding a highlight pattern to the error point on the position.
In order to achieve the above object, according to another aspect of the present invention, a storage medium is provided, where the storage medium includes a stored program, and when the program runs, a device on which the storage medium is located is controlled to execute the method for presenting error correction information on a front-end page.
In order to achieve the above object, according to another aspect of the present invention, a processor for executing a program is provided, where the program executes the method for presenting error correction information on a front-end page described above.
In another aspect, the present invention further provides an apparatus for presenting error correction information on a front page, where the apparatus includes:
a transmitting unit for transmitting a request for performing error correction on a referee document to a background, upon detecting an operation of putting the referee document in a web document format into a rich text editor;
a receiving unit, configured to receive the error point on the referee document and an error correction tag corresponding to the error point, where the error correction tag at least includes error correction reason information and correction information;
an acquisition unit, configured to acquire position information of the error point on the referee document received by the receiving unit;
the establishing unit is used for establishing a mapping relation between the position information acquired by the acquiring unit and the error correction label corresponding to the error point;
and the display unit is used for displaying the error point on the position corresponding to the position information and the error correction label on a front-end page according to the position information with the mapping relation with the error correction label when the operation of clicking the error correction label is received.
Optionally, the establishing unit includes:
the adding module is used for adding a positioning identifier to the position information;
the binding module is used for binding the error correction label by using the positioning identifier added by the adding module;
and the establishing module is used for establishing the mapping relation between the position information and the error correction label through the positioning identifier.
Optionally, the apparatus further comprises:
the acquiring unit is further configured to acquire a text corresponding to the error point;
and the positioning unit is used for positioning error fragments on the text acquired by the acquisition unit according to the correction information.
Optionally, the error correction tag at least further includes an ignore button and a correct button, and the apparatus further includes:
the determining unit is used for determining that the error fragment does not need to be corrected when the operation of clicking the ignore button is received;
and the covering unit is used for covering the error fragments by using correct texts stored in the correction information when the operation of clicking the correction button is received.
Optionally, the covering unit includes:
the splitting module is used for splitting the correct text according to the size of a preset document fragment to obtain a plurality of first document fragments;
the splitting module is further configured to split the error fragment according to a preset size of the document fragment to obtain a plurality of second document fragments;
the searching module is used for searching document fragments which are different from the error fragments in the correct text according to the comparison between the first document fragments and the second document fragments;
a marking module, configured to mark different first document fragments in the plurality of first document fragments of the correct text;
the marking module is further configured to mark different second document shards in the plurality of second document shards of the error shard;
an overlay module to overlay the marked second document fragment with the marked first document fragment.
Optionally, the apparatus further comprises:
the determining unit is further configured to determine, when an operation of clicking the error correction tag is received, location information having a mapping relationship with the error correction tag;
the scrolling unit is used for scrolling to a position corresponding to the position information by calling a scrolling function of the rich text editor;
and the adding unit is used for adding a highlight pattern to the error point on the position.
By the technical scheme, the technical scheme provided by the invention at least has the following advantages:
the invention provides a method and a device for displaying error correction information on a front-end page, which are characterized in that after the operation of putting a referee document into a rich text editor in a webpage document format is detected, a request for executing error correction on the referee document is sent to a background so as to wait for the background to intelligently correct possible error points on the referee document according to an agreed rule by using a computer language and feed back corresponding error correction labels, and then the positions of the error points on the referee document and the corresponding error correction labels are mapped so as to simultaneously display the corresponding error points and the corresponding error correction labels on the front-end page when the operation of clicking the error correction labels is received. Compared with the prior art which searches related data one by one manually to review error points presented on the referee document, the invention can display the error points of the referee document, error correction reason information and correction information contained in the corresponding error correction labels on a front page in a visual mode so as to facilitate the analysis and judgment of whether to correct the error points by a user, and can quickly position the corresponding error points according to the error correction labels based on the established mapping relation so as to facilitate the user to randomly perform the review operation on a certain error point and avoid omission or repeated review, thereby greatly facilitating the user to perform the review operation on intelligent error correction, ensuring that the review operation is clear, accurate and controllable, and improving the review efficiency.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a method for displaying error correction information on a front-end page according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for displaying error correction information on a front-end page according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating an apparatus for displaying error correction information on a front-end page according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating another apparatus for presenting error correction information in a front page according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides a method for displaying error correction information on a front-end page, as shown in fig. 1, the method is a method for optimizing the display of an error correction label and a corresponding error point on the front-end page, so that the error point, the corresponding error correction reason information and the corresponding correction information of a referee document are displayed on the front-end page in a visual mode, and a user can perform review operation on intelligent error correction conveniently, and the embodiment of the invention provides the following specific steps:
101. when an operation of putting the referee document in a web document format into the rich text editor is detected, a request for performing error correction on the referee document is sent to a background.
Among them, a Rich Text Editor (RTE) is a Text Editor that can be embedded in a browser, and what you see is what you get, such as: the editor opens the source rich text editor. For the embodiment of the invention, the Word document of the referee document is converted into the webpage document, and the webpage document is formed by a series of character fragments with formats according to a tree structure, so that the webpage document of the referee document is formed by a plurality of webpage document fragments, wherein one webpage document fragment contains text information, format information and the like, for example: in the web document of the referee document, there is a title "prosecution book", which may be a web document fragment, whose text information is "prosecution book", and whose format information may be word-centered, bold, etc.
In the embodiment of the invention, the function of converting the Word document of the referee document into the webpage document is as follows: since a web document is mainly written based on HyperText Markup Language (HTML) and Cascading Style Sheets (CSSs), HTML elements on the web document can be located, such as: the position of the text information 'the prosecution book' in the webpage document is positioned, and accordingly, the positioning of any text information on the referee document can be completed by converting the Word document of the referee document into the webpage document.
In the embodiment of the invention, the function of putting the referee document into the rich text editor in the form of the webpage document is as follows: the rich text editor can be embedded in the browser to obtain the text information, so that the rich text editor can be used for visually displaying the positioning of any text information on the referee document on a front page, and a user can greatly conveniently look up the text information positioned on the referee document.
In the embodiment of the invention, the referee document is put into the rich text editor in a webpage document format, which is equivalent to providing text data to be corrected for the intelligent error correction operation executed in the background, and the intelligent error correction operation executed in the background stated herein refers to intelligently correcting errors possibly existing on the referee document according to the agreed rules by means of a computer language. Upon detecting the above-described operation of placing the referee document in a web document format into the rich text editor, a request to the background to perform error correction on the referee document is sent.
102. And receiving the error points fed back by the background and the error correction labels corresponding to the error points.
Wherein, the error correction label at least comprises error correction reason information and correction information. Such as: the error correction cause information may be "legal writing error", and the correction information may be "correction prompt: legal citations express no regulation, written correctly as: criminal litigation law of the people's republic of China.
Wherein, the error point refers to that the referee document contains text information with writing errors, for example, "the referee is raised according to the first one hundred and seventy regulations of the Chinese people's republic of China criminal prosecution law", please judge according to law that "the Chinese people's republic of China prosecution law" is written with errors, which should be "the Chinese people's republic of China criminal prosecution law", it should be noted here that, according to the error correction rules in the background, when the referee document is corrected, when it is determined that there are errors, the errors are not only corrected, but also the sentences in which the errors are located or the designated word number range covering contents containing the errors are corrected, specifically, the error can be preset in the error correction rules in the background, as above, the fed back error point is not only "the background prosecution law", but "the Chinese people's republic of China" according to the second one hundred and seventy regulations of the Chinese people's republic prosecution law ",law", the official complaints are referred to, please refer to the legal judgment department ", which means that the context containing errors is simultaneously fed back to the user, so that the user can conveniently review the error points on the referee document during the review.
In the embodiment of the invention, if the background finishes the intelligent error correction of the referee document, the error points and the error correction labels corresponding to the error points are sent to the front end, and because the referee document to be corrected is put into the rich text editor in a webpage document format when the referee document to be corrected is sent to the background, the error points existing on the referee document can be directly and visually displayed in the rich text editor at the front end when the error points fed back by the background are received.
103. And acquiring the position information of the error point on the referee document.
For the embodiment of the invention, the error point is a section of text information containing a writing error on the referee document, when the referee document exists on the rich text editor in a webpage document format, the error point is equivalent to a webpage document fragment and is displayed on the rich text editor, and accordingly, the position information of the webpage document fragment corresponding to the error point in the webpage document of the referee document can be determined according to an HTML element and a CSS style contained in the webpage document of the referee document. Further, since the size of the display window of the rich text editor is limited, that is, the entire referee document cannot be displayed on the display window at the same time, the position of the error point on the referee document is determined according to the position information, so that the scrolling function of the rich text editor can be invoked to scroll to the position of the error point to display it on the rich text editor.
104. And establishing a mapping relation between the position information and the error correction label corresponding to the error point.
The mapping relationship is established to establish a corresponding relationship between each error point and how to correct the error correction label, so that if an error point is selected, the corresponding error correction label can be directly found, and similarly, if a certain error correction label is selected, which error point the error correction label is used for correcting can be directly determined.
For the embodiment of the invention, the mapping relation between the position information of the error point in the referee document and the corresponding error correction label can be established, so that when a certain error correction label is selected, the scrolling function of the rich text editor can be directly called, and the error point corresponding to the error correction label is scrolled to present the corresponding error point in the display window of the rich text editor.
105. When the operation of clicking the error correction label is received, the error point and the error correction label on the position corresponding to the position information are displayed on the front-end page according to the position information with the mapping relation with the error correction label.
In the embodiment of the present invention, since the mapping relationship between the position information of the error point and the error correction label corresponding to the error point is already established, when an operation of clicking the error correction label on the front-end page by the user is received, the error correction label is displayed on the front-end page, and the error point corresponding to the error correction label is also presented in the display window of the rich text editor, so that the error point and the error correction label corresponding to the error correction label are visually pushed to the user on the front-end page, thereby facilitating the user to perform a review operation. Further, in the process of performing the rechecking on the intelligent error correction, the rechecking is not required to be performed according to the sequence from the first line to the last line of the referee document, but the error correction rechecking operation can be performed on the corresponding error point at any time by selecting a certain error correction label, so that omission or repeated rechecking is avoided, and the rechecking process can be more flexible.
The embodiment of the invention provides a method and a device for displaying error correction information on a front-end page. Compared with the prior art that the error points presented on the referee document are reviewed by manually searching related data one by one, the embodiment of the invention can display the error points of the referee document, error correction reason information and correction information contained in the corresponding error correction labels on a front page in a visual mode so as to facilitate the analysis and judgment of whether to correct the error points by a user, and based on the established mapping relation, the corresponding error points can be quickly positioned according to the error correction labels so as to facilitate the user to randomly perform review operation on a certain error point and avoid omission or repeated review, thereby greatly facilitating the user to perform review operation on intelligent error correction, ensuring clear, accurate and controllable review operation and improving the review efficiency.
In order to explain the above embodiments in more detail, another method for displaying error correction information on a front-end page is provided in the embodiments of the present invention, as shown in fig. 2, when a user analyzes and determines that a repair should be performed on an error point, a correction button may be triggered by one key, so as to cover an error fragment of a text corresponding to the error point with a correct text stored in the correction information, so as to complete automatic and fast correction, and the embodiments of the present invention provide the following specific steps:
201. when an operation of putting the referee document in a web document format into the rich text editor is detected, a request for performing error correction on the referee document is sent to a background.
In the embodiment of the present invention, please refer to step 101 for the statement of this step, which is not described herein again.
In addition, when putting the referee document into the rich text editor in the form of a web document, that is, when making the web document rich in text, the situation that the web document and the rich text display the same format but have different style information should be considered, such as: when the typeface format of the 'prosecution book' is displayed, the style information written by the webpage document is different from the style information written by the rich text editor, so that the following steps can be manually found out in advance: the same format of the webpage document and the rich text is displayed, but the corresponding style information is different, that is, the mapping relation between the webpage document record style and the rich text record style for displaying the same format is found, the mapping relation can be stored in a mapping table in advance, and then when the referee document is put into a rich text editor in the webpage document format, the text style in the webpage document can be automatically and accurately and comprehensively displayed on the display window of the rich text editor according to the mapping table.
202. And receiving the error points fed back by the background and the error correction labels corresponding to the error points.
In the embodiment of the present invention, please refer to step 102 for the statement of this step, which is not described herein again.
It should be noted that, the background intelligently corrects errors in two aspects mainly by using computer language according to the agreed rules, and the method includes: legal writing errors and literal language errors, wherein the legal writing errors refer to correcting the referee document from the perspective of legal professional knowledge, such as: the criminal law of the people's republic of China is wrongly written as the criminal prosecution law of the people's republic of China, wherein the errors of the word language mean the errors of wrongly written or mispronounced words, inconsistent word sequences and the like. In addition, some non-meaningful text information (such as blank space) is removed in the intelligent error correction process, for example: if a space exists between the ' this ' and the ' this ' in the current writing, the error cannot be corrected in the intelligent error correction process, that is, the ' this ' space ' in the current writing is considered to be correct, in order to avoid the error correction holes in the intelligent error correction process, some non-meaningful text information can be assembled into a regular expression in advance, so that whether the non-meaningful text information causes errors in writing of the referee document can be corrected correctly in the subsequent error correction process.
203. And acquiring the position information of the error point on the referee document.
In the embodiment of the present invention, please refer to step 103 for the statement of this step, which is not described herein again.
204. And establishing a mapping relation between the position information and the error correction label corresponding to the error point.
In the embodiment of the present invention, a mapping relationship between the position information of the error point and the error correction label corresponding to the error point can be established through the positioning identifier, and the specific steps include:
and adding a positioning identifier to the position information of the error point, binding an error correction label by using the positioning identifier, and establishing a mapping relation between the position information of the error point and the corresponding error correction label through the positioning identifier.
205. When an operation of clicking an error correction label is received, according to the position information which has a mapping relation with the error correction label, displaying an error point and the error correction label on a front-end page at a position corresponding to the position information.
In the embodiment of the present invention, please refer to step 105 for the statement of this step, which is not described herein again.
Further, when an operation of clicking an error correction tag is received, the position information which has a mapping relation with the error correction tag is determined, the position information is scrolled to the position corresponding to the position information by calling a scrolling function of the rich text editor, and a highlight mode is added to the error point on the position, so that the error point is clearly displayed on a display window of the rich text editor.
206. And acquiring a text corresponding to the error point.
In the embodiment of the present invention, step 206 and step 208 describe how to complete the correction of the error point on the visualized front page.
For the embodiment of the present invention, the error point means that the referee document contains a text written wrongly, for example, "the referee has a certain crime and then automatically commits a case, such as describing his own crime, is tied to the head, and has a first prescribed criminal episode of the 67 th clause of the criminal law", here, "the chinese republic of China" the sixty-seventh first episode "is wrongly written as" the 67 th first episode of the criminal law ", and for the error point, the corresponding text is" the referee has an automatically commits a case after a certain crime and then automatically commits a case, such as describing his own crime, is tied to the head, and has a first prescribed criminal episode of the 67 th clause of the criminal law ".
207. And positioning error fragments on the text according to the correction information.
The error fragment refers to an error text contained in a text corresponding to the error point.
As for this step, the following description is made in detail by following the above example, and the correction information in the error correction label may be "correction prompt: the statute reference statement is not normative and should be written correctly as: the sixty-seventh first edition of the people's republic of China's criminal law ' can be obtained according to the corrected information, and then the wrong text ' the 67 th first edition of the criminal law ' contained in the wrong point can be correspondingly determined.
208. And when the operation of clicking the correction button is received, covering the error fragment by using the correct text stored in the correction information.
In the embodiment of the present invention, an ignore button and a correct button may be further added in the error correction tag, and the ignore button and the correct button may be written as a one-touch button, so that when the user clicks the ignore button, and accordingly, the front end receives the click ignore operation, it may be determined that no correction is needed for the error fragment, and the error correction tag may be set to gray to indicate that the error correction tag has been reviewed by the user, but no correction is performed for the error point. If the user clicks the correction button, and accordingly, when the front end receives the operation of clicking the correction button, it may be determined that the error fragment needs to be corrected, the step of covering the error fragment with correct text in the correction information to complete the correction of the error point is performed, and meanwhile, the correction tag may be set to green to indicate that the error correction tag has been reviewed by the user, and the correction of the error point is performed. For the embodiment of the present invention, the review result of the error correction label may be indicated by setting different colors to the error correction label, and a specific method for setting the colors is not particularly limited herein.
Further, the specific steps of covering the error fragment with the correct text in the correction information are further described in detail as follows:
in the above example, the error point is "an automatic case after a certain crime by an addressee, such as providing the criminal bank of the addressee, and is first, the criminal case with the first regulation of the 67 th clause of the criminal law", the correct text in the revision information is "the sixty-seven first clause of the chinese republic of China" and the error fragment is "the 67 th first clause of the criminal law".
For the above example, according to the preset document fragment size, performing fragment splitting on the correct text and the error fragment respectively can obtain: correct text of ' sixty-seven first versions ' corresponding multiple document fragments ' of ' Chinese people's republic of China ' criminal law ', ' sixty-seven ' and ' first version '; as can be seen from comparison between a plurality of document snippets "criminal method", "67 th bar" and "first bar" corresponding to the "67 th first part of the criminal law", a plurality of document snippets contained in the correct text and a plurality of document snippets contained in the error snippets have the same document snippets "first part", but when the error snippets are covered with the correct text, "" the citizen's republic of China "criminal law" is covered with "criminal method", and "the sixty-seven bars" are covered with "the" 67 th bar ", that is, the wrong document snippets are corrected, but the correction is not performed on the correct document snippets" first part ", so if the correct text is directly covered with the error snippets, the corresponding front-end output result is" the first part of the sixty-seven bars in the "citizen's republic of China" law, that is: there are two "first items", and the front-end output result obtained in this way is also wrong, so to avoid the above problem, after the fragmentation of the correct text and the wrong fragments, by comparing a plurality of document fragments respectively contained in the correct text and the wrong fragments, different document fragments are found out and marked, so as to cover the marked document fragments in the wrong fragments with the marked document fragments in the correct text, or alternatively, the same document fragments can be found out and marked, for example, the "first item", and one marked document fragment is deleted when the correct text covers the wrong fragments, and the error fragments can be corrected accurately by both of the above two ways.
Further, as an implementation of the methods shown in fig. 1 and fig. 2, an embodiment of the present invention provides an apparatus for counting viewing time. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. The device is applied to the error point, the corresponding error correction reason information and the corresponding correction information of the referee document are displayed on the front-end page in a visual mode, so that a user can conveniently perform the rechecking operation on the intelligent error correction, and the device specifically comprises the following components as shown in figure 3:
a sending unit 301, configured to send a request for performing error correction on a referee document to a background after detecting an operation of placing the referee document in a web document format in a rich text editor;
a receiving unit 302, configured to receive the feedback of the error point on the referee document and the error correction label corresponding to the error point from the background, where the error correction label at least includes error correction reason information and correction information
An obtaining unit 303, configured to obtain position information of the error point on the referee document received by the receiving unit;
a creating unit 304, configured to create a mapping relationship between the position information acquired by the acquiring unit 303 and the error correction label corresponding to the error point;
a display unit 305, configured to, when an operation of clicking the error correction tag is received, display, according to the position information having a mapping relationship with the error correction tag, an error point at a position corresponding to the position information and the error correction tag on a front-end page.
Further, as shown in fig. 4, the establishing unit 304 includes:
an adding module 3041, configured to add a positioning identifier to the location information;
a binding module 3042, configured to bind the error correction tag with the positioning identifier added by the adding module 3041;
an establishing module 3043, configured to establish a mapping relationship between the location information and the error correction tag through the positioning identifier.
Further, as shown in fig. 4, the apparatus further includes:
the obtaining unit 303 is further configured to obtain a text corresponding to the error point;
a positioning unit 306, configured to position an error fragment on the text acquired by the acquiring unit 32 according to the correction information.
Further, as shown in fig. 4, the error correction label at least includes an ignore button and a correct button, and the apparatus further includes:
a determining unit 307, configured to determine that the error fragment does not need to be corrected when the click on the ignore button is received;
and the covering unit 308 is used for covering the error fragment with the correct text stored in the correction information when the correction button is clicked.
Further, as shown in fig. 4, the covering unit 308 includes:
the splitting module 3081 is configured to perform fragment splitting on the correct text according to a preset document fragment size to obtain a plurality of first document fragments;
the splitting module 3081 is further configured to split the error fragment according to a preset size of the document fragment to obtain a plurality of second document fragments;
a searching module 3082, configured to search for a document fragment that is different in the correct text from the error fragment according to comparing the plurality of first document fragments with the plurality of second document fragments;
a marking module 3083, configured to mark different first document fragments among the plurality of first document fragments of the correct text;
the marking module 3083 is further configured to mark a second document fragment different from the plurality of second document fragments of the error fragment;
an overlay module 3084 for overlaying the marked second document fragment with the marked first document fragment.
Further, as shown in fig. 4, the apparatus further includes:
the determining unit 307 is configured to determine, when the operation of clicking the error correction tag is received, location information having a mapping relationship with the error correction tag;
a scrolling unit 309, configured to scroll to a position corresponding to the position information by invoking a scrolling function of the rich text editor;
an adding unit 310, configured to add a highlight pattern to the error point at the position.
In summary, the method and apparatus for displaying error correction information on a front-end page according to the embodiments of the present invention send a request for performing error correction on a referee document to a backend after detecting an operation of placing the referee document in a web document format in a rich text editor, so as to wait for the backend to intelligently correct an error point possibly existing on the referee document according to an agreed rule by using a computer language and feed back a corresponding error correction tag, and then establish a mapping relationship between a position of the error point on the referee document and the corresponding error correction tag, so that when an operation of clicking the error correction tag is received, the corresponding error point and the corresponding error correction tag are simultaneously displayed on the front-end page. The embodiment of the invention can visually display the error point of the referee document, the error correction reason information and the correction information contained in the corresponding error correction label on the front-end page, and can also be provided with a one-key trigger button so as to facilitate the analysis and judgment of a user whether to correct the error point, and simultaneously can rapidly control the correct text in the correction information to cover error fragments through one-key trigger so as to finish rapidly correcting the error point.
The device for displaying the error correction information on the front-end page comprises a processor and a memory, wherein the sending unit, the receiving unit, the acquiring unit, the establishing unit, the displaying unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, error points, corresponding error correction reason information and corresponding correction information of the referee document are displayed on a front-end page in a visual mode by adjusting kernel parameters, so that a user can conveniently carry out rechecking operation on intelligent error correction, clear, accurate and controllable rechecking operation is ensured, and the rechecking efficiency is improved.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium, on which a program is stored, which, when executed by a processor, implements the method for displaying an error correction performed on a referee document on a front-end page.
The embodiment of the invention provides a processor, which is used for running a program, wherein the method for displaying the error correction of the referent document on a front-end page is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
a method for presenting error correction information on a front-end page, the method comprising
When the operation of putting the referee document into a rich text editor in a webpage document format is detected, sending a request for performing error correction on the referee document to a background; receiving an error point on the referee document fed back by the background and an error correction label corresponding to the error point, wherein the error correction label at least comprises error correction reason information and correction information; acquiring the position information of the error point on the referee document; establishing a mapping relation between the position information and an error correction label corresponding to the error point; when the operation of clicking the error correction label is received, displaying an error point on a position corresponding to the position information and the error correction label on a front-end page according to the position information with a mapping relation with the error correction label.
Further, the mapping relationship between the position information and the error correction label corresponding to the error point includes: adding a positioning identifier to the position information; binding the error correction label with the positioning identifier; and establishing a mapping relation between the position information and the error correction label through the positioning identifier.
Further, the method further comprises: acquiring a text corresponding to the error point; and positioning error fragments on the text according to the correction information.
Further, the error correction label at least includes an ignore button and a correct button, and the method further includes: when the operation of clicking the ignore button is received, determining that the error fragment does not need to be corrected; and when the operation of clicking the correction button is received, covering the error fragment by using the correct text stored in the correction information.
Further, the overwriting the error fragment with the correct text stored in the revision information includes: according to the size of a preset document fragment, performing fragment splitting on the correct text to obtain a plurality of first document fragments; splitting the error fragments according to the size of preset document fragments to obtain a plurality of second document fragments; searching for document fragments which are different from the error fragments in the correct text according to the comparison between the first document fragments and the second document fragments, marking different first document fragments in the first document fragments of the correct text, and marking different second document fragments in the second document fragments of the error fragments; overwriting the marked second document fragment with the marked first document fragment.
Further, after the mapping relationship between the location information and the error correction label corresponding to the error point is established, the method further includes: when the operation of clicking the error correction label is received, determining the position information which has a mapping relation with the error correction label; scrolling to a position corresponding to the position information by calling a scrolling function of the rich text editor; and adding a highlight pattern to the error point on the position.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: when the operation of putting the referee document into a rich text editor in a webpage document format is detected, sending a request for performing error correction on the referee document to a background; receiving an error point on the referee document fed back by the background and an error correction label corresponding to the error point, wherein the error correction label at least comprises error correction reason information and correction information; acquiring the position information of the error point on the referee document; establishing a mapping relation between the position information and an error correction label corresponding to the error point; when the operation of clicking the error correction label is received, displaying an error point on a position corresponding to the position information and the error correction label on a front-end page according to the position information with a mapping relation with the error correction label.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for presenting error correction information on a front-end page, the method comprising:
when the operation of putting the referee document into a rich text editor in a webpage document format is detected, sending a request for performing error correction on the referee document to a background;
receiving an error point on the referee document fed back by the background and an error correction label corresponding to the error point, wherein the error correction label at least comprises error correction reason information and correction information;
acquiring the position information of the error point on the referee document;
establishing a mapping relation between the position information and an error correction label corresponding to the error point;
when the operation of clicking the error correction label is received, displaying an error point on a position corresponding to the position information and the error correction label on a front-end page according to the position information with a mapping relation with the error correction label.
2. The method according to claim 1, wherein the mapping the location information to the error correction label corresponding to the error point comprises:
adding a positioning identifier to the position information;
binding the error correction label with the positioning identifier;
and establishing a mapping relation between the position information and the error correction label through the positioning identifier.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring a text corresponding to the error point;
and positioning error fragments on the text according to the correction information.
4. The method of claim 3, wherein the error correction label further comprises at least an ignore button and a correct button, and wherein the method further comprises:
when the operation of clicking the ignore button is received, determining that the error fragment does not need to be corrected;
and when the operation of clicking the correction button is received, covering the error fragment by using the correct text stored in the correction information.
5. The method of claim 4, wherein overwriting the erroneous fragmentation with correct text stored within the revision information comprises:
according to the size of a preset document fragment, performing fragment splitting on the correct text to obtain a plurality of first document fragments;
splitting the error fragments according to the size of preset document fragments to obtain a plurality of second document fragments;
searching for document fragments which are different from the error fragments in the correct text according to the comparison between the first document fragments and the second document fragments, marking different first document fragments in the first document fragments of the correct text, and marking different second document fragments in the second document fragments of the error fragments;
overwriting the marked second document fragment with the marked first document fragment.
6. The method according to claim 1, wherein after mapping the location information with the error correction label corresponding to the error point, the method further comprises:
when the operation of clicking the error correction label is received, determining the position information which has a mapping relation with the error correction label;
scrolling to a position corresponding to the position information by calling a scrolling function of the rich text editor;
and adding a highlight pattern to the error point on the position.
7. An apparatus for presenting error correction information on a front-end page, the apparatus comprising:
a transmitting unit for transmitting a request for performing error correction on a referee document to a background, upon detecting an operation of putting the referee document in a web document format into a rich text editor;
a receiving unit, configured to receive the error point on the referee document and an error correction tag corresponding to the error point, where the error correction tag at least includes error correction reason information and correction information;
an acquisition unit, configured to acquire position information of the error point on the referee document received by the receiving unit;
the establishing unit is used for establishing a mapping relation between the position information acquired by the acquiring unit and the error correction label corresponding to the error point;
and the display unit is used for displaying the error point on the position corresponding to the position information and the error correction label on a front-end page according to the position information with the mapping relation with the error correction label when the operation of clicking the error correction label is received.
8. The apparatus of claim 7, wherein the establishing unit comprises:
the adding module is used for adding a positioning identifier to the position information;
the binding module is used for binding the error correction label by using the positioning identifier added by the adding module;
and the establishing module is used for establishing the mapping relation between the position information and the error correction label through the positioning identifier.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the method for presenting error correction information in a front-end page according to any one of claims 1 to 6.
10. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the method of presenting error correction information in a front-end page according to any one of claims 1 to 6 when running.
CN201811130150.9A 2018-09-27 2018-09-27 Method and device for displaying error correction information on front-end page Active CN110968989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811130150.9A CN110968989B (en) 2018-09-27 2018-09-27 Method and device for displaying error correction information on front-end page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811130150.9A CN110968989B (en) 2018-09-27 2018-09-27 Method and device for displaying error correction information on front-end page

Publications (2)

Publication Number Publication Date
CN110968989A true CN110968989A (en) 2020-04-07
CN110968989B CN110968989B (en) 2023-03-31

Family

ID=70026999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811130150.9A Active CN110968989B (en) 2018-09-27 2018-09-27 Method and device for displaying error correction information on front-end page

Country Status (1)

Country Link
CN (1) CN110968989B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625737A (en) * 2020-05-27 2020-09-04 腾讯科技(深圳)有限公司 Label display method, device, equipment and storage medium
CN112363981A (en) * 2020-11-13 2021-02-12 长城计算机软件与系统有限公司 Automatic error correction method and system for LDIF file
CN113468355A (en) * 2021-07-06 2021-10-01 深圳市华星光电半导体显示技术有限公司 Display mother board data management method and device
CN113673227A (en) * 2021-07-15 2021-11-19 福建拓尔通软件有限公司 Method, system, equipment and medium for correcting wrongly written characters of WEB editor
CN113778284A (en) * 2021-09-24 2021-12-10 北京字跳网络技术有限公司 Audit information display method, device, equipment and storage medium
CN114090135A (en) * 2021-11-24 2022-02-25 北京金堤科技有限公司 Method and device with error correction function and supporting cross-platform calling component
CN115188013A (en) * 2022-09-14 2022-10-14 泰豪信息技术有限公司 Risk prevention and control method, system, storage medium and equipment for decision book

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473285A (en) * 2013-08-29 2013-12-25 北京奇虎科技有限公司 Web information extraction method and device based on location markers
US20140281925A1 (en) * 2013-03-15 2014-09-18 Alexander Falk Automatic fix for extensible markup language errors
CN106126663A (en) * 2016-06-28 2016-11-16 华为软件技术有限公司 page aggregation method and device
CN106909694A (en) * 2017-03-13 2017-06-30 杭州普玄科技有限公司 Tag along sort data capture method and device
CN107526744A (en) * 2016-06-21 2017-12-29 北京搜狗科技发展有限公司 A kind of information displaying method and device based on search

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140281925A1 (en) * 2013-03-15 2014-09-18 Alexander Falk Automatic fix for extensible markup language errors
CN103473285A (en) * 2013-08-29 2013-12-25 北京奇虎科技有限公司 Web information extraction method and device based on location markers
CN107526744A (en) * 2016-06-21 2017-12-29 北京搜狗科技发展有限公司 A kind of information displaying method and device based on search
CN106126663A (en) * 2016-06-28 2016-11-16 华为软件技术有限公司 page aggregation method and device
CN106909694A (en) * 2017-03-13 2017-06-30 杭州普玄科技有限公司 Tag along sort data capture method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625737A (en) * 2020-05-27 2020-09-04 腾讯科技(深圳)有限公司 Label display method, device, equipment and storage medium
CN111625737B (en) * 2020-05-27 2023-04-07 腾讯科技(深圳)有限公司 Label display method, device, equipment and storage medium
CN112363981A (en) * 2020-11-13 2021-02-12 长城计算机软件与系统有限公司 Automatic error correction method and system for LDIF file
CN113468355A (en) * 2021-07-06 2021-10-01 深圳市华星光电半导体显示技术有限公司 Display mother board data management method and device
CN113468355B (en) * 2021-07-06 2023-10-13 深圳市华星光电半导体显示技术有限公司 Display mother board data management method and device
CN113673227A (en) * 2021-07-15 2021-11-19 福建拓尔通软件有限公司 Method, system, equipment and medium for correcting wrongly written characters of WEB editor
CN113778284A (en) * 2021-09-24 2021-12-10 北京字跳网络技术有限公司 Audit information display method, device, equipment and storage medium
CN113778284B (en) * 2021-09-24 2024-06-04 北京字跳网络技术有限公司 Audit information display method, device, equipment and storage medium
CN114090135A (en) * 2021-11-24 2022-02-25 北京金堤科技有限公司 Method and device with error correction function and supporting cross-platform calling component
CN114090135B (en) * 2021-11-24 2024-05-24 北京金堤科技有限公司 Method and device with error correction function and supporting cross-platform calling component
CN115188013A (en) * 2022-09-14 2022-10-14 泰豪信息技术有限公司 Risk prevention and control method, system, storage medium and equipment for decision book
CN115188013B (en) * 2022-09-14 2023-06-30 泰豪信息技术有限公司 Risk prevention and control method, system, storage medium and equipment for decision book

Also Published As

Publication number Publication date
CN110968989B (en) 2023-03-31

Similar Documents

Publication Publication Date Title
CN110968989B (en) Method and device for displaying error correction information on front-end page
US11042579B2 (en) Method and apparatus for natural language query in a workspace analytics system
US11769072B2 (en) Document structure extraction using machine learning
US7908564B2 (en) Copying and pasting a plurality of data items as a group
US9104720B2 (en) Generation of technical description of report from functional description of report
US10445408B2 (en) Automatically identifying complementary digital fonts based on digital text in electronic documents
US20130262968A1 (en) Apparatus and method for efficiently reviewing patent documents
US10572566B2 (en) Image quality independent searching of screenshots of web content
JP5962277B2 (en) Document association apparatus and program
US20090070317A1 (en) Patent claim and specification analysis
US20110191381A1 (en) Interactive System for Extracting Data from a Website
CN111078637B (en) Script file online method and device, computer equipment and storage medium
CN109683773B (en) Corpus labeling method and apparatus
CN111367595B (en) Data processing method, program running method, device and processing equipment
CN111144070B (en) Document analysis translation method and device
CN109740128B (en) Text editing auxiliary method, device and equipment
CN104765849A (en) Method and system for acquiring copied data source information
CN113177168A (en) Positioning method based on Web element attribute characteristics
US8656267B2 (en) Method of approximate document generation
US20160299880A1 (en) Method and device for updating web page
US20130091413A1 (en) Rich Data Label Formatting
CN110737642B (en) Database information analysis method, database information analysis device, computer device and storage medium
CN110147477B (en) Data resource modeling extraction method, device and equipment of Web system
CN110309499B (en) Device for generating examination report and method for generating examination report online
CN112417898A (en) Text translation method based on keyword prompt, computing device 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