Method, device and equipment for correcting error of document name sequence number

文档序号:406835 发布日期:2021-12-17 浏览:12次 中文

阅读说明:本技术 一种文档名称序号纠错方法、装置和设备 (Method, device and equipment for correcting error of document name sequence number ) 是由 程朋乐 崔波 孙冰剑 于 2021-09-23 设计创作,主要内容包括:本公开的实施例公开了一种文档名称序号纠错方法、装置和设备。该方法的一具体实施方式包括:在目标文档中查找包含数字的、目标格式的内容,得到序号字符串集合;对序号字符串集合中的每种序号字符串,确定序号字符串对应的文本字符串集合。该实施方式能够直接找出人们书写专利后的常见错误,并提高人们的工作效率。(The embodiment of the disclosure discloses a method, a device and equipment for correcting the error of a document name sequence number. One embodiment of the method comprises: searching contents containing numbers and in a target format in a target document to obtain a sequence number character string set; and for each sequence number character string in the sequence number character string set, determining a text character string set corresponding to the sequence number character string. The implementation method can directly find out common errors after people write patents, and improves the working efficiency of people.)

1. A document name order error correction method includes:

searching contents containing numbers and in a target format in a target document to obtain a sequence number character string set;

in response to the discontinuity between the numbers contained in each sequence character string in the sequence character string set, determining the target document as a document containing error information, otherwise executing the following steps:

for each sequence number character string in the sequence number character string set, determining a text character string set corresponding to the sequence number character string;

in response to the text strings in the text string set not being consistent, determining the target document as a document containing error information, otherwise performing the following steps:

in response to the number of times that a target text string in the set of text strings appears in the target document not being consistent with the number of times that the sequence string appears in the target document, determining the target document as a document containing error information.

2. The method of claim 1, wherein the determining the set of text strings to which the sequence number string corresponds comprises:

determining the position of the sequence number character string in the target document to obtain a position set;

checking the characters forward one by one at each position in the position set;

and in response to that the currently checked characters are different or exist in a preset wrong character set, determining a last check character at each position in the position set, the sequence number character string and characters between the last check character and the sequence number character string as a text character string set corresponding to the sequence number character string.

3. The method of claim 1, wherein the target text string comprises: a first text string of the set of text strings.

4. A document name order error correction apparatus comprising:

the detection unit is used for searching the content containing numbers and in the target format in the target document to obtain a serial number character string set;

a first determining unit, which is used for responding to the discontinuity among the numbers contained in the sequence character strings in the sequence character string set, determining the target document as a document containing error information, otherwise, executing the following steps:

the second determining unit is used for determining a text string set corresponding to each serial number string in the serial number string set;

the classification unit is used for determining the target document as a document containing error information in response to the inconsistency of the text character strings in the text character string set, otherwise, the following steps are executed:

and the generation unit is used for determining the target document as a document containing error information in response to the fact that the frequency of occurrence of the target text character string in the text character string set in the target document is inconsistent with the frequency of occurrence of the sequence character string in the target document.

5. An electronic device, comprising:

one or more processors;

a storage device having one or more programs stored thereon,

when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.

6. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-4.

Technical Field

The invention belongs to the field of file inspection, and particularly relates to a method for correcting errors of file name sequence numbers.

Background

In today's big background of rapid development of economic technology, everyone needs to write more or less one's own documents, which also have different uses, such as: application for patents, reports, etc. However, after the documents are written, various errors often occur, and the errors often need to be checked by people one by one, which wastes manpower and even financial resources; and in the inspection of documents, the results of the documents with which the documents can be inspected are hardly available. The present patent of the invention proposes a checking method for the problem of having a fixed format and having both serial number and name documents.

Disclosure of Invention

This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

Some embodiments of the present disclosure provide a document name order error correction method to solve the technical problems mentioned in the above background.

