-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (23 loc) · 1.01 KB
/
main.py
File metadata and controls
33 lines (23 loc) · 1.01 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
from document import Document
import os
from briefcase import Briefcase
# GOAL
# Given a folder of resumes and a list of keywords, copy a subset of x resumes to a second folder with ranked filenames
# Create a text file describing the rankings and stats of the x resumes, and the reasoning behind their selection
# Task 1: rank resume objects
searchList = ["sQl", "python", "van", "degree"]
# # resume has function version
# briefcase = Briefcase("resumes", jobs_directory="jobs")
# for resume in briefcase.resumes:
# score = resume.frequency_match(briefcase.jobs[0].words)
# print(resume, score)
# briefcase has function version
# #print(briefcase.frequency_match(searchList, 4))
# winners = briefcase.proportion_match(briefcase.jobs[0].corpus, 5)
# for resume in winners:
# print(resume, resume.proportion_match)
#print(repr(weirdResume.corpus))
#print(normalResume.corpus)
briefcase = Briefcase(resumes_directory="resumes", jobs_directory="jobs")
matches = briefcase.greedy_proportion_matches()
print(matches)