dsresumatch.sections_check ========================== .. py:module:: dsresumatch.sections_check Functions --------- .. autoapisummary:: dsresumatch.sections_check.missing_section Module Contents --------------- .. py:function:: missing_section(clean_text, add_benchmark_sections=None) Identifies the sections missing from the resume based on the benchmark sections. Parameters ---------- clean_text : str The text extracted from the resume. add_benchmark_sections : list 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. Returns ------- list of str A list of section names from the benchmark that are not present in the resume. Examples -------- 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']