In a first aspect, some embodiments of the present disclosure provide a document name order error correction method, including: searching contents containing numbers and in a target format in a target document to obtain a sequence number character string set; in response to the discontinuity between the numbers contained in each sequence character string in the sequence character string set, determining the target document as a document containing error information, otherwise executing the following steps: for each serial number character string in the serial number character string set, determining a text character string set corresponding to the serial number character string; in response to the text strings in the text string set not being consistent, determining the target document as a document containing error information, otherwise performing the following steps: and in response to the number of times that the target text character string in the text character string set appears in the target document and the number of times that the sequence character string appears in the target document being inconsistent, determining the target document as the document containing the error information.

In a second aspect, some embodiments of the present disclosure provide a document name order error correction apparatus, including: a detection unit configured to extract document contents in a digital target format to obtain a sequence number string set reflecting a sequence number; the first determining unit is configured to determine whether target numbers in the serial number character string set are continuous, and if the target numbers in the serial number character string set are continuous, extracting character strings according to each serial number in the serial number character string to obtain a suspicious name text string set; a second determining unit, configured to determine whether a first character in the suspicious name string set is consistent with an element in a wrong character set, and if not, determine that the target name string set is a correct name string set; a classification unit configured to, for each suspicious name character string set in the suspicious name character string set, classify the suspicious name character string set based on a first character of the suspicious name character string in the suspicious name text character string in the wrong character set, and obtain a category of the name character string set; and the generating unit is configured to generate a detection result based on the category of the name character string set.

In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method as described in any of the implementations of the first aspect.

In a fourth aspect, some embodiments of the disclosure provide a computer readable medium having a computer program stored thereon, where the program when executed by a processor implements a method as described in any of the implementations of the first aspect.

One of the above-described various embodiments of the present disclosure has the following advantageous effects: by the document name order error correction method of some embodiments of the present disclosure, the error correction efficiency of the name order in the document can be improved, and the labor and time required for error correction of the document name order can be reduced. Specifically, the inventor finds that the existing document name sequence error correction is manually checked, so that the checking efficiency is low and the effect cannot be guaranteed. Based on this, the sequence error correction method of some embodiments of the present disclosure implements automatic error correction of the document name sequence by analyzing and processing the document content, thereby improving the efficiency of people.

Drawings

The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.

FIG. 1 is a flow chart of an embodiment of a document name order error correction method according to the present disclosure;

FIG. 2 is a flow diagram of some embodiments of a document name order error correction method according to the present disclosure;

FIG. 3 is a flow chart of still further embodiments of a method for correcting error in a document name number of a patent application document according to the present disclosure;

FIG. 4 is a schematic structural diagram of some embodiments of a document name order error correction apparatus according to the present disclosure;

FIG. 5 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.

Detailed Description

Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.

It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.

It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.

It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.

The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.

The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.

FIG. 1 illustrates a schematic diagram of one application scenario in which the document name order error correction method of some embodiments of the present disclosure may be applied.

In the application scenario shown in fig. 1, first, the computing device 101 may search a target document 102 for content in a target format containing numbers, obtain a sequence string set 103, and then, in response to a discontinuity between numbers contained in each sequence string in the sequence string set 103, determine the target document 102 as a document containing error information, otherwise, perform the following steps:

for each sequence number string in the sequence number string set 103, the text string set 105 corresponding to the sequence number string is determined, and in the present embodiment, the sequence number 4 is taken as an example, and the corresponding text string set 105 is [ 'laser portion (4)', 'laser portion (4)' ].

In response to the inconsistency of the text strings in the text string set 105, the target document is determined as a document containing error information, otherwise, the following steps are performed. In the present embodiment, the text strings in the [ 'laser portion (4)', and 'laser portion (4)' ] are identical, taking the serial number 4 as an example.

In response to the number of occurrences of the target text string in the text string set 105 in the target document 102 not being consistent with the number of occurrences of the sequence string 103 in the target document 102, the target document 102 is determined as a document containing error information. In the present embodiment, taking the serial number 4 as an example, the target text string in the corresponding text string sets [ 'laser portion (4)', 'laser portion (4)' ], is 'laser portion', 'laser portion' occurs three times or more in the target document, and the number of times the serial number 4 occurs in the document is three times, it is determined whether the two occurrences are equal.

