cmrit / cmrithackathon-master /skill_matcher.py
Bhuvaneshvar's picture
Upload 2116 files
6370773 verified
raw
history blame
442 Bytes
def match_skills(user_skills, job_skills):
"""
Compares user skills with job skills and returns matching skills and missing skills.
"""
user_skills = {skill.strip().lower() for skill in user_skills}
job_skills = {skill.strip().lower() for skill in job_skills.split(',')}
matched_skills = user_skills.intersection(job_skills)
missing_skills = job_skills - user_skills
return matched_skills, missing_skills