Resume analysis method, computing device and storage medium

By converting resume documents into pictures and extracting visual blocks, establishing category labels and associations, and generating resumes with preset layout structures, the problem of inaccurate resume parsing in the existing technology is solved, and the accuracy and readability of text extraction are improved. sex.

CN118734827APending Publication Date: 2024-10-01GUANGZHOU SHIYUAN ELECTRONICS CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310335220.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When parsing a resume with complex layout, the existing technology is prone to confusing text extraction content and confusing extraction order, resulting in inaccurate parsing and poor practicality.

Method used

Convert resume documents into resume images, obtain visual blocks and category labels based on layout information, establish relationships between blocks, extract text and generate resumes with preset layout structures to avoid text extraction errors and improve parsing accuracy.

Benefits of technology

It improves the accuracy of resume text extraction, enables re-formatting, and enhances the readability of resumes. It is suitable for analysis of complex layouts such as double-column and double-column resumes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734827A_ABST
    Figure CN118734827A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of data processing, and discloses a resume analysis method, computing equipment and a storage medium, and the resume analysis method comprises the following steps: firstly, converting a resume document into a resume picture, secondly, based on layout information, obtaining visual blocks in the resume picture and category labels of the visual blocks, the method comprises the following steps: firstly, obtaining a category label of each visual block, then establishing an association relationship between the visual blocks based on the category label of each visual block, finally extracting a text of each visual block, and generating a resume with a preset layout structure according to the category label and the association relationship. According to the analysis method, the visual block in the resume picture is extracted before the resume text is extracted, so that the situation of text extraction errors is avoided, the character extraction accuracy of the resume is improved, the resume can be re-typeset, and the readability of the resume is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of data processing technology, and in particular to a resume parsing method, a computing device and a storage medium. Background Art

[0002] With the rapid development of Internet technology, resume documents in formats such as HTML, doc, docx, PDF, and images have become mainstream in human recruitment scenarios. There are more and more resume typesetting and layout styles. For recruiters or headhunters, when there are a large number of resumes, they need to spend more energy to read various resumes, analyze, and extract the required information. In order to improve the readability of resumes, intelligent resume parsing solutions have emerged. Resume parsing refers to extracting structured field information such as basic information, work experience, project experience, and educational experience from resume documents. Resume parsing is an important foundation for upper-level applications such as resume screening, search, person-job matching, and data analysis and statistics.

[0003] In the process of implementing the embodiments of the present invention, the inventors found that there are at least the following problems in the above-mentioned related technologies: the current mainstream way to parse a resume is to directly convert the resume format into text, or directly extract text from the resume, and then extract structured fields from the text. This type of solution is usually prone to confusion in the extracted text content and extraction order when the resume layout is more complicated. The resume parsing is not accurate enough and has poor practicality. Summary of the invention

[0004] The embodiments of the present application provide a resume parsing method, a computing device, and a storage medium, which can solve the problem that resumes with complex layouts cannot be parsed.

[0005] The purpose of the embodiment of the present invention is achieved through the following technical solutions:

[0006] To solve the above technical problems, in the first aspect, a resume parsing method is provided in an embodiment of the present invention, comprising: converting a resume document into a resume picture; based on layout information, obtaining visual blocks in the resume picture and category labels of each visual block; based on the category labels of each visual block, establishing an association relationship between the visual blocks; extracting text from each visual block, and generating a resume with a preset layout structure according to the category labels and the association relationship.

[0007] In some embodiments, the visual blocks in the resume image and the category labels of each visual block are obtained based on the layout information, including: defining a set of category labels of a target detection model based on the layout information; training the target detection model; and performing target detection on the resume image through the trained target detection model based on the set of category labels to divide the resume image into the visual blocks.

[0008] In some embodiments, based on the set of category labels, target detection is performed on the resume image through a trained target detection model to divide the resume image into the visual blocks, including: dividing the resume image into a series of rectangular area blocks as the visual blocks; saving the rectangular area blocks as a list set, wherein each subset in the list set corresponds to the coordinate data of two vertices on a diagonal line of the rectangular area block, and the category label of the visual block.