The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of a plurality of servers or electronic devices, or may be implemented as a single server or a single electronic device. When the computing device is embodied as software, it may be implemented as multiple pieces of software or software modules, for example, to provide distributed services, or as a single piece of software or software module. And is not particularly limited herein.

It should be understood that the number of computing devices 101 in FIG. 1 is merely illustrative. There may be any number of computing devices 101, as desired for implementation.

With continued reference to FIG. 2, a flow 200 of some embodiments of the document name order error correction method of the present disclosure is shown. The sequence number error correction method comprises the following steps:

step 201, searching contents containing numbers and in a target format in a target document to obtain a sequence number character string set;

step 202, in response to the discontinuity between the numbers contained in each sequence number character string in the sequence number character string set, determining the target document as a document containing error information, otherwise, executing the following steps:

step 203, determining a text string set corresponding to the sequence number string for each sequence number string in the sequence number string set;

in some optional implementations of some embodiments, the executing entity may first determine a position where the sequence number character string appears in the target document, to obtain a position set; then, checking characters forward one by one at each position in the position set; and in response to that the characters currently checked are different or exist in a preset wrong character set, determining the last check character at each position in the position set, the sequence number character string and the characters between the last check character and the sequence number character string as the text character string set corresponding to the sequence number character string.

In some embodiments, the execution subject may check the text string set using a deep learning method.

Step 204, in response to the inconsistency of the text strings in the text string set, determining the target document as a document containing error information, otherwise, executing the following steps:

step 205, in response to the number of times that the target text string in the text string set appears in the target document is not consistent with the number of times that the sequence string appears in the target document, determining the target document as a document containing error information.

The document name sequence number error correction method can more efficiently find out name sequence number errors in the document and improve the working efficiency of people.

With further reference to FIG. 3, a flow 300 of another embodiment of a method for error correction of a document name number of a patent application file is illustrated. The process 300 of the method for correcting the document name number error of the patent application file comprises the following steps:

step 301, searching the content containing numbers and in the target format in the target document to obtain a sequence number character string set.

Step 302, in response to the discontinuity between the numbers contained in each sequence character string in the sequence character string set, determining the target document as a document containing error information, otherwise, executing the following steps.

Step 303, determining the position of the sequence character string appearing in the target document to obtain a position set.

In some embodiments, the execution body may determine, using a regular expression, a position where the sequence string appears in the target document.

Step 304, check the characters forward one by one at each position in the position set.

In some embodiments, the execution body may forward the characters one by one using a regular expression.

Step 305, in response to that the currently checked characters are different or exist in a preset wrong word set, determining a last check character at each position in the position set, the sequence number character string and characters between the last check character and the sequence number character string as a text character string set corresponding to the sequence number character string.

In some embodiments, the specific implementation of steps 303-305 and the technical effects thereof can refer to step 203 in the embodiment corresponding to fig. 2, which are not described herein again.

Step 306, in response to the inconsistency of the text strings in the text string set, determining the target document as a document containing error information, otherwise, executing the following steps.

Step 307, in response to the number of times that the target text string in the text string set appears in the target document not being consistent with the number of times that the sequence string appears in the target document, determining the target document as a document containing error information.

As can be seen from FIG. 3, compared with the description of some embodiments corresponding to FIG. 2, the flow 300 of the document name order error correction method in some embodiments corresponding to FIG. 3 embodies the step of determining the text string set corresponding to the above order string. Therefore, the schemes described in the embodiments can better judge the error condition of the text character string in the document by checking the characters one by one according to the position of the sequence number character string acquired in advance and acquiring the most ideal text character string. In addition, the most possible errors in the text strings can be eliminated by checking the characters forward one by one, for example, an error in a target document is a short text string among several text strings under a certain sequence number, and the forward check one by one checks the error.

With further reference to fig. 4, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a smoke root node detection apparatus, which correspond to those of the method embodiments shown in fig. 2, and which may be applied in various electronic devices in particular.

