-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskill_analyzer.py
More file actions
66 lines (46 loc) · 1.04 KB
/
Copy pathskill_analyzer.py
File metadata and controls
66 lines (46 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import json
skills_database = [
"Python",
"Machine Learning",
"Deep Learning",
"TensorFlow",
"SQL",
"Docker",
"AWS",
"Statistics",
"Pandas",
"HTML",
"CSS",
"JavaScript",
"React",
"Git",
"Networking",
"Linux",
"Wireshark",
"Nmap",
"SIEM",
"Incident Response"
]
def extract_skills(text):
found_skills = []
for skill in skills_database:
if skill.lower() in text.lower():
found_skills.append(skill)
print("Found skills:", found_skills)
return found_skills
def analyze_resume(goal, resume_skills):
with open("data/career_skills.json", "r") as f:
career_data = json.load(f)
required_skills = career_data[goal]
matched = []
missing = []
for skill in required_skills:
if skill in resume_skills:
matched.append(skill)
else:
missing.append(skill)
score = round(
(len(matched) / len(required_skills)) * 100,
2
)
return score, matched, missing