dsresumatch.sections_check

Functions

missing_section(clean_text[, add_benchmark_sections])

Identifies the sections missing from the resume based on the benchmark sections.

Module Contents

dsresumatch.sections_check.missing_section(clean_text, add_benchmark_sections=None)[source]

Identifies the sections missing from the resume based on the benchmark sections.

clean_textstr

The text extracted from the resume.

add_benchmark_sectionslist of str or str, optional

A list of additional section names (e.g., “Skills”, “Education”, “Work Experience”, “Contact”) or a single section name as a string. Defaults to None. If a single string is provided, it will be treated as a list with one element.

list of str

A list of section names from the benchmark that are not present in the resume.

Example 1: With additional benchmark sections as a list

>>> clean_text = "Skills: Python, Machine Learning
Education: B.Sc. in CS”
>>> add_benchmark_sections = ["Work Experience", "Contact"]
>>> missing = missing_section(clean_text, add_benchmark_sections)
Output: ['Work Experience', 'Contact']

Example 2: With additional benchmark sections as a single string

>>> clean_text = "Skills: Python, Machine Learning
Education: B.Sc. in CS”
>>> add_benchmark_sections = "Projects"
>>> missing = missing_section(clean_text, add_benchmark_sections)
Output: ['Work Experience', 'Contact', 'Projects']

Example 3: Without additioinal benchmark sections

>>> clean_text = "Skills: Python, Machine Learning
Education: B.Sc. in CS”
>>> missing = missing_section(clean_text)
Output: ['Work Experience', 'Contact']