[0009] In some embodiments, the training of the target detection model includes: obtaining a number of resume images with manually annotated visual blocks; obtaining visual features of the manually annotated visual blocks; and training the target detection model based on the manually annotated visual blocks and their visual features.

[0010] In some embodiments, establishing the association between the visual blocks based on the category labels of each of the visual blocks includes: determining the cascading relationship of each category label through a preset heuristic rule; and establishing the association relationship between the visual blocks based on the cascading relationship.

[0011] In some embodiments, the extracting of text from each of the visual blocks and generating a resume with a preset layout structure according to the category labels and the association relationships includes: determining the preset layout structure based on the category labels and the association relationships; extracting text from each of the visual blocks; and generating the resume with the preset layout structure based on the content of the text from each of the visual blocks.

[0012] In some embodiments, the generation of the resume having a preset layout structure based on the content of the text of each of the visual blocks includes: splicing the text of the visual blocks with related relationships to obtain a plurality of text fragments; classifying each of the text fragments based on predefined semantic tags; extracting structured fields from each of the classified text fragments; and generating the resume having a preset layout structure based on the structured fields based on the preset layout structure.

[0013] In some embodiments, before generating the resume with a preset layout structure based on the content of the text, the method further includes: preprocessing the content of the text based on the category label to eliminate interference information in the resume document.

[0014] To solve the above technical problems, in a second aspect, an embodiment of the present invention provides a computing device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect above.

[0015] To solve the above technical problems, in a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method described in the first aspect above.

[0016] Compared with the prior art, the beneficial effects of the present invention are as follows: Different from the prior art, a resume parsing method, a computing device and a storage medium are provided in an embodiment of the present invention. The resume parsing method first converts a resume document into a resume image, and then obtains the visual blocks in the resume image and the category labels of each visual block based on the layout information, and then establishes the association relationship between the visual blocks based on the category labels of each visual block, and finally extracts the text of each visual block, and generates a resume with a preset layout structure according to the category labels and the association relationship. The parsing method first extracts the visual blocks in the resume image before extracting the resume text to avoid text extraction errors, thereby improving the accuracy of text extraction of the resume, and can reformat the resume to improve the readability of the resume. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] One or more embodiments are exemplarily described by the resume pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments. Elements / modules and steps with the same reference numerals in the drawings are represented as similar elements / modules and steps. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0018] Figure 1 It is a flowchart of a resume parsing method provided by an embodiment of the present invention;

[0019] Figure 2 This is an example diagram of dividing a visual area of ​​a resume provided by an embodiment of the present invention;

[0020] Figure 3 yes Figure 1 A schematic diagram of a sub-process of step S200 in the resume parsing method shown;

[0021] Figure 4 yes Figure 3 A schematic diagram of a sub-process of step S220 in the resume parsing method shown;

[0022] Figure 5 yes Figure 3 A schematic diagram of a sub-process of step S230 in the resume parsing method shown;

[0023] Figure 6 yes Figure 1 A schematic diagram of a sub-process of step S300 in the resume parsing method shown;

[0024] Figure 7 is an example diagram of a preset layout structure of a resume provided by an embodiment of the present invention;

[0025] Figure 8 yes Figure 1 A schematic diagram of a sub-process of step S400 in the resume parsing method shown;

[0026] Fig. 9 yes Figure 1 Another sub-process diagram of step S400 in the resume parsing method shown;

[0027] Fig.10 yes Figure 8 A schematic diagram of a sub-process of step S430 in the resume parsing method shown;

[0028] Fig.11 It is a schematic diagram of the hardware structure of a computing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0031] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, and all are within the scope of protection of this application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device or the order in the flow chart.

[0032] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification and in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.

