File processing method and device, computer-readable storage medium and program product
By splitting and parsing the content of files, generating online files and displaying character and picture interfaces, combined with natural language processing and optical character recognition technology, it solves the existing problems of low file review efficiency and complex operations, and achieves efficient file Audit and quality improvement.
Patent Information
- Application Number
- CN202410751732.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-12
AI Technical Summary
The existing document review methods are inefficient, complicated to operate, error-prone, and difficult to detect format problems, resulting in low review efficiency and quality.
By splitting and parsing the content of the files to be processed, online files are generated to display characters and picture display interfaces. In addition, natural language processing and optical character recognition technology are combined to extract picture labels and character-related information to assist users in review and realize online editing and Format review.
It improves the efficiency and quality of document review, reduces the complexity of system operations, detects irregularities in advance, and saves costs.
Smart Images

Figure CN118333041B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to, but are not limited to, the field of data processing technology, and in particular, to a file processing method and device, a computer-readable storage medium, and a program product. Background Art
[0002] With the development of the Internet, the management of large institutions and enterprises needs to be digitalized and intelligent, and document review is an indispensable work link in various institutions and enterprises. However, in various institutions and enterprises, document review usually needs to be conducted in the form of paper documents or emails. This document review method is often inefficient, complicated, and prone to errors. There are many problems that need to be improved and solved. Summary of the invention
[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0004] The present disclosure provides a file processing method, including:
[0005] Acquire one or more files to be processed, wherein the contents of the files to be processed include characters and pictures, and split the contents of the files to be processed into character chapters and picture chapters, wherein the contents of the character chapters include characters, and the contents of the picture chapters include pictures;
[0006] Parsing one or more of the to-be-processed files to obtain parsing results;
[0007] One or more online files are generated according to the analysis results, and the online files are displayed. The online files include a character display interface and a picture display interface. The content of the character chapter is displayed through the character display interface, and the content of the picture chapter is displayed through the picture display interface. The picture display interface includes information about the picture and the characters associated with the picture.
[0008] An embodiment of the present disclosure also provides a file processing device, including a memory; and a processor connected to the memory, wherein the memory is used to store instructions, and the processor is configured to execute the steps of the file processing method described in any embodiment of the present disclosure based on the instructions stored in the memory.
[0009] The embodiments of the present disclosure further provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the file processing method described in any embodiment of the present disclosure is implemented.
[0010] The embodiment of the present disclosure further provides a program product, including instructions. When the computer program product is executed by a computer, the instructions execute the file processing method as described in any embodiment of the present disclosure.
[0011] The present disclosure also provides a file processing device, including a file acquisition module, a file parsing module and a file display module, wherein:
[0012] The file acquisition module is configured to acquire one or more to-be-processed files, wherein the contents of the to-be-processed files include characters and pictures, and split the contents of the to-be-processed files into character chapters and picture chapters, wherein the contents of the character chapters include characters, and the contents of the picture chapters include pictures;
[0013] The file parsing module is configured to parse one or more of the to-be-processed files to obtain parsing results;
[0014] The file display module is configured to generate one or more online files according to the analysis results and display the online files, wherein the online files include a character display interface and a picture display interface, wherein the content of the character chapter is displayed through the character display interface, and the content of the picture chapter is displayed through the picture display interface, and the picture display interface includes information about the picture and the characters associated with the picture.
[0015] The file processing method and device, computer-readable storage medium, and program product of the disclosed embodiments parse the to-be-processed file to obtain the parsing result, generate an online file according to the parsing result, and display the image and the information of the characters associated with the image on the image display interface when displaying the online file, thereby assisting the user in file review and improving the user's review efficiency and review quality. Furthermore, the complexity of system operation is reduced through online editing and other methods, and the violation problems in the to-be-processed file are discovered in advance through formal review and other methods, thereby further improving the quality of the reviewed file and saving related costs.
[0016] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or be understood by implementing the present disclosure. Other advantages of the present disclosure can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide an understanding of the technical solution of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the technical solution of the present disclosure and do not constitute a limitation on the technical solution of the present disclosure.
[0018] Figure 1 A flowchart of a file processing method provided for an exemplary embodiment of the present disclosure;
[0019] Figure 2A schematic diagram of a file parsing process provided for an exemplary embodiment of the present disclosure;
[0020] Figure 3 Another schematic diagram of a file parsing process provided for an exemplary embodiment of the present disclosure;
[0021] Figure 4 A schematic diagram of a file format cleaning process provided for an exemplary embodiment of the present disclosure;
[0022] Figure 5 A schematic diagram of a storage method after splitting a file provided by an exemplary embodiment of the present disclosure;
[0023] Fig. 6A A schematic diagram of a system display interface provided for an exemplary embodiment of the present disclosure;
[0024] Figure 6B Another schematic diagram of a system display interface provided for an exemplary embodiment of the present disclosure;
[0025] Figure 6C A schematic diagram of a manual display interface provided for an exemplary embodiment of the present disclosure;
[0026] Fig.6D A schematic diagram of a display interface for opening a specification drawing from an associated character in the specification provided for an exemplary embodiment of the present disclosure;
[0027] Fig. 6E A schematic diagram of an interactive mode between a specification and a specification drawing provided for an exemplary embodiment of the present disclosure;
[0028] Fig. 6F A schematic diagram of an intelligent drawing display interface for a specification drawing provided for an exemplary embodiment of the present disclosure;
[0029] Figure 6G A schematic diagram of an interface for adding picture labels and characters associated with the picture labels on a display interface of drawings in a specification provided by an exemplary embodiment of the present disclosure;
[0030] Figure 6H A schematic diagram of a display interface of a specification drawing provided for an exemplary embodiment of the present disclosure;
[0031] Fig. 7A A schematic diagram of another file processing method provided for an exemplary embodiment of the present disclosure;
[0032] Figure 7B A schematic diagram of a design method of a form audit library provided for an exemplary embodiment of the present disclosure;
[0033] Figure 8 A schematic diagram of the structure of a file processing device provided for an exemplary embodiment of the present disclosure;
[0034] Fig.9A A schematic diagram of the structure of a patent review system provided for an exemplary embodiment of the present disclosure;
[0035] Fig. 9B A schematic diagram of a patent review process of a patent review system provided for an exemplary embodiment of the present disclosure;
[0036] Fig.10 A schematic diagram of the structure of another file processing device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] The present disclosure describes multiple embodiments, but the description is exemplary rather than restrictive, and it is apparent to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present disclosure. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.
[0038] The present disclosure includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features, and elements disclosed in the present disclosure may also be combined with any conventional features or elements to form a unique invention scheme defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in the present disclosure may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other limitations. In addition, various modifications and changes may be made within the scope of protection of the attached claims.
[0039] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps in the specific order described. As will be appreciated by those of ordinary skill in the art, other orders of steps are also possible. Therefore, the specific order of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps performed in the order written, and those skilled in the art can easily understand that these orders can be changed and still remain within the spirit and scope of the disclosed embodiments.
[0040] like Figure 1 As shown, the present disclosure provides a file processing method, including:
[0041] Step 101: obtaining one or more files to be processed, wherein the contents of the files to be processed include characters and pictures, and splitting the contents of the files to be processed into character chapters and picture chapters, wherein the contents of the character chapters include characters, and the contents of the picture chapters include pictures;
[0042] Step 102: parse one or more files to be processed to obtain parsing results;
[0043] Step 103: Generate one or more online files based on the analysis results and display the online files. The online files include a character display interface and a picture display interface. The content of the character chapter is displayed through the character display interface, and the content of the picture chapter is displayed through the picture display interface. The picture display interface includes information about the picture and the characters associated with the picture.
[0044] The file processing method of the disclosed embodiment parses the content of the file to be processed to obtain a parsing result, generates an online file according to the parsing result, and displays the image and information of characters associated with the image on the image display interface when displaying the online file, thereby assisting users in file review and improving the user's file review efficiency and file review quality.
[0045] In some exemplary embodiments, the to-be-processed file may be a patent application file, or any other type of to-be-processed file, which is not limited in the present disclosure. The following description will be made by taking the to-be-processed file as a patent application file as an example.
[0046] The disclosed embodiments mainly target pain points such as low review efficiency, complicated operations, and difficulty in finding format problems that occur during manual patent review within an enterprise. This file processing method is introduced to assist patent review, improve the work efficiency and accuracy of patent engineers, and reduce the complexity of system use through online editing and other methods, thereby improving the success rate of patent proposal submission after review is completed and saving related costs.
[0047] Patent application documents are usually divided into the abstract, abstract drawings, claims, specification and appendix. Figure 5 The contents of the abstract, claims and specification are mainly characters, and the contents of the abstract drawings and specification drawings are mainly pictures.
[0048] In the disclosed embodiment, the characters of the character chapter may include words, numbers, letters, tables, formulas, etc. It should be noted that in the disclosed embodiment, the tables and formulas of the character chapter may be in the form of characters or in the form of pictures (such as PNG format), and the disclosed embodiment does not limit this. That is, the content of the character chapter at least includes characters, but in some examples, in addition to characters, the content of the character chapter may also include some pictures in the form of tables, formulas, etc. between some characters.
[0049] In the disclosed embodiment, the pictures in the picture chapter may be pictures in various formats, for example, they may be JPG, PNG, vector images, composite images, etc. It should be noted that in the disclosed embodiment, in addition to the pictures, the picture chapter may also include some description characters corresponding to each picture, such as "Picture xxx".
[0050] In the disclosed embodiments, a vector image refers to an image made using a drawing tool (such as Visio, AtuoCAD, etc.). The vector image inserted into a patent application document can still be opened or edited using the drawing tool; a composite image refers to an image composed of multiple images.
[0051] In some exemplary embodiments, the format of the file to be processed may be in Word format, or in other formats such as PDF, which is not limited in the present disclosure. The following description will be made by taking the format of the file to be processed in Word format as an example.
[0052] In some exemplary embodiments, obtaining one or more files to be processed includes:
[0053] A timer is set, and the timer is used to automatically check whether there is a new file to be processed in the first storage location at a preset time interval, and if there is a new file to be processed, the new file to be processed is obtained.
[0054] In the embodiment of the present disclosure, the first storage location may be a to-be-processed file table in a preset database; however, the present disclosure is not limited to this.
[0055] The embodiments of the present disclosure may obtain the to-be-processed files from a to-be-processed file table in a preset database, or may obtain the to-be-processed files by other means, for example, obtaining the to-be-processed files by a preset application programming interface (Application Programming Interface, API), which is not limited by the present disclosure.
[0056] In some exemplary embodiments, the to-be-processed file table may include storage path information of the to-be-processed files. When the to-be-processed file table includes a newly added to-be-processed file, the newly added to-be-processed file may be acquired through the storage path information.
[0057] In some exemplary embodiments, the to-be-processed file table may further include a processing mark of the to-be-processed file. Before the file processing is completed, the processing mark of the to-be-processed file is unprocessed; after the file processing is completed, the processing mark of the to-be-processed file is set to processed. In other examples, the to-be-processed file table may not set the processing mark of the to-be-processed file. In this case, after the file processing is completed, the to-be-processed file can be deleted from the to-be-processed file table.
[0058] In the embodiment of the present disclosure, the preset time interval may be 2 hours, however, the present disclosure is not limited to this, and the size of the preset time interval may be set as needed.
[0059] In some exemplary embodiments, after obtaining one or more files to be processed, the method further includes:
[0060] Stores one or more files to be processed.
[0061] When there are multiple files to be processed, a processing task table can be established, which includes multiple files to be processed. Subsequently, the content of each file to be processed can be parsed one by one according to the order in the processing task table.
[0062] In some exemplary embodiments, Figure 2 and Figure 3 As shown, the content of one or more files to be processed is parsed, including:
[0063] Convert the character chapters into the first format, and perform word segmentation and part-of-speech tagging on the content of the character chapters through natural language processing (NLP) technology;
[0064] Performing a second format conversion on the picture chapter, and identifying the pictures in the picture chapter by using a picture recognition technology, and extracting picture labels corresponding to the pictures, wherein the first format conversion method and the second format conversion method are different;
[0065] In the character section, characters associated with the image labels are extracted, and the association information between the image labels and the characters is recorded.
[0066] In the embodiment of the present disclosure, the image recognition technology may be optical character recognition (OCR) technology, however, the present disclosure does not limit this. In actual application scenarios, different image recognition technologies may be selected as needed, for example, image recognition algorithms based on OpenCV.
[0067] Since patent application documents mainly include abstract, abstract drawing, claims, specification and appendix Figure 5 Therefore, in the embodiment of the present disclosure, the character chapter may include the specification abstract chapter, the claims chapter and the specification chapter, and the picture chapter may include the abstract figure chapter and the specification figure chapter. In some examples, since the abstract figure is usually a figure in the specification figure, the abstract figure chapter may be omitted, and it is sufficient to explain which figure in the specification figure the abstract figure is.
[0068] In some exemplary embodiments, parsing the content of one or more files to be processed further includes:
[0069] Convert the version of the file to be processed to the preset version format.
[0070] Patent application documents are usually Word files. Since Word files have multiple different versions, when parsing the content of one or more files to be processed, it is necessary to uniformly process the file versions and unify the different Word versions. For example, the versions of the files to be processed can be uniformly converted into the latest Word version format (for example, docx format).
[0071] In some exemplary embodiments, performing a first format conversion on a character chapter includes:
[0072] Convert the content of the character chapter from Word format to XML format, and then convert the XML format to HTML format to facilitate front-end development for browser access.
[0073] In some exemplary embodiments, performing a second format conversion on a picture chapter includes:
[0074] Convert the contents of the image chapter from Word format to XML format.
[0075] The present disclosure is introduced by taking the format of the file to be processed as Word format as an example. When the format of the file to be processed is other formats, the character chapter and the picture chapter can be converted into the corresponding format according to the specific format of the file to be processed.
[0076] In some exemplary embodiments, parsing the content of one or more files to be processed further includes:
[0077] Extract and store the revision content and / or annotation content in the file to be processed.
[0078] During the review process, patent application documents often have annotations / revisions added to them. If they are not specially considered during the analysis process, it will often lead to analysis anomalies. Figure 4 As shown, the embodiment of the present disclosure extracts and stores the revised content and / or annotation content in the file to be processed, prioritizes the parsing success rate, and after the subsequent parsing is completed, adds the stored revised content and / or annotation content to the online file.
[0079] As for the annotation content, we can parse, identify and extract it by parsing the XML format of the patent application document. In the XML format, annotations usually have fixed identifiers, such as <w:commentrangestart>Represents the beginning of a comment, identifier <w:commentrangeend>Indicates the end of the annotation. When extracting the annotation content, delete the related annotation identifier, and add the related annotation content to the online file after the subsequent parsing is completed.
[0080] Revisions usually include deletion revisions and editing revisions. Therefore, we need to determine the revision mode first and take different approaches to handle them according to different revision modes. When extracting revisions, we can also parse and identify them through XML identifiers. For example, deletion revisions generally use the identifier <w:del> and< / w:del> , editorial revisions generally use the identifier <w:ins> and< / w:ins> ,When extracting the revision content, the relevant revision identifier is deleted, and after the subsequent parsing is completed, the relevant revision content is added to the online file.
[0081] In some exemplary embodiments, splitting the content of the to-be-processed file into character chapters and picture chapters includes:
[0082] Split the content of the file to be processed into character chapters and image chapters based on the header and / or title.
[0083] Usually, during the patent examination process, the abstract, abstract drawings, claims, specification and appendix Figure 5 The parts are placed in one Word file and are distinguished by headers and / or titles. Therefore, when the content of the to-be-processed file is divided into character chapters and picture chapters, the content of the to-be-processed file can be divided into character chapters and picture chapters by headers and / or titles.
[0084] In Word XML files, retrieve the identifier when splitting by header format <w:sectpr>, in the standard header format file, you can <w:sectpr>Search <w:headerreference>The title content corresponds to the five books, which can be identified by the identifier <w:sectpr>to split.
[0085] If the patent application document does not maintain the five-book information through the header, it can be split according to the title. In this case, first use the identifier <w:p>Find all the paragraphs of XML, and then search the five book titles (abstract, abstract drawing, claims, specification and specification drawing) in the order of the paragraphs. When one of them is found, it will be regarded as the beginning of the paragraph, and it will end when the next five book title is found. At this time, it should be noted that the arrangement order of the five books in different patent application documents may be inconsistent, and they should be split according to the actual arrangement order of the five books identified.
[0086] After the contents of the files to be processed are split, the abstract, claims, and instructions are usually mostly character contents. For subsequent online operations, we can use Python to convert XML format to HTML format, and use NLP technology to segment and tag the character content.
[0087] In some exemplary embodiments, after converting the picture chapter into the second format and before identifying the pictures in the picture chapter using a picture recognition technology, the method further includes:
[0088] In response to the picture chapter including information of a plurality of pictures, extracting one or more picture splitting marks from the information of the plurality of pictures, the picture splitting marks including description characters corresponding to each picture;
[0089] Split the information of multiple pictures according to the picture splitting identifier;
[0090] The information of each image is converted into images of the same image format by any of the following methods: by processing each image individually through an image conversion tool or by performing a third format conversion on the image sections.
[0091] Abstract drawings and specification drawings are often mainly pictures, so we need to identify pictures for these two parts. Before using OCR technology to identify pictures, we must first confirm the number and status of pictures based on the XML tags of the patent application documents. If it is determined based on the XML tags that there is only one picture, you can use an image conversion tool (such as the GraphicsMagick image conversion tool) to convert it directly into a picture for subsequent OCR processing; if it is determined based on the XML tags that there are multiple pictures, first split the information of the multiple pictures. For example, you can use a regular expression with [picture x] as the picture splitting tag to convert the split picture information into pictures in picture format for subsequent OCR processing.
[0092] When converting the image information into an image in an image format, since there are many ways to generate images in patent application documents, such as vector graphics, composite images, etc., when the image information cannot be converted into an image using an image conversion tool, the image chapter can be converted into a third format, for example, the format of the image chapter is converted from XML format (or Word format) to PDF format, and then from PDF format to image format (such as PNG format). After conversion to the image format, the image label corresponding to the image (including the content and location information of the image label, etc.) is identified through OCR technology and recorded and saved.
[0093] In some exemplary embodiments, when the character section includes a formula, performing a first format conversion on the character section further includes:
[0094] Convert the format of the character chapter from XML format (or Word format) to PDF format, and then convert from PDF format to image format (such as PNG format), and obtain the image corresponding to the formula from the image corresponding to the character chapter;
[0095] Insert the image corresponding to the formula into the character section in HTML format.
[0096] Since errors may occur when a formula is converted directly from Word format to XML format and then from XML format to HTML format, in the embodiment of the present disclosure, the formula is converted into a picture and inserted into a character chapter in HTML format to ensure that the formula can be displayed normally.
[0097] In some exemplary embodiments, in the character section, extracting characters associated with the picture label includes:
[0098] For each picture label, generate a predefined part-of-speech rule, the predefined part-of-speech rule including a noun phrase and a picture label;
[0099] Based on the predefined part-of-speech rules, noun phrases adjacent to the picture labels are extracted in the character section through a part-of-speech rule matching method, and the extracted noun phrases are used as characters associated with the picture labels.
[0100] The disclosed embodiment uses OCR technology to identify the images parsed from the image chapters, and records the positions of the image labels corresponding to the images as basic data for subsequent image-text comparison / text positioning functions.
[0101] In some exemplary embodiments, the extracted noun phrase may be the longest noun phrase that is located before the picture label and is adjacent to the picture label.
[0102] According to the characteristics of the patent application document, the embodiment of the present disclosure extracts characters associated with the picture label in the character chapter through the method of part-of-speech rule matching. Exemplarily, the predefined part-of-speech rules may be: "noun phrase + number", "noun phrase + letter" or "noun phrase + number + letter", etc., wherein numbers, letters or numbers + letters are picture labels, however, the present disclosure does not limit this; the extracted picture labels and the characters associated with the picture labels are saved as keywords to serve as basic data for subsequent picture-text comparison and text positioning functions.
[0103] like Figure 5 As shown, after parsing the file to be processed, the disclosed embodiment will store data in multiple modes, including: (1) character paragraphs, (2) image paragraphs, (3) associated characters, (4) images, (5) image labels and other data information. In this way, the entire file to be processed is disassembled, and when displayed online, different types of data information can be combined and displayed at will, so that the entire online file meets the different needs of different files.
[0104] The overall design of the online display interface is as follows Fig. 6A As shown, the area on the left side of the interface is the "directory view area", which is used to divide the patent application document into five parts for display, and to prompt the key information of each part (such as the number of words in the abstract, the number of claims, the number of drawings in the specification, etc.), and you can click on a certain part to view it separately. The lower middle area of the interface is the "core content area", which is used to display the content of each part of the patent application document. The area on the right side of the interface is the "user operation instruction area", which is used to record the editing operations of the user (such as patent engineers) and display potential problems in the formal review, which can be edited freely. The upper left area in the middle of the interface is the "content switching area", which is used to display the analysis and display results of different dimensions of the patent application document in different page display areas, which can be switched independently. The upper right area in the middle of the interface is the "function button area", which is used to encapsulate the user's common operations (query / export / download source files, etc.) into function buttons to facilitate user quick operation. An exemplary online display interface is as follows Figure 6B As shown. The content switching area can display all content, display the results of the formal review rule check, display the results of the sensitive word rule check, etc. Image numbers, annotations, sensitive words, formal review results, and other different issues (such as the absence of drawings, etc.) can be highlighted in different ways (such as setting different font colors). After the review is completed, the patent engineer can export the patent application document containing all current review opinions through the export button and send it to the patent agent for modification or submission.
[0105] In some exemplary embodiments, the method further includes: providing, in the core content area, a comparison result of the two files to be processed.
[0106] For example, when a patent agent modifies a file and re-uploads it, the modifications corresponding to the last annotation are automatically marked online, so that the patent engineer can intuitively see the modifications made by the patent agent, facilitating further review by the patent engineer.
[0107] In some exemplary embodiments, presenting an online file includes:
[0108] The characters associated with the picture are displayed in a first display mode on the character display interface, and the first character is displayed in a second display mode on the character display interface. The first display mode is different from the second display mode, and the first character is a character other than the character associated with the picture.
[0109] In the embodiment of the present disclosure, the first display mode can be to set the color of the characters, set the background color of the characters, bold, italic, underline, etc., and the second display mode can be a normal display (black characters, no background color, no bold, no italic, no underline), however, the present disclosure does not limit this. Figure 6C As shown in the instruction manual Figure 1 and Figure 2 Displayed in a non-black font to distinguish it from other characters.
[0110] In some exemplary embodiments, information about a picture and characters associated with the picture is displayed, including:
[0111] On the character display interface, monitor and receive the user's mouse operations;
[0112] In response to detecting that the user's mouse operation is a predefined click operation and the content currently selected by the mouse is a character associated with a picture, the current display interface is jumped to a picture display interface containing the associated picture.
[0113] In the embodiment of the present disclosure, in the character chapter, the characters associated with the picture mainly include: 1) the picture number in the character chapter, such as "Figure x", etc.; 2) the picture label in the character chapter, such as "control circuit 13", etc. These two types of characters are associated with the corresponding pictures, and these two types of characters are displayed in the aforementioned first display mode (such as by setting the character color to highlight the prompt), and the corresponding pictures can be directly opened by clicking on the two types of characters. Fig.6D As shown, click on the character " Figure 1 ", you can add a new one for displaying on the current display interface Figure 1 The display window of the content (in other examples, the current display interface can also be switched to the Figure 1 Location).
[0114] In some exemplary embodiments, information about a picture and characters associated with the picture is displayed, including:
[0115] On the picture display interface, the content of the characters associated with the picture label is displayed near the position of the picture label.
[0116] like Fig. 6E and Fig. 6F As shown, the embodiment of the present disclosure uses OCR technology to identify the image label corresponding to the image, and displays the content of the characters associated with the image label near the location of the relevant image label for patent engineers to review and check. In the embodiment of the present disclosure, when the mouse moves to the image label or near the location of the image label, the image label and the characters associated with the image label can become highlighted.
[0117] In some exemplary embodiments, information about a picture and characters associated with the picture is displayed, including:
[0118] On the image display interface, monitor and receive the user's mouse operations;
[0119] In response to detecting that the user's mouse operation is a predefined click operation and the content currently selected by the mouse is a picture label associated with a character, the display interface jumps to a character display interface containing the associated character.
[0120] In the present disclosure, Fig. 6E As shown, when you click on the image number or the image number description, the display interface can directly jump to the associated character content in the character chapter to facilitate patent engineers to review and consult.
[0121] In some exemplary embodiments, presenting an online file includes:
[0122] On the picture display interface, all picture labels and the content of the characters associated with each picture label are displayed.
[0123] like Fig. 6F As shown in FIG. 1 , a label description area is set on the picture display interface, which is used to display the content of all picture labels and the characters associated with each picture label. When the system recognizes an error, the user can modify the corresponding picture label or the characters associated with the picture label, or add a picture label and the characters associated with the picture label, such as Figure 6G shown.
[0124] In some exemplary embodiments, presenting an online file includes:
[0125] On the picture display interface, set a picture enlargement display button and / or a maximized display button.
[0126] like Fig. 6F As shown, in order to facilitate patent engineers to review the drawings, on the picture display interface, the picture can be enlarged or the window can be maximized. When the window is maximized, the picture can be displayed in a separate window to facilitate patent engineers to review and review.
[0127] like Figure 6H As shown, a smart attachment button is provided on the picture display interface. When the user clicks the smart attachment button, the smart attachment mode can be turned on. At this time, the associated characters of each picture label can be displayed while displaying the attachment to facilitate user review; when the user clicks the smart attachment button again, the smart attachment mode can be turned off and only the original attachment is displayed without displaying the associated characters of each picture label.
[0128] In some exemplary embodiments, Fig. 7A As shown, the method also includes:
[0129] Conduct a formal review of the content of the files to be processed, including but not limited to: reduplication detection, sensitive word detection, word count detection, citation relationship detection, etc.
[0130] In the disclosed embodiment, the formality review service can analyze the content of the file to be processed according to the configured formality review requirements to check whether it contains formal errors (such as whether there are citation relationship errors in the claims, whether the abstract of the specification exceeds the word count, whether there are sensitive words in the full text, etc.). For example, for sensitive word detection, a global search can be performed in the patent application document, and if contained, sensitive word errors will be marked.
[0131] This paper starts from the patent review experience accumulated within the enterprise, organizes the experience of patent document review into rules, establishes a formal review library, and uses computer-assisted screening to improve the review efficiency and accuracy of patent engineers.
[0132] like Figure 7B As shown, the formal review library proposed in the embodiment of the present disclosure mainly includes two parts, one is "form management" and the other is "sensitive word management".
[0133] Among them, the formal management rules are the record of many years of patent review experience. After the rules are sorted out, they are relatively fixed and have little change. In the formal management design, various formal rules are maintained through "regular expressions, word structure, character statistics" and other means. Each formal rule specifies the corresponding scope (that is, which part of the five books it acts on). Among them, the word structure rule check includes "ABAB" word structure rule check, "AA" word structure rule check, part of speech check, etc.
[0134] Since sensitive words change and update frequently, the applicable scope of categories is usually closely related to the patent field. Therefore, in the design of sensitive word management, the maintenance of sensitive words and the adjustment of categories are focused on, and the two are designed separately. In the design of sensitive word maintenance, the convenience of business operations is fully considered. The present disclosure designs two methods: batch maintenance and single maintenance, which realize the requirement of autonomous real-time maintenance by business users.
[0135] In some exemplary embodiments, the method further comprises:
[0136] On the character display interface or the picture display interface, a first operation of the user is monitored and received, and the online file is edited online according to the first operation.
[0137] The file processing method of the disclosed embodiment can also provide an online editing function, through which the original internal audit work of the enterprise can be put online, enriching the functions of the current patent system, making business operations smoother and reducing business complexity. This function construction takes into account the usage habits of business personnel, and the operation interface is friendly, simple and easy to use, and the audit is more standardized, more convenient and safer.
[0138] In the disclosed embodiment, the online editing functions include adding comments, deleting comments, adding text, deleting text, modifying text, adjusting paragraphs, adjusting text color, etc.
[0139] like Figure 8 As shown, the embodiment of the present disclosure further provides a file processing device, including a file acquisition module 810, a file parsing module 820 and a file display module 830, wherein:
[0140] The file acquisition module 810 is configured to acquire one or more to-be-processed files, the contents of the to-be-processed files including characters and pictures, and split the contents of the to-be-processed files into character chapters and picture chapters, wherein the contents of the character chapters include characters, and the contents of the picture chapters include pictures;
[0141] The file parsing module 820 is configured to parse one or more files to be processed to obtain parsing results;
[0142] The file display module 830 is configured to generate one or more online files according to the analysis results and display the online files. The online files include a character display interface and a picture display interface. The content of the character chapter is displayed through the character display interface, and the content of the picture chapter is displayed through the picture display interface. The picture display interface includes information about the picture and the characters associated with the picture.
[0143] In some exemplary embodiments, the file parsing module 820 parses one or more files to be processed, including:
[0144] Performing a first format conversion on the character chapter, and performing word segmentation and part-of-speech tagging on the content of the character chapter by using natural language processing technology;
[0145] Convert the picture chapter into a second format, identify the pictures in the picture chapter by using a picture recognition technology, and extract picture labels corresponding to the pictures;
[0146] In the character section, characters associated with the picture labels are extracted, and association information between the picture labels and the characters is recorded.
[0147] In some exemplary embodiments, the file parsing module 820 parses one or more files to be processed, and further includes at least one of the following:
[0148] Convert the version of the file to be processed into a preset version format;
[0149] Extract and store the revision content and / or annotation content in the file to be processed.
[0150] In some exemplary embodiments, the file parsing module 820 extracts characters associated with the picture label in the character section, including:
[0151] For each of the picture labels, generating a predefined part-of-speech rule, the predefined part-of-speech rule including a noun phrase and the picture label;
[0152] Based on the predefined part-of-speech rules, a noun phrase adjacent to the picture label is extracted in the character section by a part-of-speech rule matching method, and the extracted noun phrase is used as a character associated with the picture label.
[0153] In some exemplary embodiments, the extracted noun phrase is the longest noun phrase that is located before the picture label and is adjacent to the picture label.
[0154] In some exemplary embodiments, the file parsing module 820 is further configured to: in response to the picture chapter including information of multiple pictures, extract one or more picture splitting identifiers from the information of the multiple pictures, the picture splitting identifiers including description characters corresponding to each picture; split the information of the multiple pictures according to the picture splitting identifiers; convert the information of each picture into a picture of the same picture format by any one of the following methods: processing each picture separately by a picture conversion tool or by converting the picture chapter to a third format.
[0155] In some exemplary embodiments, the file processing device further includes: a formal review module, wherein the formal review module is configured to perform a formal review on the content of the file to be processed, and the formal review includes at least one of the following: reduplication detection, sensitive word detection, word count detection, and reference relationship detection.
[0156] In some exemplary embodiments, the file display module 830 displays online files, including:
[0157] The characters associated with the picture are displayed in a first display mode on the character display interface, and the first character is displayed in a second display mode on the character display interface. The first display mode is different from the second display mode, and the first character is a character other than the character associated with the picture.
[0158] In some exemplary embodiments, the file display module 830 displays online files, including: on a character display interface, listening to and receiving a user's mouse operation; in response to detecting that the user's mouse operation is a predefined click operation and the content currently selected by the mouse is a character associated with the image, jumping the current display interface to a picture display interface containing the associated picture.
[0159] In some exemplary embodiments, the file display module 830 displays online files, including: on the image display interface, listening to and receiving the user's mouse operation; in response to detecting that the user's mouse operation is a predefined click operation and the content currently selected by the mouse is a picture label associated with the character, jumping the current display interface to a character display interface containing the associated character.
[0160] In some exemplary embodiments, the file display module 830 displays online files, including at least one of the following:
[0161] On the picture display interface, display the content of the characters associated with the picture label near the position of the picture label;
[0162] On the picture display interface, display all the picture labels and the content of the characters associated with each of the picture labels;
[0163] On the picture display interface, set a picture enlargement display button and / or a maximized display button.
[0164] In some exemplary embodiments, the file processing device further includes: an online editing module, wherein the online editing module is configured to monitor and receive a first operation of a user on a character display interface or a picture display interface, and perform online editing on the online file according to the first operation.
[0165] like Fig.9A As shown, the embodiment of the present disclosure also provides a patent review system, including a patent review query module 910, a file processing module 920 and an online editing module 930, wherein:
[0166] The patent review query module 910 is configured to detect whether there are patent application documents to be processed, and if so, obtain the patent application documents to be processed;
[0167] The file processing module 920 is configured to parse the acquired patent application document to obtain a parsing result, where the patent application document includes claims, a specification and drawings of the specification;
[0168] The online editing module 930 is configured to generate one or more online files to be edited based on the analysis results, and display the online files to be edited, wherein the online files to be edited include a claims display interface, a specification display interface, and a specification drawing display interface, wherein the specification drawing display interface includes information about pictures and characters associated with the pictures; monitor and receive a first operation from the user, and perform online editing on the online files to be edited based on the first operation.
[0169] The patent review system provided by the disclosed embodiment can convert the traditional offline patent application document review mode into an online system review and editing, making the review more standardized, more convenient, and safer; at the same time, through NLP and OCR in AI technology, the relevant data in the patent application document is associated to realize functions such as intelligent drawings, thereby improving the efficiency of patent engineers in reading and reviewing; by introducing formal review, irregular problems in the patent application document can be discovered autonomously and friendly prompts can be given, thereby improving the success rate of patent proposal submission after review, saving review manpower and patent application costs. The patent review system can be used in combination with the patent system, wherein the patent system is mainly used for patent application process services, and the patent review system is mainly used for online review, which is convenient for patent engineers to operate and use.
[0170] In some exemplary embodiments, the document processing module 920 may provide document parsing services, natural language processing services, optical character recognition services, and formality review services.
[0171] Among them, the file parsing service is mainly used to convert and identify patent application documents in the patent system. In patent business, patent agents will convert the briefing documents submitted by the applicant into patent application documents composed of professional language. After the patent application documents are completed, the quality of the patent application documents needs to be reviewed by the patent engineers within the company. The format of the patent application documents is usually Word. The introduction of the file parsing service can directly parse the patent application documents and directly present the content of the patent application documents on the browser to realize subsequent online review and editing. The file parsing service simplifies the operations of patent engineers during the review process, reduces the complexity of system operations, and improves work efficiency.
[0172] The natural language processing service introduces natural language processing (NLP) technology to better serve the analysis of patent application documents, establish the correspondence between the specification and the drawings in the specification, analyze the character content in the patent application documents through NLP technology, extract the characters corresponding to the specification picture numbers in the specification through word segmentation, part-of-speech tagging, word embedding and other technologies, and associate them to achieve the mutual association of the two parts. The introduction of natural language processing services can effectively improve the efficiency of patent review and realize the comparison of pictures and texts.
[0173] The optical character recognition service introduces optical character recognition (OCR) technology, which is mainly used to process the drawings in the specification of patent application documents. The image labels in the drawings are identified through the optical character recognition service, and the aforementioned NLP service is combined with the specification to establish an association to achieve image-text comparison.
[0174] The formal review service extracts formal review rules based on the company's many years of patent review experience and establishes a formal review function library. The formal review function library is mainly composed of two parts. One part is the formal management library, which is mainly aimed at formatting issues in patent application documents, including grammar, word count, punctuation, page layout and other issues that may affect the success rate of patent submission. The problem mining is extracted into rules and maintained. The other part is the sensitive word management library, which is mainly used to process sensitive words in patent application documents to avoid the appearance of illegal sensitive words in patent application documents. The formal review service can improve the accuracy of the review, discover problems that are easy to overlook, improve efficiency and achieve reuse.
[0175] The online editing module 930 brings the original internal audit work of the enterprise online through online editing services. Combined with the patented system, it enriches the system functions and makes business operations smoother. The service has a user-friendly operation interface and reduces business complexity.
[0176] In some exemplary embodiments, the patent review query module 910 can set a scheduled task, through which the associated database table in the patent system is regularly queried and the status is updated. After the file processing is completed, the user (such as a patent engineer) can be notified through the patent system to conduct an audit. The services of the patent review system are all performed autonomously in the background, and the user is not aware of it.
[0177] The patent review system disclosed in the present invention can simplify / standardize the patent review process, move the original offline review of patent documents to online, simplify the operation, reduce the complexity of patent system application, and promote more planned internal review of enterprises.
[0178] The patent review system disclosed in the present invention can make patent document review more intelligent. Through the application of natural language processing services, optical character recognition services, and formal review services, it can improve the efficiency and accuracy of patent engineer review, reduce internal human costs such as training / experience transfer, and the economic costs after patent rejection.
[0179] The patent review system disclosed in this paper can optimize the patent business process. By using advanced information technology, the traditional patent review process is completely renewed, the operation efficiency is effectively improved, and the digital construction of patent business is stimulated. At the same time, information technology can be reused and open services can be used by other systems within the enterprise to provide capability output.
[0180] like Fig. 9B As shown, the patent application document of the patent review system of the embodiment of the present disclosure can come from the patent system (in other examples, the patent application document can also be stored in the patent review system or any other storage location). When the patent agent completes the writing of the patent application document, it will return it to the patent system online. If the patent review system wants to process the patent application document, it needs to query the return information of the patent application document. The embodiment of the present disclosure establishes a "pending file table" in the patent system database. The patent review system (patent review query module 910) sets a scheduled task to regularly query the return information of the patent application document from the pending file table. If there is a newly returned patent application document (i.e., a pending file) in the table, the patent application document is obtained through the file path information recorded in the table and pulled to the patent review system. If there is no newly returned patent application document, it stops and waits for the next scheduled task time.
[0181] After the patent review system (patent review query module 910) obtains the patent application document, it stores the patent application document, creates a processing task list, and performs file parsing in sequence.
[0182] The patent review system (file processing module 920) calls the file parsing service to parse the content of the patent application document; calls the natural language processing service to recognize the character content through NLP technology, and obtains the image number and the component name corresponding to the image number through word segmentation / part-of-speech tagging; calls the optical character recognition service to recognize the image through OCR technology to determine the image number and position corresponding to the image; calls the formal review service to analyze the file content according to the configured formal review requirements to check whether there are formal errors and sensitive word errors;
[0183] The patent review system (online editing module 930) generates an online preview path based on the analysis results of the patent application document, and feeds back the online preview path and the completion mark to the pending file table for patent engineers to query.
[0184] The patent engineer clicks on the verification file through the patent system and jumps to the online preview path to view the content of the patent application document online and perform online editing (through the online editing module 930). After editing, the patent application document containing the review opinion can be exported.
[0185] Among them, when the file processing module 920 calls the file parsing service to parse the content of the patent application document, due to the differences in the versions of the patent application documents, the differences in the files will lead to difficulties in the application of the technology. It is necessary to ensure the consistency of the versions and convert all patent application documents into the .docx version format to facilitate subsequent file processing. In addition, patent application documents often undergo some revisions and annotations during the circulation process. The added revisions and annotations will cause problems for the extraction of text and pictures. In order to reduce the abnormality rate, the manually added revisions and annotations are extracted before the file is split (after the later parsing is completed, the revisions and annotations are added).
[0186] Next, the patent application document is divided into five parts. A patent application document usually includes "specification abstract, summary drawing, claims, specification, specification drawings". Among them, the abstract drawing and specification drawings mainly include picture content, and the specification, claims and specification abstract mainly include character content.
[0187] For later online display and online editing, the character chapters are converted into HTML format files to facilitate the front-end development of browser access. The image content can be parsed in XML format to extract image information and generate images based on the image information. The generated images can be used for browser front-end display and OCR recognition.
[0188] When patent engineers review patents, the most efficient way is to switch to different positions at any time to help with understanding. Therefore, in order to meet the function of image-text comparison, it is necessary to further identify through OCR / NLP services to obtain key words and related information of character chapters and image chapters. Use NLP technology to perform word segmentation and part-of-speech tagging, extract key words and related information of character chapters, and record them as the basic data for subsequent image-text comparison / text positioning functions; use OCR technology to identify images (and formulas, etc.), and record the position of the image label corresponding to the image as the basic data for subsequent image-text comparison / text positioning functions. Before using OCR technology to recognize images, the recognition accuracy of images can be improved through algorithms such as image enhancement.
[0189] By synthesizing the above split contents as needed, the patent application documents can be flexibly displayed online, and an interactive mode can be established through intelligent drawings to achieve image-text comparison. Images can be located by text, and the user can jump directly from the image to the specification. The data related to the split characters and images can be counted, which is convenient for the review and analysis of patent application documents.
[0190] The online display interface of the embodiment of the present disclosure is as follows: Fig. 6A As shown, the interface is clear and easy to operate. Among them, the area on the left side of the interface is the "directory view area", which is used to divide the patent application documents into five parts for display, and prompt the key information of each part (such as the number of words in the abstract, the number of claims, the number of drawings in the specification, etc.), and you can click on a certain part to view it separately. The lower middle area of the interface is the "core content area", which is used to display the content of each part of the patent application document. The area on the right side of the interface is the "user operation instruction area", which is used to record the user's editing operations and display potential problems in the formal review. It can be edited freely, such as adding text, deleting text, adjusting paragraphs, adjusting text color, etc. The upper left area in the middle of the interface is the "content switching area", which is used to display the analysis and display results of different dimensions of the patent application documents in different page display areas, which can be switched independently. The upper right area in the middle of the interface is the "function button area", which is used to encapsulate the user's common operations (query / export / download source files, etc.) into function buttons to facilitate user quick operation. An exemplary online display interface is as follows Figure 6B As shown. The content switching area can display all content, display the form review rule check results, display the sensitive word rule check results, etc. After the review is completed, the patent engineer can export the patent application document containing all current review opinions through the export button and send it to the patent agent for modification or submission.
[0191] In the character chapter, the characters associated with the pictures mainly include: 1) the picture number in the character chapter, such as "Figure x", etc.; 2) the picture label in the character chapter, such as "control circuit 13", etc. These two types of characters are associated with the corresponding pictures, and these two types of characters are displayed in the first display mode mentioned above (such as by setting the character color to highlight the prompt). Clicking on these two types of characters can directly open the corresponding pictures. Fig.6D As shown, click on the character " Figure 1 ", you can add a new one for displaying on the current display interface Figure 1 The display window of the content (in other examples, the current display interface can also be switched to the Figure 1 Location).
[0192] like Fig. 6E and Fig. 6F As shown, the embodiment of the present disclosure uses OCR technology to identify the image label corresponding to the image, and displays the content of the characters associated with the image label near the location of the relevant image label for patent engineers to review and check. In the embodiment of the present disclosure, when the mouse moves to the image label or near the location of the image label, the image label and the characters associated with the image label can become highlighted.
[0193] In the present disclosure, Fig. 6E As shown, when you click on the image number or the image number description, the display interface can directly jump to the associated character content in the character chapter to facilitate patent engineers to review and consult.
[0194] like Fig. 6F As shown in FIG. 1 , a label description area is set on the picture display interface, which is used to display the content of all picture labels and the characters associated with each picture label. When the system recognizes an error, the user can modify the corresponding picture label or the characters associated with the picture label, or add a picture label and the characters associated with the picture label, such as Figure 6G shown.
[0195] like Fig. 6F As shown, in order to facilitate patent engineers to review the drawings, on the picture display interface, the picture can be enlarged or the window can be maximized. When the window is maximized, the picture can be displayed in a separate window to facilitate patent engineers to review and review.
[0196] like Figure 6H As shown, a smart attachment button is provided on the picture display interface. When the user clicks the smart attachment button, the smart attachment mode can be turned on. At this time, the associated characters of each picture label can be displayed while displaying the attachment to facilitate user review; when the user clicks the smart attachment button again, the smart attachment mode can be turned off and only the original attachment is displayed without displaying the associated characters of each picture label.
[0197] An embodiment of the present disclosure also provides a file processing device, including a memory; and a processor connected to the memory, wherein the memory is used to store instructions, and the processor is configured to execute the steps of the file processing method described in any embodiment of the present disclosure based on the instructions stored in the memory.
[0198] like Fig.10 As shown, in one example, the file processing device may include: a processor 1010, a memory 1020, a bus system 1030 and a transceiver 1040, wherein the processor 1010, the memory 1020 and the transceiver 1040 are connected via the bus system 1030, the memory 1020 is used to store instructions, and the processor 1010 is used to execute the instructions stored in the memory 1020 to control the transceiver 1040 to send and receive signals. Specifically, the transceiver 1040 can obtain one or more files to be processed under the control of the processor 1010, and the content of the files to be processed includes characters and pictures. The processor 1010 splits the content of the files to be processed into character chapters and picture chapters, wherein the content of the character chapters includes characters, and the content of the picture chapters includes pictures, and parses one or more of the files to be processed to obtain parsing results; generates one or more online files according to the parsing results, and displays the online files, the online files including a character display interface and a picture display interface, the content of the character chapter is displayed through the character display interface, the content of the picture chapter is displayed through the picture display interface, and the picture display interface includes information about the picture and the characters associated with the picture.
[0199] It should be understood that the processor 1010 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0200] The memory 1020 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1010. A portion of the memory 1020 may also include a nonvolatile random access memory. For example, the memory 1020 may also store information on the device type.
[0201] In addition to the data bus, the bus system 1030 may also include a power bus, a control bus, and a status signal bus. Fig.10 Various buses are labeled as bus system 1030 .
[0202] In the implementation process, the processing performed by the processing device can be completed by the hardware integrated logic circuit in the processor 1010 or the instructions in the form of software. That is, the method steps of the embodiment of the present disclosure can be embodied as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor. The software module can be located in a storage medium such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1020, and the processor 1010 reads the information in the memory 1020 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
[0203] The present disclosure also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the file processing method described in any embodiment of the present disclosure is implemented. The file processing method driven by executing executable instructions is basically the same as the file processing method provided in the above embodiment of the present disclosure, and will not be described in detail here.
[0204] In some possible implementations, various aspects of the file processing method provided by the present disclosure may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the file processing method according to various exemplary embodiments of the present disclosure described above in this specification. For example, the computer device may execute the file processing method recorded in the embodiments of the present disclosure.
[0205] The program product may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0206] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0207] It should be noted that the above embodiments or implementations are merely illustrative and not restrictive. Therefore, the present disclosure is not limited to the contents specifically shown and described herein. Various modifications, substitutions or omissions may be made to the forms and details of implementation without departing from the scope of the present disclosure.< / w:p> < / w:sectpr> < / w:headerreference> < / w:sectpr> < / w:sectpr> < / w:commentrangeend> < / w:commentrangestart>
Claims
1. A file processing method, characterized in that: include: Acquire one or more files to be processed, wherein the contents of the files to be processed include characters and pictures, and split the contents of the files to be processed into character chapters and picture chapters, wherein the contents of the character chapters include characters, and the contents of the picture chapters include pictures; Parsing one or more of the files to be processed to obtain parsing results; parsing the one or more files to be processed includes: performing a first format conversion on the character chapter, and performing word segmentation and part-of-speech tagging on the content of the character chapter through natural language processing technology; performing a second format conversion on the picture chapter, and identifying the pictures in the picture chapter through picture recognition technology, and extracting the picture labels corresponding to the pictures, wherein the first format conversion method is different from the second format conversion method; in the character chapter, extracting characters associated with the picture labels, and recording the association information between the picture labels and the characters; performing a first format conversion on the character chapter includes: converting the content of the character chapter from Word format to XML format, and then converting the XML format to HTML format to facilitate front-end development for browser access, and when the character chapter includes formulas, converting the format of the character chapter from XML format or Word format to PDF format, and then converting from PDF format to picture format, and obtaining the picture corresponding to the formula from the picture corresponding to the character chapter, and inserting the picture corresponding to the formula into The character chapter in HTML format; the picture chapter is converted into a second format, including: converting the content of the picture chapter from Word format to XML format; the parsing of one or more of the files to be processed also includes: extracting and storing the revision content and / or annotation content in the files to be processed, wherein, for the case of extracting the annotation content, first extract and store the annotation content in the files to be processed, the annotation content is the content between the annotation identifiers in the XML format of the files to be processed, then delete the annotation content from the files to be processed and perform a parsing operation on the files to be processed; for the case of extracting the revision content, first confirm the revision mode based on the type of the identifier in the XML format of the files to be processed, extract and store the revision content in the files to be processed according to the revision mode, the revision content is the content between the revision identifiers in the XML format of the files to be processed, then delete the revision content from the files to be processed and perform a parsing operation on the files to be processed, the revision mode includes deletion revision and editing revision, and different revision modes correspond to different identifiers; One or more online files are generated according to the analysis results, the stored revision content and / or annotation content is added to the online files, and the online files are displayed, the online files include a character display interface and a picture display interface, the content of the character chapter is displayed through the character display interface, the content of the picture chapter is displayed through the picture display interface, and the picture display interface includes information about the picture and the characters associated with the picture.
2. The method according to claim 1, characterized in that The parsing of one or more of the to-be-processed files further includes: The version of the file to be processed is converted into a preset version format.
3. The method according to claim 1, characterized in that: In the character section, extracting characters associated with the picture label includes: For each of the picture labels, generating a predefined part-of-speech rule, the predefined part-of-speech rule including a noun phrase and the picture label; Based on the predefined part-of-speech rules, a noun phrase adjacent to the picture label is extracted in the character section by a part-of-speech rule matching method, and the extracted noun phrase is used as a character associated with the picture label.
4. The method according to claim 3, characterized in that The extracted noun phrase is the longest noun phrase that is located before the picture label and is adjacent to the picture label.
5. The method according to claim 1, characterized in that After converting the picture chapter into the second format and before identifying the pictures in the picture chapter by using a picture recognition technology, the method further includes: In response to the picture chapter including information of a plurality of pictures, extracting one or more picture splitting marks from the information of the plurality of pictures, wherein the picture splitting marks include description characters corresponding to each picture; Splitting the information of the multiple pictures according to the picture splitting identifier; The information of each picture is converted into a picture of the same picture format by any one of the following methods: processing each picture separately by a picture conversion tool or by performing a third format conversion on the picture section.
6. The method according to claim 1, characterized in that The method further comprises: Performing a formal review on the content of the to-be-processed file, wherein the formal review includes at least one of the following: reduplication detection, sensitive word detection, word count detection, and reference relationship detection.
7. The method according to claim 1, characterized in that The displaying of the online file includes: The characters associated with the picture are displayed in a first display mode on the character display interface, and the first character is displayed in a second display mode on the character display interface. The first display mode is different from the second display mode, and the first character is a character other than the character associated with the picture.
8. The method according to claim 1, characterized in that The displaying of the online file includes: On the character display interface, monitoring and receiving a user's mouse operation; In response to detecting that the user's mouse operation is a predefined click operation and the content currently selected by the mouse is a character associated with the picture, the current display interface is jumped to a picture display interface containing the associated picture.
9. The method according to claim 1, characterized in that: The displaying of the online file includes: On the picture display interface, monitoring and receiving the user's mouse operation; In response to detecting that the user's mouse operation is a predefined click operation and the content currently selected by the mouse is a picture label associated with the character, the current display interface is jumped to a character display interface containing the associated character.
10. The method according to claim 1, characterized in that The displaying of the online file includes at least one of the following: On the picture display interface, displaying the content of the characters associated with the picture label near the position of the picture label; On the picture display interface, display all the picture labels and the content of the characters associated with each of the picture labels; On the picture display interface, a picture enlargement display button and / or a maximized display button are set.
11. The method according to claim 1, characterized in that: The method further comprises: On the character display interface or the picture display interface, a first operation of a user is monitored and received, and the online file is edited online according to the first operation.
12. A file processing device, characterized in that: The method comprises a memory; and a processor connected to the memory, wherein the memory is used to store instructions, and the processor is configured to execute the steps of the file processing method according to any one of claims 1 to 11 based on the instructions stored in the memory.
13. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the file processing method according to any one of claims 1 to 11 is implemented.
14. A computer program product, characterized in that The computer program product comprises instructions, and when the computer is executed by a computer, the instructions execute the file processing method according to any one of claims 1 to 11.
15. A file processing device, characterized in that: It includes file acquisition module, file parsing module and file display module, among which: The file acquisition module is configured to acquire one or more to-be-processed files, wherein the contents of the to-be-processed files include characters and pictures, and split the contents of the to-be-processed files into character chapters and picture chapters, wherein the contents of the character chapters include characters, and the contents of the picture chapters include pictures; The file parsing module is configured to parse one or more of the to-be-processed files to obtain parsing results; the parsing of the one or more to-be-processed files includes: performing a first format conversion on the character chapter, and performing word segmentation and part-of-speech tagging on the content of the character chapter through natural language processing technology; performing a second format conversion on the picture chapter, and identifying the pictures in the picture chapter through picture recognition technology, and extracting the picture labels corresponding to the pictures, wherein the first format conversion method is different from the second format conversion method; in the character chapter, extracting characters associated with the picture labels, and recording the association information between the picture labels and the characters; the first format conversion on the character chapter includes: converting the content of the character chapter from Word format to XML format, and then converting the XML format to HTML format to facilitate front-end development for browser access, when the character chapter includes formulas, converting the format of the character chapter from XML format or Word format to PDF format, and then converting from PDF format to picture format, and obtaining the picture corresponding to the formula from the picture corresponding to the character chapter, and recording the formula to the picture corresponding to the formula. The corresponding picture is inserted into the character chapter in HTML format; the picture chapter is converted into a second format, including: converting the content of the picture chapter from Word format to XML format; the parsing of one or more of the files to be processed also includes: extracting and storing the revision content and / or annotation content in the files to be processed, wherein, for the case of extracting the annotation content, first extract and store the annotation content in the files to be processed, the annotation content is the content between the annotation identifiers in the XML format of the files to be processed, then delete the annotation content from the files to be processed and perform a parsing operation on the files to be processed; for the case of extracting the revision content, first confirm the revision mode based on the type of the identifier in the XML format of the files to be processed, extract and store the revision content in the files to be processed according to the revision mode, the revision content is the content between the revision identifiers in the XML format of the files to be processed, then delete the revision content from the files to be processed and perform a parsing operation on the files to be processed, the revision mode includes deletion revision and editing revision, and different revision modes correspond to different identifiers; The file display module is configured to generate one or more online files based on the analysis results, add the stored revision content and / or annotation content to the online files, and display the online files. The online files include a character display interface and a picture display interface. The content of the character chapter is displayed through the character display interface, and the content of the picture chapter is displayed through the picture display interface. The picture display interface includes information about the picture and the characters associated with the picture.
Citation Information
Patent Citations
Dangerous and large project special construction scheme intelligent examination system and implementation method
CN114781997A
File content auditing method and device, equipment, storage medium and product
CN118134422A
Legal intelligence credit business: a business operation mode of artificial intelligence + legal affairs + business affairs
US20190332983A1
