A resume de-duplication verification method based on natural language processing
By using natural language processing technology, combined with structured resume extraction, semantic alignment, and temporal conflict detection, the problem of insufficient accuracy and high false positive rate in identifying duplicate resumes in existing recruitment resume deduplication technologies is solved, achieving a more efficient resume deduplication effect.
Patent Information
- Application Number
- CN202611332108.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-20
AI Technical Summary
Existing resume deduplication technologies are not accurate or robust enough to effectively identify duplicate resumes and reduce the false positive rate when faced with missing or changed contact information or semantically similar but not duplicate resumes.
A natural language processing-based approach is adopted. By extracting contact information, work experience, and education experience sequences from resumes, a pre-trained language model is used for semantic vector alignment and entity linking. Combined with time conflict detection and contact information matching, the data is input into a binary classification model for duplicate probability determination. A dual threshold is set to improve recognition accuracy.
It significantly improves the accuracy and robustness of resume deduplication, accurately identifying duplicate resumes even when contact information is missing or changed, reducing the misjudgment rate of semantically similar but not duplicate resumes, reducing the workload of manual review, and improving the data quality of the talent pool.
Smart Images

Figure CN123139989A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of recruitment data processing technology, and in particular to a method for deduplicating and validating recruitment resumes based on natural language processing. Background Technology
[0002] In recruitment resume management scenarios, it is common for the same candidate to submit resumes multiple times at different times and through different channels. The large amounts of resume data accumulated over time in corporate recruitment systems, third-party recruitment platforms, and internal talent pools commonly contain multiple duplicate resumes for the same candidate. These duplicate resumes not only significantly increase the manpower costs of resume screening and candidate communication, but also negatively impact the accuracy of talent pool data statistics, the rationality of internal referral channel settlements, and the effectiveness of subsequent talent matching and recommendations. Therefore, resume deduplication is one of the core requirements of recruitment data governance.
[0003] Existing resume deduplication techniques typically rely on precise matching of structured fields such as contact information and name. For example, they determine duplicates by comparing whether the phone numbers, email addresses, or name spellings of two resumes are identical. While this method is effective when candidates have complete and correctly formatted contact information, it has significant limitations in practical applications. On the one hand, situations frequently arise where the same candidate may change their phone number or email address, contact information fields may be missing, or the format of contact information may differ across resumes, making it easy to miss cases if relying solely on structured field matching. On the other hand, different candidates may share the same name or common contact information, making it equally easy to misidentify candidates if only name or contact information is matched.
[0004] Some existing technologies use text similarity calculation methods to achieve deduplication, such as calculating the similarity of the full text of two resumes based on TF-IDF, edit distance, or fuzzy string matching algorithms. These methods are highly accurate in identifying surface-level literal repetitions, but when the same candidate rearranges the order of their experience, rewrites job descriptions, or replaces skill keywords with synonyms, the calculated text similarity drops significantly, making it difficult to accurately identify duplicate resumes. Furthermore, different candidates from the same university or major may have highly similar internship experiences and skill descriptions, leading to a high overall similarity score. Such methods are prone to misclassifying these non-duplicate resumes as duplicates.
[0005] Furthermore, existing technologies typically ignore the time dimension information in resumes during the duplicate detection process. Different versions of the same candidate's resume often exhibit overlapping work experience dates and conflicting educational and work experience dates. These time clues can provide crucial judgment criteria for deduplication verification. However, existing methods lack effective utilization of overlapping and conflicting time intervals, failing to use temporal inconsistencies to help distinguish between duplicate resumes of the same candidate and non-duplicate resumes with similar experiences belonging to different candidates. Additionally, in the final determination stage, existing technologies often employ fixed parameters for duplicate detection, making it difficult to adapt to different data distributions and the complexity of boundary samples, resulting in room for improvement in the accuracy and stability of the deduplication results.
[0006] Based on the limitations of the existing technologies, there is an urgent need for a resume deduplication and verification method that can comprehensively integrate semantic information, time information and contact information to solve the industry pain points of insufficient ability to identify duplicate resumes when contact information is missing or changed, and easy misjudgment of semantically similar but non-duplicate resumes. Summary of the Invention
[0007] This invention solves the problems of insufficient identification of duplicate resumes when contact information is missing or changed, and the easy misjudgment of semantically similar but non-duplicate resumes, thereby improving the accuracy and robustness of resume deduplication.
[0008] To achieve the above objectives, the present invention adopts the following solution: A method for deduplicating and validating job resumes based on natural language processing includes the following steps: S1: Extract contact information, work experience sequence, and education experience sequence from each resume text; S2: Input the work experience sequence and education experience sequence of the two resumes into the pre-trained language model to obtain the work experience semantic vector and education experience semantic vector respectively. Based on the work experience semantic vector, perform sequence alignment on the work experience sequence to obtain the work experience sequence alignment similarity. Based on the education experience semantic vector, perform sequence alignment on the education experience sequence to obtain the education experience sequence alignment similarity. S3: Link company names in the work experience sequences of two resumes to entities, and pair work experiences linked to the same company entity; for work experiences that are not paired through entity links, calculate the semantic similarity of company names using a pre-trained language model, and pair work experiences with semantic similarity greater than the semantic similarity threshold; calculate the time interval overlap and job name similarity for the paired work experiences. When the time interval overlap is greater than the overlap threshold and the job name similarity is less than the job name similarity threshold, the paired work experiences are recorded as time conflict items, and the number of time conflict items is counted. S4: Normalize the contact information in the two resumes, calculate the contact information matching result based on the normalized contact information; concatenate the work experience sequence alignment similarity, education experience sequence alignment similarity, number of time conflict items and contact information matching result into a feature vector, and input it into the trained binary classification model to obtain the repetition probability; S5: Compare the duplication probability with the judgment threshold. If the duplication probability is greater than the judgment threshold, the two resumes are judged as duplicate resumes and merged; otherwise, the two resumes are kept.
[0009] Preferably, step S1 specifically includes: Each resume text is analyzed for layout to obtain the position information and text content of each text block; the position information and text content of each text block are input into a pre-trained layout-aware language model to output the block category of each text block, which includes contact information block, work experience block, and education experience block; the resume text is divided into contact information text segment, work experience text segment, and education experience text segment according to the block category. Fields are extracted from the contact information text segment, work experience text segment, and education experience text segment respectively to obtain contact information, work experience sequence, and education experience sequence. Each item in the work experience sequence includes company name, job name, start time, and end time. Each item in the education experience sequence includes school name, major name, start time, and end time.
[0010] Preferably, in step S2, the methods for obtaining the alignment similarity of work experience sequences include: L2 normalization is performed on the semantic vectors of work experience. The cosine similarity between any two semantic vectors of work experience in the work experience sequences of two resumes is calculated to form a work experience item-by-item similarity matrix. The Smith-Waterman local alignment algorithm is applied to the work experience item-by-item similarity matrix, and matching scores, mismatch scores and gap penalties are set. The maximum alignment path of work experience and the number of matching work experience items are obtained through dynamic programming. The cosine similarity sum of each matching item on the longest alignment path of work experience is divided by the number of matching work experience items to obtain the work experience sequence alignment similarity; the same sequence alignment operation is performed on the education experience sequence to obtain the education experience sequence alignment similarity.
[0011] Preferably, before forming the work experience item-by-item similarity matrix, the following is also included: Extract the start and end times of each work experience in the work experience sequence of each resume; for any two work experiences in the work experience sequences of two resumes, calculate the ratio of the intersection length to the union length between the time intervals of the two work experiences to obtain the time interval overlap. The cosine similarity between two work experiences is multiplied by the overlap of the time intervals to obtain a weighted cosine similarity. The work experience item-by-item similarity matrix is then constructed using the weighted cosine similarity. Finally, the Smith-Waterman local alignment algorithm is applied to the work experience item-by-item similarity matrix.
[0012] Preferably, step S3, which involves linking the company name to an entity, includes: For each company name, remove suffixes from the preset set of company name suffixes to obtain the core words of the company name. Match the core words of the company name with the company entity dictionary. When there is a unique match in the company entity dictionary, link the company name to the company entity identifier corresponding to the match. When there are multiple matches in the company entity dictionary, calculate the edit distance between the company name and the standard company name corresponding to each match. If the minimum edit distance is less than the edit distance threshold, link the company name to the company entity identifier of the match with the minimum edit distance; otherwise, determine that the company name has not passed the entity link. When there is no match in the company entity dictionary, determine that the company name has not passed the entity link.
[0013] Preferably, in step S3, the method for calculating the semantic similarity of company names using a pre-trained language model includes: The company names from work experiences without entity links are input into the semantic representation model of company names trained by contrastive learning to obtain semantic vectors of company names; the cosine similarity between the semantic vectors of company names from work experiences without entity links in two resumes is calculated as the semantic similarity of company names; the length difference of company names from work experiences without entity links in two resumes is obtained, and a dynamic semantic similarity threshold for company names is set based on the length difference, increasing the dynamic semantic similarity threshold as the length difference increases; work experiences with semantic similarity greater than the dynamic semantic similarity threshold of company names are paired.
[0014] As a preferred method, the company name semantic representation model is trained in the following way: The process involves collecting company names from historical resumes and linking each company name to obtain a company entity identifier. Any two company names linked to the same entity identifier form a positive sample pair, and any two company names linked to different entity identifiers form a negative sample pair. A pre-trained language model is used to encode the two company names in each positive sample pair, resulting in two semantic vectors. Similarly, a pre-trained language model is used to encode the two company names in each negative sample pair, also resulting in two semantic vectors. The pre-trained language model is trained using the InfoNCE loss function to increase the cosine similarity between the semantic vectors of the two company names in the positive sample pair and decrease the cosine similarity between the semantic vectors of the two company names in the negative sample pair. During training, a hard negative sample mining process is performed on the negative sample pairs, calculating the character edit distance between the two company names in the negative sample pair. Negative sample pairs with a character edit distance less than the hard negative sample threshold are selected for training. After training, a semantic representation model of company names is obtained.
[0015] Preferably, in step S4, calculating the contact information matching result based on the normalized contact information specifically includes: The contact information extracted from each resume text includes mobile phone number, email address, and landline number; all non-numeric characters are removed from the mobile phone number, leading and trailing spaces are removed from the email address and all uppercase letters are converted to lowercase, and all non-numeric characters are removed from the landline number to obtain the standardized contact information. The system calculates whether the normalized mobile phone numbers in the two resumes are the same, obtaining the mobile phone number matching result; it calculates whether the normalized email addresses in the two resumes are the same, obtaining the email address matching result; it calculates whether the normalized landline numbers in the two resumes are the same, obtaining the landline number matching result; if any one of the mobile phone number matching result, email address matching result, or landline number matching result is true, the contact information matching result is determined to be true; otherwise, the contact information matching result is false.
[0016] As a preferred method, the binary classification model is trained using the following approach: Obtain duplicate and unique resume pairs as training samples; for each training sample, obtain a feature vector according to steps S2 to S4. The feature vector is composed of the similarity of work experience sequence alignment, the similarity of education experience sequence alignment, the number of time conflicts, and the contact information matching results; undersample the unique resume pairs to make the ratio of duplicate resume pairs to unique resume pairs reach a set ratio; use the gradient boosting decision tree algorithm to train the feature vector of the training samples to obtain a binary classification model. During the training process, the cross-entropy loss function is used and the number of iterations is determined by the early stopping method.
[0017] Preferably, step S5 specifically includes: Obtain the duplication probability distribution of historically confirmed duplicate resume pairs. Use the first quantile of the duplication probability distribution as the first judgment threshold and the third quantile as the second judgment threshold, where the second judgment threshold is greater than the first judgment threshold. When the duplication probability of the current two resumes is greater than the second judgment threshold, the current two resumes are judged as duplicate resumes and merged. When the duplication probability of the current two resumes is less than the first judgment threshold, the current two resumes are retained. When the duplication probability of the current two resumes is greater than or equal to the first judgment threshold and less than or equal to the second judgment threshold, the current two resumes are marked as pending review, and the differences in contact information, work experience sequence, and education experience sequence between the current two resumes are output. The two resumes pending review and the differences are added to the manual review queue.
[0018] The present invention has at least the following beneficial effects: (1) By using the similarity of work experience sequence alignment, the similarity of education experience sequence alignment, the number of time conflict items and the matching result of contact information as input features of the classification model, even if the contact information is missing or changed, duplicate resumes can still be identified based on experience semantics and time information, and the misjudgment rate of semantically similar but non-duplicate resumes can be reduced by using time conflict features, which significantly improves the accuracy and robustness of resume deduplication; (2) By classifying resume text blocks through layout analysis and pre-trained layout-aware language model, and dividing the contact information text segment, work experience text segment and education experience text segment according to the block category, field extraction is performed separately, which can effectively adapt to resumes with complex layouts such as multi-column and table, reduce the problem of field misalignment across blocks, and improve the completeness of extraction of contact information, work experience sequence and education experience sequence; (3) By performing L2 normalization on the work experience semantic vector and constructing an item-by-item similarity matrix, the Smith-Waterman local alignment algorithm is applied to achieve sequence alignment, and time zone is introduced at the same time. The overlap between the two sides is weighted to the cosine similarity, which can be compatible with the experience order adjustment and local matching scenarios, suppress the wrong matching of semantically similar but time-non-overlapping experiences, and further improve the calculation accuracy of the work experience sequence alignment similarity; (4) Through the multi-level entity linking strategy of suffix removal, dictionary matching and edit distance verification, and the semantic backstop pairing of company names with incomplete entity links by using the semantic representation model of company names trained by contrastive learning, it can effectively cover the aliases, abbreviations and various writing variations of company names, improve the work experience matching coverage, and reduce the lack of time conflict features; (5) By performing targeted normalization processing on mobile phone numbers, email addresses and landline numbers respectively and comprehensively judging the contact information matching results according to priority, training the binary classification model after undersampling non-repeating resume pairs, and using the historical repetition probability distribution to set double judgment thresholds to implement hierarchical judgment, it can effectively reduce the impact of contact information format differences and category distribution imbalance on model performance, reduce boundary sample misjudgment, and improve the reliability and interpretability of deduplication judgment. Attached Figure Description
[0019] Figure 1 This is a flowchart illustrating the principle of the method of the present invention. Detailed Implementation
[0020] The present invention will now be described in further detail with reference to the accompanying drawings, so that those skilled in the art can implement it based on the description.
[0021] like Figure 1 As shown, the present invention provides a method for deduplicating and validating job resumes based on natural language processing, which includes the following steps: S1: Extract contact information, work experience sequence, and education experience sequence from each resume text. Supports processing resume text from multiple sources and in multiple formats, including resumes from recruitment platforms, resumes from corporate talent inventories, and batch-imported PDF, Word, and HTML documents. It is also compatible with text results from image resumes after OCR recognition. The extraction process uses layout analysis technology to identify text block regions in the resume, and then combines pre-trained language models or sequence labeling models to extract structured fields from the text blocks. Contact information includes three strongly identifying types: mobile phone number, email address, and landline number, used for subsequent accurate matching. The work experience sequence consists of multiple independent work experience entries, each containing at least four core fields: company name, job title, start date, and end date, completely reconstructing the candidate's career development trajectory. The education experience sequence consists of multiple education experience entries, each containing at least four core fields: school name, major, start date, and end date, accurately reflecting the candidate's educational background. All extracted fields are organized into a standardized structured sequence, providing reliable data input for subsequent semantic alignment and conflict detection. If a resume lacks contact information, work experience, or education details, blank values can be left in the corresponding locations and treated as missing items in the subsequent feature calculation stage. This step transforms unstructured resume text into quantifiable and comparable structured data.
[0022] S2: After field extraction, the work experience and education experience sequences from both resumes are input into a pre-trained language model to obtain corresponding semantic vectors for work experience and education experience. The pre-trained language model can be a general semantic model such as BERT, RoBERTa, BGE, or Sentence-BERT, or a dedicated model pre-trained on a recruitment-specific corpus to further improve the accuracy of semantic understanding of texts such as job titles and job descriptions. This solution uses an experience-level encoding method, that is, each independent work experience or education experience is encoded as a separate vector, rather than encoding the entire experience sequence as a single vector, thus preserving finer-grained experience-level semantic information. Based on the obtained work experience semantic vectors, sequence alignment is performed on the work experience sequences of the two resumes to calculate the work experience sequence alignment similarity; the same sequence alignment operation is performed on the education experience sequences of the two resumes based on the education experience semantic vectors to calculate the education experience sequence alignment similarity. The sequence alignment algorithm can be a dynamic programming algorithm such as Smith-Waterman local alignment or Needleman-Wunsch global alignment, or a soft alignment method based on an attention mechanism. The alignment process first generates a similarity matrix between two experiences, then determines the corresponding experience entries in different resumes by solving for the optimal matching path, and finally calculates the sequence alignment similarity by combining the number of matching items and the similarity score. This similarity metric can effectively measure the overall consistency between two resumes in terms of career trajectory or educational background. Compared with the simple average similarity calculation method, it can better adapt to complex scenarios such as adjusting the order of experiences, adding or deleting experience entries, and local matching.
[0023] S3: Perform entity linking on company names in the work experience sequences of two resumes, pairing work experience entries linked to the same company entity. Entity linking technology enables a normalized mapping of different spellings of company names to a unified entity identifier; for example, it can link different expressions such as full Chinese name, abbreviation, and English name to the same company entity identifier. Entity linking can be implemented based on dictionary matching, edit distance calculation, or semantic similarity matching. For work experience entries that are not paired through entity linking, a pre-trained language model is used to calculate the semantic similarity of company names, and work experiences with semantic similarity greater than a preset semantic similarity threshold are paired. The semantic similarity threshold for company names can be set to a fixed value in the range of 0.75 to 0.95, or it can be dynamically adjusted according to the length difference between the two paired company names. For the paired work experience entries, further calculate their time interval overlap and job name similarity: where time interval overlap is defined as the ratio of the intersection length to the union length of the time intervals of two work experiences, and job name similarity can be achieved using character edit distance similarity or semantic vector cosine similarity. When the time interval overlap of a pair of work experiences exceeds a preset overlap threshold, and the job title similarity is less than a preset job title similarity threshold, the pair is marked as a time conflict, and the total number of all time conflicts is counted. The overlap threshold can be set to a value in the range of 0.3 to 0.7, and the job title similarity threshold can be set to a value in the range of 0.4 to 0.7. The actual meaning of the feature of the number of time conflicts is: the number of work experience pairs in two resumes where the time intervals overlap but the job descriptions are significantly different. Such conflicts may reflect adjustments or deliberate concealment of experience information when the same candidate modifies their resume, or they can be used to distinguish between resumes that are semantically similar but actually belong to different candidates.
[0024] S4: Perform string normalization on the contact information fields of both resumes, and calculate the contact information matching result based on the normalized result. The string normalization operation adopts differentiated processing logic for different contact information types: remove all non-numeric characters for mobile phone numbers, remove leading and trailing spaces for email addresses and convert them to lowercase letters, and remove all non-numeric characters for landline numbers. The contact information matching result can be represented in Boolean form or set as a multi-level matching level. This scheme adopts priority matching logic: as long as the mobile phone number matches successfully, the contact information matching result is directly determined to be true; if the mobile phone number fails to match but the email address matches successfully, it is also determined to be true; if both the mobile phone number and email address fail to match but the landline number matches successfully, it is still determined to be true; if all three types of contact information fail to match, it is determined to be false. The contact information matching result, as a strong identifying feature, has a high confidence weight in duplicate judgment. The four features calculated above—work experience sequence alignment similarity, education experience sequence alignment similarity, number of time conflict items, and contact information matching result—are concatenated to form a unified feature vector, which is input into the trained binary classification model, and finally outputs the duplicate probability of the two resumes. Binary classification models can utilize gradient boosting decision trees, random forests, logistic regression, or neural network classifiers. During model training, historically labeled duplicate and non-duplicate resume pairs are used as training samples, and class imbalance is addressed specifically. Each dimension of the feature vector can be normalized or standardized before being input into the model to eliminate the impact of differences in the dimensions of different features on the model's prediction results.
[0025] S5: Compare the duplication probability output by the model with a preset judgment threshold. If the duplication probability is greater than the judgment threshold, the two resumes are judged as duplicate resumes and merged; otherwise, they are judged as non-duplicate resumes and retained separately. The judgment threshold can be set to around 0.7, or it can be adaptively determined based on the duplication probability distribution of historically confirmed duplicate resume pairs. To reduce the risk of misjudgment of boundary samples, a dual-threshold judgment mechanism can be adopted: set a first judgment threshold and a second judgment threshold, where the second judgment threshold is greater than the first judgment threshold; when the duplication probability is greater than the second judgment threshold, it is directly judged as a duplicate resume and automatically merged; when the duplication probability is less than the first judgment threshold, it is directly judged as a non-duplicate resume and retained separately; when the duplication probability is between the two thresholds, the resume pair is marked as a sample to be reviewed and transferred to the manual review process or further judgment using other review models. In the duplicate resume merging stage, the resume with more complete field information can be selected as the main resume, and the missing field information in the other resume can be supplemented into the main resume. Alternatively, a duplication relationship mapping can be established only in the resume database to avoid information loss caused by physical deletion. For resume pairs that are determined to be non-duplicate, a non-duplicate tag can be added to the database to avoid duplicate verification in subsequent processes.
[0026] This method integrates multiple technical modules, including structured resume text extraction, semantic alignment of experience sequences, detection of company entity links and time conflicts, standardized matching of contact information, and probabilistic prediction using classification models, to achieve the fusion and utilization of multi-dimensional features. Even in scenarios where resumes lack contact information or candidates change their contact information, it can still accurately identify duplicate resumes based on experience semantic information and time features. Simultaneously, by introducing time conflict features, it effectively reduces the probability of misclassifying resumes that are semantically similar but actually belong to different candidates. The overall solution significantly improves the accuracy and robustness of resume deduplication, effectively reducing the workload of manual review in recruitment scenarios, lowering resume screening costs, and improving the data quality of the talent pool.
[0027] In another technical solution, step S1 specifically includes: For each resume, layout analysis is performed to obtain the location information and text content of each text block. Layout analysis can identify the layout structure of text areas, table areas, image areas, etc. in the resume. The location information includes the boundary coordinates of the text blocks, page number, and reading order. Layout analysis methods can be rule-based, such as dividing text blocks according to layout features and line detection; or they can use deep learning-based layout analysis models, such as the layout analysis module of the LayoutLM series of models. For image-based resumes, OCR recognition is performed first, and the recognition results are combined with the text location information to form text blocks with location annotations. The output of layout analysis includes the text content of each text block and its spatial coordinates on the page, which can convert unstructured resumes into a set of structured text blocks with spatial location annotations, effectively solving the problem of disordered field order in multi-column resumes and table resumes.
[0028] The location information and text content of each text block are input into a pre-trained layout-aware language model, which outputs the block category of each text block. These block categories include contact information blocks, work experience blocks, and education experience blocks. The pre-trained layout-aware language model can be LayoutLM, LayoutLMv2, LayoutXLM, or LiLT, etc. These models, in addition to receiving text content input, can incorporate the location embedding information of the text blocks, utilizing spatial location features to improve the accuracy of block classification. Location information can be normalized to page coordinates, concatenated with the text content, and input into the model. The model outputs the block category to which each text block belongs. Block categories can also be expanded to include personal information blocks, project experience blocks, skills blocks, self-introduction blocks, etc. Text blocks whose categories cannot be clearly identified can be marked as unknown blocks.
[0029] The resume text is divided into contact information, work experience, and education experience sections based on block categories. Field extraction is then performed on each of these sections to obtain contact information, work experience sequences, and education experience sequences. Each item in the work experience sequence includes the company name, job title, start date, and end date; each item in the education experience sequence includes the school name, major, start date, and end date. When dividing the text into sections, consecutive text blocks belonging to the same category are merged into one section; if blocks of the same category appear scattered across the page, they can be grouped according to the reading order. For contact information, regular expressions are used to match mobile phone numbers, email addresses, and landline numbers, combined with a named entity recognition model to extract the contact person's name. For work experience, a sequence labeling model or a pre-trained language model with a linear classifier is used to label the company name, job title, start date, and end date. If an experience item does not explicitly indicate an end date, it can be recorded as "to date." The same field extraction logic is used for the education experience section to obtain the school name, major, start date, and end date. After the fields are extracted, they are organized into work experience sequences and education experience sequences according to the time sequence. The field information in each text segment is structured into a standardized sequence to ensure that subsequent steps can obtain consistent work experience and education experience data.
[0030] This technical solution combines layout analysis and block classification to adapt to resumes with complex layouts such as multi-column and tables. It effectively reduces the problems of field misalignment and disordered order across blocks, improves the completeness of extracting contact information, work experience sequence, and education experience sequence, and provides more accurate input data for subsequent deduplication and verification.
[0031] In another technical solution, step S2 involves obtaining the alignment similarity of work experience sequences, including: The semantic vectors of work experience are L2 normalized. The cosine similarity between any two semantic vectors of work experience in the two resumes is calculated, constructing an item-by-item similarity matrix. The semantic vectors of work experience are independently encoded by a pre-trained language model for each work experience, with vector dimensions of 768 or 1024. L2 normalization divides each vector by its L2 norm, unifying the vector magnitude to 1. This allows the cosine similarity to be directly calculated using the vector dot product, reducing computational complexity and eliminating the interference of vector length differences on similarity calculation. If the two resumes contain m and n work experiences respectively, an m×n similarity matrix is constructed, where the element in the i-th row and j-th column corresponds to the cosine similarity between the i-th work experience in the first resume and the j-th work experience in the second resume.
[0032] Based on the item-by-item similarity matrix of the aforementioned work experiences, the Smith-Waterman local alignment algorithm is applied. By setting matching scores, mismatch scores, and gap penalty parameters, dynamic programming is used to obtain the maximum alignment path and the number of matching work experience items. The Smith-Waterman algorithm constructs a score matrix and a backtracking matrix, and finds the local matching path with the highest global score while allowing gap insertion. In practical applications, the matching score can be directly taken from the element values of the similarity matrix, the mismatch score can be set to a small positive number or 0, and the gap penalty can be set to a negative number between -0.1 and -0.5 to suppress excessive gap insertion. The algorithm backtracks from the position of the maximum value of the score matrix, and the maximum alignment path obtained corresponds to experience pairs with high similarity that are matched in terms of time or semantics. The number of matching item pairs on the path is the number of matching work experience items. Because this algorithm supports local matching, even if there are differences in the number of work experiences in the two resumes, or if there are additions or deletions of experiences, optimal subsequence alignment can still be achieved.
[0033] The work experience sequence alignment similarity is obtained by dividing the sum of the cosine similarities of all matches along the maximum alignment path by the number of matched work experience items. The education experience sequence is processed using the same sequence alignment procedure to obtain its alignment similarity. This mean-squared processing is equivalent to calculating the average similarity of the matched items, eliminating the influence of differences in the number of work experiences between the two resumes on the final similarity result, ensuring the similarity value remains stable within the range of 0 to 1. If the number of matched work experience items is 0, the work experience sequence alignment similarity is directly defined as 0. The processing flow for the education experience sequence is exactly the same as for the work experience: first, it is encoded into a semantic vector; then, an item-by-item similarity matrix is calculated; subsequently, the Smith-Waterman local alignment algorithm is applied to obtain the maximum alignment path and the number of matched items; finally, the average similarity is calculated.
[0034] This technical solution, through a combination of L2 normalization, cosine similarity matrix construction, and Smith-Waterman local alignment, can accurately capture the semantic correspondence between work experience and educational experience. It is compatible with scenarios involving adjustment of experience order and local matching, making the sequence alignment similarity results more realistically reflect the consistency of the professional and educational backgrounds of the two resumes, and effectively reducing the similarity calculation bias caused by differences in the number of experience items or adjustment of their order.
[0035] In another technical solution, before forming the work experience item-by-item similarity matrix, the following is also included: First, extract the start and end times of each work experience in the work experience sequence of each resume. This time information can be directly obtained from the work experience field extracted in step S1, and is usually presented in year-month format, such as "June 2018" or "2018-06". To facilitate subsequent numerical calculations, the times need to be uniformly converted into a numerical form in months: the start time is recorded as the start month, and the end time is recorded as the end month; if the end time is marked as "to date", then the month corresponding to the current time is taken as the end month. After the above processing, each work experience corresponds to a unique time interval, which is used to calculate the overlap of different work experiences in the time dimension.
[0036] For any two work experiences in two resumes, the overlap of the time intervals is calculated by dividing the intersection length by the union length. This overlap can be calculated using the IoU (Intersection over Union) formula, which is the intersection length divided by the union length. The intersection length equals the difference between the smaller end time and the larger start time of the two intervals; if this difference is less than or equal to 0, the intersection length is 0, indicating no overlap in time between the two work experiences. The union length equals the sum of the lengths of the two intervals minus the intersection length. The overlap value ranges from 0 to 1, with a higher value indicating a greater degree of overlap. For example, one resume records work at Company A from January 2018 to January 2020, and another resume records work at Company B from January 2019 to January 2021. The intersection length is 12 months, and the union length is 36 months, corresponding to an overlap of 0.33. By calculating the overlap of time intervals, it is possible to effectively determine whether two work experiences occurred within the same time period.
[0037] The cosine similarity of two work experiences is multiplied by the overlap in their time intervals to obtain a weighted cosine similarity. A work experience item-by-item similarity matrix is then constructed based on this weighted cosine similarity, and the Smith-Waterman local alignment algorithm is applied to this matrix. The cosine similarity is derived from the cosine value of the semantic vectors of the two work experiences, while the overlap in the time intervals serves as a weighting factor: if two work experiences have no temporal overlap, the overlap is 0, and the corresponding weighted cosine similarity is also 0. In this case, even if the semantic similarity of the two experiences is high, they will not be considered a match during sequence alignment. If the temporal overlap is high, the weighted cosine similarity is close to the original cosine similarity, and work experiences that match in both semantic and temporal dimensions will receive a higher matching score. Inputting the weighted similarity matrix into the Smith-Waterman alignment algorithm further suppresses erroneous matches across time intervals. This fusion process does not require setting an additional threshold; effective fusion of temporal and semantic information can be achieved directly through multiplication operations.
[0038] In another technical solution, step S3, the process of linking the company name to an entity, includes: Each company name undergoes preprocessing to remove suffixes from a pre-defined set of company name suffixes, resulting in the core words of the company name. This set of company name suffixes can cover various common corporate organizational forms such as "Limited Company," "Joint-Stock Company," "Limited Liability Company," "Group Limited Company," "Technology Company," "Information Technology Company," and "Network Technology Company," and can be flexibly configured according to the naming conventions of different industries and regions. The core objective of suffix removal is to strip away the generic expressions identifying the company type from the company name, retaining only the core name portion with unique distinguishing significance. For example, after suffix removal, "ABCC Network Technology Co., Ltd." yields the core word "ABCC Network Technology." The suffix removal operation is implemented through string matching and truncation logic: if a company name ends with a certain suffix, that suffix is removed; if a company name matches multiple suffixes, the longest suffix is removed first, simplifying the original company name to the uniformly formatted core words.
[0039] The processed company name core words are matched against a pre-built company entity dictionary. When a unique match exists in the dictionary, the company name is directly linked to the corresponding company entity identifier. The company entity dictionary is a pre-built standardized database storing standard company names and their unique corresponding company entity identifiers. The matching method uses exact string matching logic, requiring the company name core words to be completely identical to the standard company name core words stored in the dictionary. When multiple matches exist in the dictionary, the Levenshtein edit distance (edit distance refers to the minimum number of single-character edit operations required to convert one string to another, including insertion, deletion, and replacement) between the company name to be processed and the corresponding standard company name of each match is calculated. The edit distance threshold can be set to an integer from 1 to 3. If the minimum edit distance among multiple matches is less than the set threshold, the company name is linked to the company entity identifier of the match with the minimum edit distance; otherwise, the company name is determined not to have passed entity linking. Similarly, when no matches exist in the dictionary, the company name is also determined not to have passed entity linking. This step, through a multi-level matching strategy, can simultaneously cover three scenarios: exact matching, approximate matching, and no matching. The entity linking process maps company names from their original written form to a unified entity identifier, effectively handling complex scenarios such as differences in company name suffixes, minor spelling variations, and multiple matching candidates. For company names that fail entity linking, subsequent steps employ semantic similarity calculations for fallback matching, preventing omissions in work experience matching due to limited dictionary coverage. This technical solution significantly improves the coverage and accuracy of company name entity linking through a three-level progressive processing logic, reducing link failures caused by differences in company type suffixes or spelling errors.
[0040] In another technical solution, step S3, which involves calculating the semantic similarity of company names using a pre-trained language model, includes the following methods: The model takes the company names corresponding to work experiences not linked by entities as input, and outputs corresponding semantic vectors of company names trained through contrastive learning. This model maps company name text in different written forms to a unified vector representation, making different names belonging to the same company entity closer together in the vector space, and names belonging to different company entities farther apart. The model uses a pre-trained language model as the basic encoder and is trained on a large-scale company name dataset through contrastive learning. After inputting a company name, it outputs a semantic vector of fixed dimensions, with optional dimensions of 768 or 1024.
[0041] Calculate the cosine similarity between the semantic vectors of company names corresponding to work experiences in two resumes that are not linked by entities. This cosine similarity is used as the semantic similarity of company names. The cosine similarity is obtained by dividing the dot product of the two vectors by the product of their magnitudes. The value ranges from -1 to 1, and the result for company name semantic vectors usually falls within the range of 0 to 1. A higher similarity indicates a stronger semantic connection between the two company names, and vice versa.
[0042] The process involves obtaining the length difference between the company names to be matched in two resumes and setting a dynamic semantic similarity threshold based on this difference. The threshold increases in tandem with the length difference. Here, the length difference refers to the absolute value of the difference in the number of characters between the two company names. When the length difference between the two names is significant, one is usually an abbreviation, shorthand, or incomplete description, while the other is the full name. In this case, the similarity threshold needs to be increased to determine that they refer to the same company entity, avoiding mismatches between different companies. The dynamic threshold starts with a base threshold, which can be set between 0.75 and 0.9. For every 1 increase in the length difference, the threshold increases by 0.01 to 0.03. For example, when the difference is 0, the base threshold is used, and for every additional character, the threshold increases by 0.02. Alternatively, the threshold can be flexibly calculated based on the length difference using a linear function or a piecewise function. This step dynamically adjusts the judgment threshold to adapt the strictness of semantic matching to the name length difference feature.
[0043] Work experiences with semantic similarity to company names exceeding a dynamic threshold are paired. The pairing operation targets work experiences in two resumes not linked by entity links, establishing a pairing relationship only when the similarity exceeds the dynamic threshold. Paired work experiences, along with those linked by entity links, are then included in subsequent calculations of time interval overlap and job name similarity. This technical solution combines a semantic representation model with a dynamic threshold mechanism to provide fallback pairing capabilities for company names not covered by entity links. This improves the pairing coverage of company name aliases, abbreviations, and various spelling variations, while also adapting to name length differences through a dynamic threshold, effectively reducing the risk of mispairing due to excessive length variations.
[0044] In another technical solution, the company name semantic representation model is trained in the following way: Company names are collected from historical resumes, and entity linking is performed on each company name to obtain the corresponding company entity identifier. Historical resumes can be sourced from talent pools of recruitment platforms, internal recruitment systems of enterprises, or publicly available resume datasets. Entity linking uses a combination of company entity dictionary matching and edit distance verification to map company names to unique company entity identifiers. Company names that cannot be linked to a valid company entity identifier can be discarded or individually labeled. Any two company names linked to the same company entity identifier are constructed as positive sample pairs, and any two company names linked to different company entity identifiers are constructed as negative sample pairs: the two company names in a positive sample pair may have different spellings but point to the same company entity; the two company names in a negative sample pair point to different company entities. When sampling sample pairs, positive samples are randomly sampled from the set of company names corresponding to the same company entity identifier, and negative samples are randomly sampled from the set of company names corresponding to different company entity identifiers.
[0045] A pre-trained language model is used to encode the two company names in both positive and negative sample pairs, obtaining corresponding semantic vectors for each company name. The pre-trained language model can use BERT, RoBERTa, or Sentence-BERT as initialization parameters. During encoding, special markers can be added before the company name text, and the vector corresponding to the special markers in the model output can be taken. Alternatively, pooling can be performed on all output vectors to obtain the final semantic vectors for each company name. The InfoNCE loss function is used to train the pre-trained language model. The training objective is to increase the cosine similarity between the semantic vectors of two company names in positive sample pairs and decrease the cosine similarity between the semantic vectors of two company names in negative sample pairs. The temperature parameter of the InfoNCE loss function can be set to a value in the range of 0.05 to 0.2, with a typical value of 0.1. During training, the parameters of the pre-trained language model are updated through backpropagation.
[0046] During training, a difficult negative sample mining process is performed on negative sample pairs: the character edit distance between the two company names in the negative sample pair is calculated, and negative sample pairs with a character edit distance less than the difficult negative sample threshold are selected for training. The difficult negative sample threshold can be set to 2. Negative sample pairs with small character edit distances usually have similar fonts but belong to different company entities. Such samples require higher discrimination ability from the model, and their participation in training can significantly enhance the model's ability to distinguish similar company names. After training, the semantic representation model of the company names is obtained. This technical solution trains the semantic representation model of company names by combining contrastive learning with difficult negative sample mining, enabling the model to effectively learn the deep semantic representation of company names, accurately distinguish similar but different company entities, and effectively improve the accuracy of subsequent semantic similarity calculations and the reliability of company name pairing.
[0047] In another technical solution, step S4, calculating the contact information matching result based on the normalized contact information, specifically includes: Contact information extracted from each resume includes three categories: mobile phone number, email address, and landline number. Mobile phone numbers typically consist of numbers, but may contain formatting characters such as spaces, hyphens, parentheses, or country code prefixes in the resume. For example, "138-0000-0000" and "+86 13800000000" may look different, but they actually correspond to the same mobile phone number. Email addresses consist of a local part and a domain part, and may differ in capitalization, leading and trailing spaces, or full-width characters in the resume. For example, "Abc@Example.com" and "abc@example.com" are essentially the same email address. Landline numbers typically include an area code, phone number, and extension number, and may contain formatting symbols such as parentheses, hyphens, or spaces. For example, "(010)8888-8888" and "01088888888" are actually the same number. To address the aforementioned format differences, this solution performs differentiated normalization processing on the three types of contact information: For mobile phone numbers, all non-numeric characters are removed to obtain a pure numeric string; for email addresses, leading and trailing spaces are removed and all uppercase letters are converted to lowercase to obtain a normalized email address string; for landline numbers, all non-numeric characters are removed to obtain a pure numeric string. These normalization operations can be achieved using regular expressions. For example, regular expression matching can be used to replace non-numeric characters in the original string with empty characters, or string processing functions can be called to remove spaces and convert email addresses to lowercase. Through normalization, matching interference caused by format differences can be effectively eliminated.
[0048] Consistency checks were performed on the three types of contact information in the two resumes after normalization: The normalized mobile phone numbers were compared for consistency, resulting in a mobile phone number match; the normalized email addresses were compared for consistency, resulting in an email address match; and the normalized landline numbers were compared for consistency, resulting in a landline number match. All three match results were Boolean values, representing whether the two resumes were completely identical in their corresponding contact information. String consistency checks employed a strict character-by-character comparison logic. Since normalization removed all format differences, the match result was true as long as the substantive content of the original number or email address was consistent. For the special scenario where landline numbers include extension numbers, directly removing all non-numeric characters would merge the extension number into the main number string, potentially leading to landline numbers with the same main number but different extension numbers being misjudged as mismatches. In this case, the main number portion could be truncated using a delimiter before removing non-numeric characters as an optional supplementary processing solution.
[0049] When considering the matching results of the three types of contact methods, a decreasing priority logic is adopted: if the mobile phone number matching result is true, the contact method matching result is directly determined to be true, and the other fields are not checked; if the mobile phone number matching result is false but the email matching result is true, the contact method matching result is determined to be true; if both the mobile phone number and email matching results are false, but the landline matching result is true, the contact method matching result is determined to be true; if all three types of contact method matching results are false, the contact method matching result is determined to be false. This priority setting is based on the unique differences among the three types of contact methods: mobile phone numbers have the strongest personal exclusivity, usually one number per person, and a successful match can serve as strong evidence of consistent contact information; email addresses are the next most unique, but one person may hold multiple email addresses; landlines may be shared by family or company, and have the weakest exclusivity, therefore their priority decreases accordingly. This judgment logic can be implemented through conditional statements or decision rules. The final contact method matching result will be used as one dimension of the feature vector, serving as a strong identifying feature in the subsequent calculation of the repetition probability in the binary classification model.
[0050] This technical solution employs targeted string normalization strategies for mobile phone numbers, email addresses, and landline numbers, and combines these with a priority order to comprehensively determine the contact information matching results. This effectively reduces the interference of factors such as differences in formatting and multiple people sharing contact information on the accuracy of the matching, making the contact information matching results more reliable in reflecting whether two resumes come from the same candidate.
[0051] In another technical solution, the binary classification model is trained in the following way: Obtain labeled pairs of duplicate and non-duplicate resumes as training samples. Labeled duplicate resume pairs refer to two resumes confirmed by manual review to belong to the same candidate, such as different versions of resumes submitted by the same candidate at different times. Labeled non-duplicate resume pairs refer to two resumes confirmed by manual review to belong to different candidates, such as resumes with the same name or similar experience but actually belonging to two different candidates. Training samples can be derived from historical deduplication review records, recruitment platform operational data, or manually labeled datasets. Each sample consists of two resumes and is labeled "duplicate" or "non-duplicate." The size and representativeness of the training samples directly determine the discrimination performance of the binary classification model. The sample set should cover different industries, different positions, and different resume formats to improve the model's generalization ability.
[0052] For each training sample, steps S2 to S4 are executed sequentially to obtain the corresponding feature vector. This feature vector is composed of four dimensions: work experience sequence alignment similarity, education experience sequence alignment similarity, number of time conflicts, and contact information matching result. Work experience sequence alignment similarity and education experience sequence alignment similarity are floating-point numbers between 0 and 1, representing the semantic alignment degree of the two resumes in terms of career trajectory and educational background, respectively. The number of time conflicts is a non-negative integer, representing the number of work experience pairs in the two resumes where the time intervals overlap but the job titles do not match. The contact information matching result is a Boolean value, representing whether the contact information of the two resumes matches. Before concatenation, the Boolean value needs to be converted to numerical form, with true values converted to 1 and false values converted to 0. The concatenation operation combines the above four values in a fixed order into a four-dimensional vector, for example, [work experience sequence alignment similarity, education experience sequence alignment similarity, number of time conflicts, contact information matching result]. Before inputting into the model, the features of each dimension can be standardized, for example, by performing a logarithmic transformation or normalization on the number of time conflicts to eliminate the influence of differences in units. This feature vector integrates three types of information: semantic, temporal, and strong identifier, providing a multi-dimensional basis for classification models.
[0053] Undersampling is performed on non-duplicate resume pairs to ensure the ratio of duplicate to non-duplicate resume pairs reaches a preset ratio. A typical preset ratio is 1:2, meaning one duplicate sample corresponds to two non-duplicate samples. Undersampling reduces the size of the non-duplicate sample set by randomly selecting a portion of the samples, preventing the model from biasing its prediction of non-duplicate classes due to imbalanced class distribution. A gradient boosting decision tree algorithm is used to train the feature vectors of the training samples, resulting in a binary classification model. The training process uses a cross-entropy loss function, and early stopping is used to determine the optimal number of iterations. Gradient boosting decision tree algorithms such as XGBoost, LightGBM, or CatBoost can be used, as these algorithms have excellent fitting capabilities for tabular features. The cross-entropy loss function measures the difference between the model's output duplicate probability and the true label; the training objective is to minimize this loss value. Early stopping terminates training when the validation set loss no longer decreases, preventing overfitting on the training set. After training, the binary classification model outputs a duplicate probability value between 0 and 1 for newly input resume pairs. This technical solution balances the class distribution of training samples through an undersampling strategy, and trains a binary classification model by combining a gradient boosting decision tree algorithm and an early stopping mechanism. This enables the model to have a more balanced discrimination ability between duplicate and non-duplicate samples, reduces prediction bias caused by class imbalance, and thus outputs more accurate duplicate probability determination results.
[0054] In another technical solution, step S5 specifically includes: Obtain the probability distribution of historically confirmed duplicate resume pairs. Set the 25th percentile of this distribution as the first judgment threshold and the 75th percentile as the second judgment threshold, with the second threshold being higher than the first. Historically confirmed duplicate resume pairs refer to resume pairs that have been manually reviewed or automatically determined to belong to the same candidate with high confidence. Collect the duplicate probability values of these resume pairs using a binary classification model to form a probability set. After sorting the probability set in ascending order, the 25th percentile represents the probability of 25% of historically confirmed duplicate resume pairs being lower than this value, the 75th percentile represents the probability of 75% of historically confirmed duplicate resume pairs being lower than this value, and only 25% of duplicate resume pairs have a probability higher than this threshold. If the number of historical duplicate samples is insufficient, empirical values can be used as initial thresholds, such as 0.4 for the first judgment threshold and 0.8 for the second judgment threshold, which can be dynamically adjusted as historical data accumulates.
[0055] Based on the aforementioned dual thresholds, the duplication probability of the two resumes is graded: if the duplication probability is greater than the second threshold, it indicates that the resumes are in the high-confidence interval of the historical duplication resume probability distribution, and can be directly identified as duplicates and merged. The error probability of automatic identification for such samples is extremely low. If the duplication probability is less than the first threshold, it indicates that the resumes are in the low-confidence interval of the historical duplication resume probability distribution, and both resumes can be retained without merging. If the duplication probability is between the first and second thresholds, it indicates that the resumes belong to the intermediate uncertainty interval, and it is difficult to make a reliable identification based solely on the model output. Therefore, both resumes are marked as pending review. By dividing the process into three processing intervals using dual thresholds, samples with high model confidence can be processed automatically, while only boundary samples with insufficient confidence are subject to manual review. This approach effectively reduces the misclassification rate of boundary samples while ensuring processing efficiency.
[0056] For resume pairs falling into the pending review range, the system will automatically output the differences between the two resumes in contact information, work experience sequence, and education experience sequence, and add the resume pair and corresponding differences to the manual review queue. The differences refer to specific inconsistencies in the structured fields of the two resumes, such as different phone numbers, different start and end dates of a work experience, or different school names for a specific educational experience. These differences are generated by comparing the structured data of the two resumes field by field. The manual review queue can be integrated with the review task system, allowing reviewers to view both resumes and their differences simultaneously in the interface, quickly determining whether the two resumes belong to the same candidate based on the differences. After the samples in the pending review queue are manually confirmed to obtain the final duplicate / non-duplicate determination results, they can be fed back into the training dataset for subsequent model iterations and updates.
[0057] This technical solution sets dual judgment thresholds by using historical repetition probability quantiles, clearly distinguishing between three processing scenarios: automatic merging, automatic retention, and manual review. This effectively reduces the misjudgment problem at the boundary when using a single fixed threshold. At the same time, by outputting structured difference items to assist manual review, it not only improves the accuracy and interpretability of deduplication judgment, but also allows limited manual review resources to be concentrated on boundary samples with higher uncertainty, achieving a balance between processing efficiency and judgment accuracy.
[0058] It should be noted that although the steps are described in a specific order above, this does not mean that they must be performed in that order. In fact, some of these steps can be executed concurrently, or even in a different order, as long as the required functionality is achieved. The number of devices and processing scale described herein are for simplification of the invention; applications, modifications, and variations of this invention will be readily apparent to those skilled in the art.
[0059] Although embodiments of the present invention have been disclosed above, they are not limited to the applications listed in the specification and embodiments. They can be applied to various fields suitable for the present invention. For those skilled in the art, other modifications can be easily made. Therefore, without departing from the general concept defined by the claims and their equivalents, the present invention is not limited to the specific details and illustrations shown and described herein.
Claims
1. A method for deduplicating and validating job resumes based on natural language processing, characterized in that, Includes the following steps: S1: Extract contact information, work experience sequence, and education experience sequence from each resume text; S2: Input the work experience sequence and education experience sequence of the two resumes into the pre-trained language model to obtain the work experience semantic vector and education experience semantic vector respectively. Based on the work experience semantic vector, perform sequence alignment on the work experience sequence to obtain the work experience sequence alignment similarity. Based on the education experience semantic vector, perform sequence alignment on the education experience sequence to obtain the education experience sequence alignment similarity. S3: Link company names in the work experience sequences of two resumes to entities, and pair work experiences linked to the same company entity; for work experiences that are not paired through entity links, calculate the semantic similarity of company names using a pre-trained language model, and pair work experiences with semantic similarity greater than the semantic similarity threshold; calculate the time interval overlap and job name similarity for the paired work experiences. When the time interval overlap is greater than the overlap threshold and the job name similarity is less than the job name similarity threshold, the paired work experiences are recorded as time conflict items, and the number of time conflict items is counted. S4: Normalize the contact information in the two resumes, calculate the contact information matching result based on the normalized contact information; concatenate the work experience sequence alignment similarity, education experience sequence alignment similarity, number of time conflict items and contact information matching result into a feature vector, and input it into the trained binary classification model to obtain the repetition probability; S5: Compare the duplication probability with the judgment threshold. If the duplication probability is greater than the judgment threshold, the two resumes are judged as duplicate resumes and merged; otherwise, the two resumes are kept.
2. The method for deduplication and verification of job resumes based on natural language processing according to claim 1, characterized in that, Step S1 specifically includes: Each resume text is analyzed for layout to obtain the position information and text content of each text block; the position information and text content of each text block are input into a pre-trained layout-aware language model to output the block category of each text block, which includes contact information block, work experience block, and education experience block; the resume text is divided into contact information text segment, work experience text segment, and education experience text segment according to the block category. Fields are extracted from the contact information text segment, work experience text segment, and education experience text segment respectively to obtain contact information, work experience sequence, and education experience sequence. Each item in the work experience sequence includes company name, job name, start time, and end time. Each item in the education experience sequence includes school name, major name, start time, and end time.
3. The method for deduplication and verification of job resumes based on natural language processing according to claim 1, characterized in that, In step S2, the methods for obtaining the alignment similarity of work experience sequences include: L2 normalization is performed on the semantic vectors of work experience. The cosine similarity between any two semantic vectors of work experience in the work experience sequences of two resumes is calculated to form a work experience item-by-item similarity matrix. The Smith-Waterman local alignment algorithm is applied to the work experience item-by-item similarity matrix, and matching scores, mismatch scores and gap penalties are set. The maximum alignment path of work experience and the number of matching work experience items are obtained through dynamic programming. The cosine similarity sum of each matching item on the longest alignment path of work experience is divided by the number of matching work experience items to obtain the work experience sequence alignment similarity; the same sequence alignment operation is performed on the education experience sequence to obtain the education experience sequence alignment similarity.
4. The method for deduplication and verification of job resumes based on natural language processing according to claim 3, characterized in that, Before generating the item-by-item similarity matrix of work experience, the following steps are also included: Extract the start and end times of each work experience in the work experience sequence of each resume; for any two work experiences in the work experience sequences of two resumes, calculate the ratio of the intersection length to the union length between the time intervals of the two work experiences to obtain the time interval overlap. The cosine similarity between two work experiences is multiplied by the overlap of the time intervals to obtain a weighted cosine similarity. The work experience item-by-item similarity matrix is then constructed using the weighted cosine similarity. Finally, the Smith-Waterman local alignment algorithm is applied to the work experience item-by-item similarity matrix.
5. The method for deduplication and verification of job resumes based on natural language processing according to claim 1, characterized in that, Step S3, the process of creating entity links for the company name, includes: For each company name, remove suffixes from the preset set of company name suffixes to obtain the core words of the company name. Match the core words of the company name with the company entity dictionary. When there is a unique match in the company entity dictionary, link the company name to the company entity identifier corresponding to the match. When there are multiple matches in the company entity dictionary, calculate the edit distance between the company name and the standard company name corresponding to each match. If the minimum edit distance is less than the edit distance threshold, link the company name to the company entity identifier of the match with the minimum edit distance; otherwise, determine that the company name has not passed the entity link. When there is no match in the company entity dictionary, determine that the company name has not passed the entity link.
6. The method for deduplication and verification of job resumes based on natural language processing according to claim 5, characterized in that, In step S3, the methods for calculating the semantic similarity of company names using a pre-trained language model include: The company names from work experiences without entity links are input into the semantic representation model of company names trained by contrastive learning to obtain semantic vectors of company names; the cosine similarity between the semantic vectors of company names from work experiences without entity links in two resumes is calculated as the semantic similarity of company names; the length difference of company names from work experiences without entity links in two resumes is obtained, and a dynamic semantic similarity threshold for company names is set based on the length difference, increasing the dynamic semantic similarity threshold as the length difference increases; work experiences with semantic similarity greater than the dynamic semantic similarity threshold of company names are paired.
7. The method for deduplication and verification of recruitment resumes based on natural language processing according to claim 6, characterized in that, The company name semantic representation model is trained in the following way: The process involves collecting company names from historical resumes and linking each company name to obtain a company entity identifier. Any two company names linked to the same entity identifier are considered positive sample pairs, while any two company names linked to different entity identifiers are considered negative sample pairs. A pre-trained language model is used to encode the two company names in each positive sample pair, resulting in two semantic vectors. Similarly, a pre-trained language model is used to encode the two company names in each negative sample pair, also resulting in two semantic vectors. The pre-trained language model is trained using the InfoNCE loss function to increase the cosine similarity between the semantic vectors of the two company names in the positive sample pairs and decrease the cosine similarity between the semantic vectors of the two company names in the negative sample pairs. During training, a hard negative sample mining process is performed on the negative sample pairs, calculating the character edit distance between the two company names in each negative sample pair. Negative sample pairs with a character edit distance less than the hard negative sample threshold are selected for training. After training, a semantic representation model of the company name is obtained.
8. The method for deduplication and verification of job resumes based on natural language processing according to claim 1, characterized in that, In step S4, calculating the contact information matching result based on the normalized contact information specifically includes: The contact information extracted from each resume text includes mobile phone number, email address, and landline number; all non-numeric characters are removed from the mobile phone number, leading and trailing spaces are removed from the email address and all uppercase letters are converted to lowercase, and all non-numeric characters are removed from the landline number to obtain the standardized contact information. The system calculates whether the normalized mobile phone numbers in the two resumes are the same, obtaining the mobile phone number matching result; it calculates whether the normalized email addresses in the two resumes are the same, obtaining the email address matching result; it calculates whether the normalized landline numbers in the two resumes are the same, obtaining the landline number matching result; if any one of the mobile phone number matching result, email address matching result, or landline number matching result is true, the contact information matching result is determined to be true; otherwise, the contact information matching result is false.
9. A method for deduplicating and validating job resumes based on natural language processing according to claim 8, characterized in that, The binary classification model is trained in the following way: Obtain duplicate and unique resume pairs as training samples; for each training sample, obtain a feature vector according to steps S2 to S4. The feature vector is composed of the similarity of work experience sequence alignment, the similarity of education experience sequence alignment, the number of time conflicts, and the contact information matching results; undersample the unique resume pairs to make the ratio of duplicate resume pairs to unique resume pairs reach a set ratio; use the gradient boosting decision tree algorithm to train the feature vector of the training samples to obtain a binary classification model. During the training process, the cross-entropy loss function is used and the number of iterations is determined by the early stopping method.
10. A method for deduplicating and validating job resumes based on natural language processing according to claim 1, characterized in that, Step S5 specifically includes: Obtain the duplication probability distribution of historically confirmed duplicate resume pairs. Use the first quantile of the duplication probability distribution as the first judgment threshold and the third quantile as the second judgment threshold, where the second judgment threshold is greater than the first judgment threshold. When the duplication probability of the current two resumes is greater than the second judgment threshold, the current two resumes are judged as duplicate resumes and merged. When the duplication probability of the current two resumes is less than the first judgment threshold, the current two resumes are retained. When the duplication probability of the current two resumes is greater than or equal to the first judgment threshold and less than or equal to the second judgment threshold, the current two resumes are marked as pending review, and the differences in contact information, work experience sequence, and education experience sequence between the current two resumes are output. The two resumes pending review and the differences are added to the manual review queue.