[0033] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0034] In order to solve the problems of the current resume parsing solution being prone to resume content extraction errors, poor resume readability, and a lot of interference information, the embodiments of the present invention provide a resume parsing method, a computing device, and a storage medium. The parsing method extracts visual blocks from a resume image before extracting the resume text to avoid text extraction errors, thereby improving the accuracy of resume text extraction, and can realize resume parsing with complex page layouts, such as parsing double-column and double-column resumes, and can reformat the resume to improve the readability of the resume.

[0035] Specifically, the embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0036] The embodiment of the present invention provides a resume parsing method, see Figure 1 , which represents the process of a resume parsing method provided by an embodiment of the present invention, the resume parsing method includes but is not limited to the following steps:

[0037] Step S100: converting the resume document into a resume picture;

[0038] In an embodiment of the present invention, first, it is necessary to unify the resume document from other format types into a photo format, so as to further be able to extract the content in the resume based on visual features. Specifically, various format conversion tools can be used to convert text documents such as word and html into picture formats, or documents in other PDF or PPT formats can be converted into picture formats. For example, a pdf file can be converted into a picture format through a python toolkit such as fitz and PyMuPDF; an html file can be converted into a picture format through the python toolkit imgkit; doc and docx files can be converted into pdf through the python toolkit win32com, and then converted into a picture format through fitz and PyMuPDF. Specifically, it can be selected according to actual needs, without being bound by the limitations of the embodiments of the present invention.

[0039] Step S200: based on the layout information, obtaining the visual blocks in the resume image and the category labels of the visual blocks;

[0040] In an embodiment of the present invention, the resume image can be divided into visual blocks based on the layout information, and then the text can be extracted. For resumes with complex and changeable layouts, such as double-column or multi-column resumes, dividing the resumes into visual blocks first can avoid errors in the order of text extraction when extracting text, which in turn can lead to errors in structured field extraction.

[0041] The layout information at least includes: title, subtitle, text, header, footer, font, font size, color, bold, italic, underline, line spacing, paragraph spacing, single column layout, multi-column layout and other layout information. Please also refer to Figure 2 , which is an example of dividing a visual area of ​​a resume provided by an embodiment of the present invention, such as Figure 2 As shown, in a resume, the typesetting layout information of the text is usually different, so the visual perception presented is also different. Based on this, the resume can be divided into visual blocks based on visual features, and the category labels of the visual blocks can be obtained.

[0042] Specifically, see Figure 3 , which is Figure 1 A sub-process of step S200 in the resume parsing method shown in the figure, obtaining the visual blocks in the resume image and the category labels of each visual block based on the layout information, includes:

[0043] Step S210: defining a set of category labels of the target detection model based on the layout information;

[0044] In an embodiment of the present invention, each subset of the set of category labels of the target detection model can be defined based on the common resume layout information, or the required resume layout information, so as to realize the classification of each visual block in the resume. Among them, the set of category labels is a predefined label set. Preferably, the set can cover different components or structures in the resume. For example, the set of category labels can be defined as S, and S = {title, subtitle, text, table, header, footer, other}. Specifically, each subset of the set of category labels can be set based on the typesetting and layout information of the resume, and there is no need to stick to the limitations of the embodiment of the present invention.

[0045] Step S220: training the target detection model;

[0046] In the embodiment of the present invention, the image detection can be realized by the target detection model, and the target detection model can be faster rcnn, yolo, etc. The corresponding model can be selected according to actual needs, and then the selected target detection model is pre-trained to obtain a target detection model that can be used to realize visual block division in the embodiment of the present invention. For details, please refer to Figure 4 , which is Figure 3 A sub-process of step S220 in the resume parsing method shown, wherein the training of the target detection model comprises:

[0047] Step S221: obtaining a number of resume images manually annotated with visual blocks;

[0048] Step S222: obtaining visual features of the manually annotated visual block;

[0049] Step S223: training the object detection model based on the manually annotated visual blocks and their visual features.

