jonathanjordan21 commited on
Commit
223a758
·
verified ·
1 Parent(s): 1a04d9e

Update parser.py

Browse files
Files changed (1) hide show
  1. parser.py +14 -14
parser.py CHANGED
@@ -11,22 +11,22 @@ model = AutoModelForCausalLM.from_pretrained(
11
  device_map="auto"
12
  )
13
 
14
- parsing = [
15
- {"name":"education", "type":"List[str]","description":"attended school, university, and other education programs"},
16
- {"name":"experience", "type":"float", "description":"years of experience"},
17
- {"name":"skills", "type":"List[str]", "description":"list of skills"},
18
- {"name":"name", "type":"str", "description":"name of the person"},
19
- {"name":"location", "type":"str", "description":"location of the person"},
20
- {"name":"email", "type":"str", "description":"email of the person"},
21
- {"name":"websites", "type":"List[str]", "description":"urls related of the person"},
22
- {"name":"certifications", "type":"List[str]", "description":"list of certifications"},
23
- {"name":"languages", "type":"List[str]", "description":"list of languages"},
24
- {"name":"projects", "type":"List[str]", "description":"list of projects"},
25
- {"name":"note", "type":"str", "description":"additional note which highlight the best or uniqueness of the person"}
26
- ]
27
 
28
 
29
- def parse_resume(parsing, resume):
30
  format_parsing = [f"{x['name']} : {x['type']} = {x['description']}\n" for x in parsing]
31
 
32
  prompt = f"""Based on the below resume, tell me the summary details of skills, name, experience years, education, etc in short
 
11
  device_map="auto"
12
  )
13
 
14
+ # parsing = [
15
+ # {"name":"education", "type":"List[str]","description":"attended school, university, and other education programs"},
16
+ # {"name":"experience", "type":"float", "description":"years of experience"},
17
+ # {"name":"skills", "type":"List[str]", "description":"list of skills"},
18
+ # {"name":"name", "type":"str", "description":"name of the person"},
19
+ # {"name":"location", "type":"str", "description":"location of the person"},
20
+ # {"name":"email", "type":"str", "description":"email of the person"},
21
+ # {"name":"websites", "type":"List[str]", "description":"urls related of the person"},
22
+ # {"name":"certifications", "type":"List[str]", "description":"list of certifications"},
23
+ # {"name":"languages", "type":"List[str]", "description":"list of languages"},
24
+ # {"name":"projects", "type":"List[str]", "description":"list of projects"},
25
+ # {"name":"note", "type":"str", "description":"additional note which highlight the best or uniqueness of the person"}
26
+ # ]
27
 
28
 
29
+ def parse_resume(resume, parsing):
30
  format_parsing = [f"{x['name']} : {x['type']} = {x['description']}\n" for x in parsing]
31
 
32
  prompt = f"""Based on the below resume, tell me the summary details of skills, name, experience years, education, etc in short