As shown in FIG. 4, some embodiments provide a document name order error correction apparatus, comprising: detection section 401, first determination section 402, second determination section 403, classification section 404, and generation section 405. The detection unit 401 is configured to extract document contents in a digital target format to obtain a sequence number string set reflecting a sequence number; the first determining unit 402 is configured to determine whether target numbers in the sequence number character string set are consecutive, and if so, extract character strings according to each sequence number in the sequence number character string to obtain a suspicious name text string set; the second determining unit 403 is configured to determine whether a first character in the suspicious name string set is consistent with an element in the wrong character set, and if not, determine that the target name string set is a correct name string set; the classification unit 404 is configured to, for each suspicious name string set in the suspicious name string set, classify the suspicious name string set based on a first character of the suspicious name string in the suspicious name text string in the wrong word set, and obtain a category of the suspicious name string set; the generating unit 405 is configured to generate a detection result based on the category of the suspicious name string set.

Referring now to fig. 5, a schematic diagram of an electronic device (e.g., the server or terminal device of fig. 1) 500 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device in some embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.

As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.

Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 5 may represent one device or may represent multiple devices as desired.

In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program, when executed by the processing device 501, performs the above-described functions defined in the methods of some embodiments of the present disclosure.

It should be noted that the computer readable medium described above in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.

In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.

The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: carrying out foreground region detection on the video to obtain a binary image frame set; determining the intersection of foreground regions in a target binary image frame in the binary image frame set to obtain a suspicious smoke root node coordinate set; if the suspicious smoke root node coordinate set is an empty set, determining that the target video does not comprise the smoke root node, and if the suspicious smoke root node coordinate set is a non-empty set, entering the next step; acquiring a characteristic value of each suspicious smoke root node coordinate in the suspicious smoke root node coordinate set; and classifying the coordinates of the suspicious smoke root nodes based on the characteristic values to generate a detection result.

Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a detection unit, a first determination unit, a second determination unit, a classification unit, and a generation unit. Where the names of the cells do not in some cases constitute a limitation of the cell itself, for example, a detection cell may also be described as a "cell detecting a foreground region".

The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

According to one or more embodiments of the present disclosure, there is provided a document name order error correction method including: searching contents containing numbers and in a target format in a target document to obtain a sequence number character string set; in response to the discontinuity between the numbers contained in each sequence character string in the sequence character string set, determining the target document as a document containing error information, otherwise executing the following steps: for each serial number character string in the serial number character string set, determining a text character string set corresponding to the serial number character string; in response to the text strings in the text string set not being consistent, determining the target document as a document containing error information, otherwise performing the following steps: and in response to the number of times that the target text character string in the text character string set appears in the target document and the number of times that the sequence character string appears in the target document being inconsistent, determining the target document as the document containing the error information.

According to one or more embodiments of the present disclosure, there is provided a document name order error correction apparatus including: a detection unit configured to extract document contents in a digital target format to obtain a sequence number string set reflecting a sequence number; the first determining unit is configured to determine whether target numbers in the serial number character string set are continuous, and if the target numbers in the serial number character string set are continuous, extracting character strings according to each serial number in the serial number character string to obtain a suspicious name text string set; a second determining unit, configured to determine whether a first character in the suspicious name string set is consistent with an element in a wrong character set, and if not, determine that the target name string set is a correct name string set; a classification unit configured to classify each suspicious name character string set in the suspicious name character string set based on a first character of the suspicious name character string in the suspicious name text character string in the wrong character set, so as to obtain a category of the suspicious name character string set; and the generating unit is configured to generate a detection result based on the category of the suspicious name character string set.

According to one or more embodiments of the present disclosure, there is provided an electronic device including: one or more processors; a storage device having one or more programs stored thereon which, when executed by one or more processors, cause the one or more processors to implement a method as in any above.

According to one or more embodiments of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, wherein the program, when executed by a processor, implements the method as any one of the above.

The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:文字编辑方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!