[0050] Still Figure 2 For example, the text in the title block is large and bold; the text in the subtitle block is relatively small, bold, and has a gray background; the text in the body is smaller; and the text in the header is the smallest. Therefore, different visual blocks in different types of resumes can be manually marked in advance, such as marking Figure 2 The different visual blocks in the image are identified, and the resumes of different manually annotated visual blocks are substituted into the model as training data for training, so that the trained model can detect different visual blocks based on these visual differences and visual features.

[0051] Step S230: Based on the set of category labels, target detection is performed on the resume image through a trained target detection model to divide the resume image into the visual blocks.

[0052] After the object detection model is trained, since the layout information of each area in the resume is different, the visual blocks of different layout structure categories can be detected from various resume images based on the set of category labels corresponding to the type of layout information. Figure 5 , which is Figure 3 A sub-process of step S220 in the resume parsing method shown in the figure, based on the set of category labels, performing target detection on the resume image through the trained target detection model to divide the resume image into the visual blocks, specifically includes:

[0053] Step S231: dividing the resume image into a series of rectangular area blocks as the visual blocks;

[0054] Please also see Figure 2 Preferably, for each visual block, a rectangular frame can be used to enclose the corresponding area block, that is, the visual block. Figure 2 The example shown includes 2 title blocks, 2 sub-title blocks, 4 text blocks and 1 header block. In actual application, different target detection models can be used to extract rectangular area blocks in the resume image according to actual conditions. The specific settings can be made according to actual needs.

[0055] Step S232: Save the rectangular area block as a list set, wherein each subset in the list set stores coordinate data of two vertices on a diagonal line of the rectangular area block and a category label of the visual block.

[0056] Then, for each rectangular area block, the information of each rectangular area block, that is, each visual block, can also be saved in a set manner. For example, the set of rectangular area blocks can be formally represented by a list set BList, and the list set BList = [B1, B2, B3, ..., Bi, ..., Bn]. And for each subset in the list set BList, that is, the specific data of each visual block, it is correspondingly saved to another list matrix, and the list of each subset Bi can be represented as Bi = [x0, y0, x1, y1, class]. Among them, x0, y0 are the horizontal coordinates and vertical coordinates of a vertex on one of the diagonals of the rectangular area block, for example, the horizontal coordinates and vertical coordinates of the vertex in the upper left corner; x1, y1 are the horizontal coordinates and vertical coordinates of another vertex on one of the diagonals of the rectangular area block, for example, the horizontal coordinates and vertical coordinates of the vertex in the lower right corner; class∈S is the category label of the visual block corresponding to the subset Bi.

[0057] Step S300: establishing associations between the visual blocks based on the category labels of the visual blocks;

[0058] In the embodiment of the present invention, after obtaining the visual blocks, an association relationship can be established between the visual blocks, and an association relationship can be established between multiple visual blocks with related content, consistent categories or similar categories. For the contents of the visual blocks with established association relationships, the text content therein can be extracted at the same time, and the target field can be extracted using a unified structured field, thereby improving the accuracy of recognition and avoiding interference caused by irrelevant text. For details, please refer to Figure 6 , which is Figure 1 A sub-process of step S300 in the resume parsing method, wherein the association between the visual blocks is established based on the category label of each visual block, includes:

[0059] Step S310: Determine the cascade relationship of each category label through a preset heuristic rule;

[0060] Step S320: establishing an association relationship between the visual blocks according to the cascade relationship.

[0061] In the embodiment of the present invention, a series of heuristic rules can also be defined according to the positions of the visual blocks in the resume document, so as to establish the association relationship between the visual blocks. Figure 2 As shown, the visual blocks of the title and the text can be correspondingly established in a parent-child cascade relationship and recorded as<Bi,parent_of,Bj> , where Bi is the parent block of Bj, and Bj is the child block of Bi. Furthermore, according to the parent-child cascade relationship between visual blocks, the block list set BLi st can be divided into k non-overlapping subsets: S1, S2, S3, ..., Sk. These non-overlapping subsets are a division of the block list BLi st based on the parent-child cascade relationship, and each subset represents a logically independent document structure area.

