Skip to content

Commit f7e9af3

Browse files
authored
Merge pull request #6 from lakshmanaram/master
Added job titles and categories
2 parents fef5c8b + f19ad9f commit f7e9af3

11 files changed

+2221
-63
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,5 @@ ENV/
8989
.ropeproject
9090

9191
# test Resume
92-
data/input/test*
92+
cvscan/data/sample/test*
9393

94-
# data file used for addresses
95-
data/address/locdetails_15feb16_4.csv

cvscan/__init__.py

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ def parse(self):
4343
self.phone_numbers = details_parser.fetch_phone(self.raw_text)
4444
self.address = details_parser.fetch_address(self.raw_text)
4545
self.experience = details_parser.calculate_experience(self.raw_text)
46-
self.skills = language_parser.clean_resume(self.raw_text)
46+
self.cleaned_resume = language_parser.clean_resume(self.raw_text)
47+
self.skills = language_parser.fetch_skills(self.cleaned_resume)
48+
self.job_positions, self.category = details_parser.fetch_jobs(self.cleaned_resume)
49+
4750

4851
# TODO: Add more fetch here
4952
def show(self):
@@ -53,30 +56,7 @@ def show(self):
5356
"phone_numbers" : self.phone_numbers,
5457
"emails" : self.emails,
5558
"urls" : self.URLs,
56-
"skills" : self.skills
57-
}
58-
# print '==================================================================='
59-
# print '\nURLs'
60-
# print '-------------------------------------------------------------------'
61-
# print self.URLs
62-
# print '==================================================================='
63-
# print '\nPhone numbers'
64-
# print '-------------------------------------------------------------------'
65-
# print self.phone_numbers
66-
# print '==================================================================='
67-
# print '\nEmails'
68-
# print '-------------------------------------------------------------------'
69-
# print self.email
70-
# print '==================================================================='
71-
# print '\nAddress'
72-
# print '-------------------------------------------------------------------'
73-
# print self.address
74-
# print '==================================================================='
75-
# print '\nExperience'
76-
# print '-------------------------------------------------------------------'
77-
# print str(self.experience) + " years"
78-
# print '==================================================================='
79-
# print '\nSkills'
80-
# print '-------------------------------------------------------------------'
81-
# print self.skills
82-
# print '==================================================================='
59+
"skills" : self.skills,
60+
"jobs" : self.job_positions,
61+
"job category" : self.category
62+
}

cvscan/annotations_parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def fetch_pdf_urls(file_name):
4444
for link_object in link_object_list:
4545
if type(link_object) is not dict:
4646
link_object = link_object.resolve()
47-
links.append(link_object['A']['URI'])
47+
if link_object['A']['URI']:
48+
links.append(link_object['A']['URI'])
4849
file_pointer.close()
4950
return links
5051

cvscan/cli/cli.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,18 @@ def main():
2121
@main.command()
2222
@click.option('--name', '-n', help='Redis key to be watched')
2323
def parse(name):
24-
"""Watching Redis for key."""
25-
resume = Cvscan(name)
26-
resume.parse()
27-
pprint.pprint(resume.show(), width=1)
24+
"""Watching Redis for key."""
25+
resume = Cvscan(name)
26+
resume.parse()
27+
pprint.pprint(resume.show(), width=1)
28+
29+
# @main.command()
30+
# @click.option('--skill','-s', help="Enter skill to remove")
31+
# def remove_skill(skill):
32+
# if skill:
33+
# with open(dirpath.PKGPATH + '/data/skills/skills','rb') as fp:
34+
# skills = pickle.load(fp)
35+
# if skill not in skills:
36+
# print "%s is not present in skills" % skill
37+
# else:
38+
# skills.remove(skill)

0 commit comments

Comments
 (0)