DSatishchandra commited on
Commit
ec6fe1a
·
verified ·
1 Parent(s): ee22fed

Create modules/profile_matcher.py

Browse files
Files changed (1) hide show
  1. modules/profile_matcher.py +6 -0
modules/profile_matcher.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+
3
+ def match_profiles(resume_text, job_description):
4
+ classifier = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")
5
+ result = classifier(resume_text, candidate_labels=[job_description])
6
+ return result['scores'][0] > 0.7