[0062] by Figure 2 Taking the visual blocks of "title", "subtitle", "text", "header", "footer" and "others" obtained in the resume as an example, the heuristic rules can be set as follows: one "title" block corresponds to multiple "subtitle" sub-blocks, whereas one "subtitle" block corresponds to only one "title" parent block; one "title" block corresponds to multiple "text" sub-blocks, whereas one "text" block corresponds to only one "title" parent block; one "subtitle" block corresponds to multiple "text" sub-blocks, whereas one "text" block corresponds to only one "subtitle" parent block; "header", "footer" and "other" type blocks have no associated parent-child blocks; the parent block corresponding to the sub-block is the parent type block that appears above it and is closest to it. Specifically, it can be set according to actual needs, and there is no need to stick to the limitations of the embodiments of the present invention.

[0063] Step S400: extracting text from each of the visual blocks, and generating a resume with a preset layout structure according to the category labels and the association relationships.

[0064] In the embodiment of the present invention, after extracting the text of each visual block, a new resume can be generated according to the text content in the visual block, and / or the category label of each visual block and the association between the visual blocks, and the layout of the resume is rearranged in the new resume. Figure 7 , which is an example diagram of a preset layout structure of a resume provided by an embodiment of the present invention, such as Figure 7As shown, the visual blocks can be sorted from left to right and from top to bottom according to the list set of visual blocks BList = [B1, B2, B3, ..., Bi, ..., Bn] and the coordinates of the visual blocks (x0, y0, x1, y1) to obtain Figure 7 The preset layout structure of a resume is shown.

[0065] Specifically, see Figure 8 , which is Figure 1 A sub-process of step S3400 in the resume parsing method, extracting text from each of the visual blocks and generating a resume with a preset layout structure according to the category labels and the association relationships, includes:

[0066] Step S410: determining the preset layout structure based on the category label and the association relationship;

[0067] In the embodiment of the present invention, the system can automatically generate a preset layout structure with a unified layout according to the category tags and association relationships, or the preset layout structure can also be manually set by the user. For example, the preset layout structure can be as follows: Figure 7 As shown, the visual blocks obtained from step S300 are sorted from top to bottom, and the visual blocks with associated relationships are left-aligned, and the indentation of each visual block in the page is set according to the specific cascading relationship.

[0068] Step S420: extracting text from each of the visual blocks;

[0069] After dividing the visual blocks and determining the layout of the new resume, the text content of the visual blocks can be extracted. Preferably, a text recognition algorithm can be used to extract the text content in the visual blocks in image format. For example, optical character recognition (OCR) tools such as paddleocr and easyocr can be used to extract text content.

[0070] For further information, see Fig. 9 , which is Figure 1 Another sub-process of step S400 in the resume parsing method shown, before generating the resume with the preset layout structure based on the content of the text, the method further includes:

[0071] Step S421: Based on the category label, pre-process the content of the text to eliminate interference information in the resume document.

[0072] In the embodiment of the present invention, Figure 2As shown, there may be interference information in the resume document, such as headers, footers, watermarks and other interference information. Therefore, after extracting the text of each visual block, the interference information in the resume document can also be filtered out according to the category label of the visual block or the content of the text. For example, the visual blocks with category labels of "header" and "footer" can be deleted, or the content containing the word "watermark" in the extracted text content can be deleted.

[0073] Step S430: generating the resume having a preset layout structure based on the text content of each of the visual blocks.

[0074] After obtaining the content of each visual block, a new resume can be generated according to the preset layout structure. The preset layout structure of the generated new resume can be customized according to the needs of the system user, or the system can select part or all of the category tags according to the general items in the resume and automatically generate a preset layout structure. For details, please refer to Fig.10 , which is Figure 8 A sub-process of step S430 in the resume parsing method, generating the resume with a preset layout structure based on the text content of each visual block, includes:

