def main(): #webJobInfoCollName: test_jobinfo resume = loadResume( "..\\..\\..\\data\\test_resumes\\Darin-Densley_web.txt") resume = loadResume("..\\..\\..\\data\\test_resumes\\Java-Developer.txt") resume = loadResume("..\\..\\..\\data\\test_resumes\\Fong-Kuo_data.txt") # resume = loadResume(resumepath) # print resume dbClient = DbClient('localhost', 27017, "jobaly") jobCollection = dbClient.getCollection("job100") okpai = Okapi(jobCollection) jobs = okpai.matchResume(resume) for job in jobs: print job["_id"], job["score"]
def main(): #webJobInfoCollName: test_jobinfo resume = loadResume( "..\\..\\..\\data\\test_resumes\\Darin-Densley_web.txt" ) resume = loadResume("..\\..\\..\\data\\test_resumes\\Java-Developer.txt") resume = loadResume("..\\..\\..\\data\\test_resumes\\Fong-Kuo_data.txt") # resume = loadResume(resumepath) # print resume dbClient = DbClient('localhost', 27017, "jobaly") jobCollection = dbClient.getCollection("job100") okpai = Okapi(jobCollection) jobs = okpai.matchResume(resume) for job in jobs: print job["_id"], job["score"]
def main(): #webJobInfoCollName: test_jobinfo resume = loadResume("..\\..\\..\\data\\test_resumes\\Darin-Densley_web.txt") # resume = loadResume("..\\..\\..\\data\\test_resumes\\Java-Developer.txt") # resume = loadResume("..\\..\\..\\data\\test_resumes\\Fong-Kuo_data.txt") # print resume # resume = "I a am good java programmer, PHP, XML, hope juse c++, skill" dbClient = DbClient('localhost', 27017, "jobaly") jobCollection = dbClient.getCollection("job100") kl = KL(jobCollection) jobs = kl.matchResume(resume) for job in jobs: print job["_id"], job["score"]
def main(): #webJobInfoCollName: test_jobinfo resume = loadResume( "..\\..\\..\\data\\test_resumes\\Darin-Densley_web.txt") # resume = loadResume("..\\..\\..\\data\\test_resumes\\Java-Developer.txt") # resume = loadResume("..\\..\\..\\data\\test_resumes\\Fong-Kuo_data.txt") # print resume # resume = "I a am good java programmer, PHP, XML, hope juse c++, skill" dbClient = DbClient('localhost', 27017, "jobaly") jobCollection = dbClient.getCollection("job100") kl = KL(jobCollection) jobs = kl.matchResume(resume) for job in jobs: print job["_id"], job["score"]