[0075] Step S431: splicing the texts of the visual blocks with associated relationships to obtain a plurality of text segments;

[0076] Specifically, after the list set of visual blocks BLi st is divided into k subsets of visual blocks: S1, S2, S3, ..., Sk in step S320, since the divided subsets store several visual blocks with associated relationships,<Bi,parent_of,Bj> Therefore, by splicing the texts extracted from the visual blocks contained in each subset, k text segments T1, T2, T3, ..., Tk can be obtained, and each text segment stores the text content of the visual blocks with associated relationships.

[0077] The association relationship may be a cascading relationship as described in step S320, where the texts of the visual blocks with association relationships are spliced, that is, a "title" parent block and its associated one or more "subtitle" blocks and "text" blocks may be spliced. Figure 2 For example, the text of the five visual blocks, namely, the title "Work Experience" and the two sub-titles attached thereto, and the text of the two sub-titles, can be spliced ​​to obtain a text fragment. Specifically, it can be set according to actual needs, and does not need to be limited to the limitations of the embodiments of the present invention.

[0078] Step S432: classifying each of the text segments based on predefined semantic tags;

[0079] After obtaining several text segments, each text segment can be classified by a text classification model to obtain a semantic label semantic_label for each text segment. The semantic label is a predefined, pre-set label, which can be defined according to the content of the resume. Figure 2 For example, according to Figure 2 The content of the resume shown can define several semantic tags and save them as a set, which includes: {basic information, work experience, educational experience, project experience, personal evaluation, others}.

[0080] Step S433: extracting structured fields from each of the classified text segments;

[0081] After obtaining each visual block and obtaining the information Bi=[x0, y0, x1, y1, class] of each visual block through step S230, the semantic label semantic_label obtained from the above step S432 can also be updated and saved to the information of the visual block to obtain Bi=[x0, y0, x1, y1, class, semantic_label]. And use the named entity recognition method (BERT+BiLSTM+CRF) and other methods to extract structured fields from the text of the visual block. For example, the company name is identified from the visual block text with "class"="subtitle" and "semantic_label"="work experience" as the information of the company where the employee works. In some other embodiments, the method and rules for extracting structured fields can be set according to actual needs, without being restricted to the limitations of the embodiments of the present invention.

[0082] Step S434: Based on the preset layout structure and according to the structured fields, generate the resume having the preset layout structure.

[0083] After setting the preset layout structure according to the category labels and text content, the text content corresponding to each area in the layout can be extracted from each visual block by extracting structured fields according to the category labels and voice tags related to each area in the preset layout structure, and filled in the resume to obtain a resume with a new layout. Figure 7 For example, make sure Figure 7After the layout is shown, a category label can be selected for the title to fill, and a semantic label associated with the category label can be selected for the subtitle to fill, and then, based on the category label and the semantic label, relevant structured fields in the text of the visual block are extracted, and the relevant text is placed in the text area immediately below the subtitle. Specifically, it can be set according to actual needs, and there is no need to stick to the limitations of the embodiment of the present invention.

[0084] The present invention also provides a computing device, see Fig.11 , which shows that it is possible to execute Figures 1 to 10 The hardware structure of the computing device of the resume parsing method.

[0085] The computing device 10 includes: at least one processor 11; and a memory 12 communicatively connected to the at least one processor 11. Fig.11 The memory 12 stores instructions that can be executed by the at least one processor 11, and the instructions are executed by the at least one processor 11 so that the at least one processor 11 can perform the above Figures 1 to 10 The processor 11 and the memory 12 may be connected via a bus or other means. Fig.11 The example of connecting through bus is taken in the following.

[0086] The memory 12, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the program instructions / modules corresponding to the resume parsing method in the embodiment of the present application. The processor 11 executes various functional applications and data processing of the computing device by running the non-volatile software programs, instructions and modules stored in the memory 12, thereby realizing the resume parsing method in the above-mentioned method embodiment.

[0087] The memory 12 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the resume parsing device, etc. In addition, the memory 12 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 12 may optionally include a memory remotely arranged relative to the processor 11, and these remote memories may be connected to the resume parsing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0088] The one or more modules are stored in the memory 12, and when executed by the one or more processors 11, execute the resume parsing method in any of the above method embodiments, for example, execute the above described Figures 1 to 10 method steps.

[0089] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0090] The present application also provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example, to execute the above-described Figures 1 to 10 method steps.

[0091] The present application also provides a computer program product, including a computer program stored on a non-volatile computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the resume parsing method in any of the above method embodiments, for example, executing the above described Figures 1 to 10 method steps.

[0092] A resume parsing method, a computing device and a storage medium are provided in an embodiment of the present invention. The resume parsing method first converts a resume document into a resume image, and then obtains visual blocks in the resume image and category labels of each visual block based on layout information, and then establishes associations between the visual blocks based on the category labels of each visual block, and finally extracts text from each visual block, and generates a resume with a preset layout structure according to the category labels and the associations. The parsing method extracts visual blocks from the resume image before extracting the resume text to avoid the situation where the text extraction order is wrong, thereby improving the accuracy of text extraction from the resume, and can reformat the resume to improve the readability of the resume.

[0093] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0094] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A resume parsing method, It is characterized in that include: Convert resume documents into resume images; Based on the layout information, obtain the visual blocks in the resume image and the category labels of each visual block; Based on the category label of each of the visual blocks, establishing an association relationship between the visual blocks; The text of each of the visual blocks is extracted, and a resume having a preset layout structure is generated according to the category labels and the association relationships.

2. The resume parsing method according to claim 1, It is characterized in that The step of obtaining the visual blocks in the resume image and the category labels of the visual blocks based on the layout information includes: Based on the layout information, define a set of category labels for the object detection model; Training the target detection model; Based on the set of category labels, target detection is performed on the resume image through a trained target detection model to divide the resume image into the visual blocks.

3. The resume parsing method according to claim 2, It is characterized in that Based on the set of category labels, target detection is performed on the resume image by using a trained target detection model to divide the resume image into the visual blocks, including: Dividing the resume image into a series of rectangular area blocks as the visual blocks; The rectangular area block is saved as a list set, wherein each subset in the list set stores coordinate data of two vertices on a diagonal line of the rectangular area block and a category label of the visual block.

4. The resume parsing method according to claim 3, It is characterized in that The training of the target detection model includes: Obtain several resume images that are manually annotated with visual blocks; Acquire visual features of the manually annotated visual block; The object detection model is trained based on the manually annotated visual blocks and their visual features.

5. The resume parsing method according to any one of claims 1 to 4, It is characterized in that The establishing associations between the visual blocks based on the category labels of the visual blocks includes: Determine the cascade relationship of each category label through the preset heuristic rules; According to the cascade relationship, an association relationship between the visual blocks is established.

6. The resume parsing method according to claim 5, It is characterized in that The extracting of text from each of the visual blocks and generating a resume with a preset layout structure according to the category labels and the association relationships includes: Determining the preset layout structure based on the category label and the association relationship; Extracting text from each of the visual blocks; Based on the content of the text in each of the visual blocks, the resume having a preset layout structure is generated.

7. The resume parsing method according to claim 6, It is characterized in that The step of generating the resume having a preset layout structure based on the text content of each of the visual blocks includes: Splicing the texts of related visual blocks to obtain several text fragments; Classifying each of the text fragments based on predefined semantic tags; Extracting structured fields from each of the classified text fragments; Based on the preset layout structure and according to the structured fields, the resume having the preset layout structure is generated.

8. The resume parsing method according to claim 6, It is characterized in that Before generating the resume with the preset layout structure based on the content of the text, the method further includes: Based on the category label, the content of the text is preprocessed to eliminate interfering information in the resume document.

9. A computing device, It is characterized in that include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method according to any one of claims 1 to 8.