resume-parser / app /extractor.py
klakenyuo's picture
docker
0a49ebd
Raw
History Blame Contribute Delete
646 Bytes
# app/extractor.py
from app.utils import extract_emails, extract_phones
def extract_cv_structure(text):
structure = {
"name": "", # À détecter si possible
"phoneNumbers": extract_phones(text),
"websites": [], # TODO: via regex
"emails": extract_emails(text),
"dateOfBirth": "",
"addresses": [], # TODO: détection plus complexe
"summary": "",
"education": [], # TODO: NLP ou RAG
"workExperience": [], # TODO: NLP ou heuristiques
"skills": [], # TODO: regex ou modèles
"certifications": [] # TODO: regex ou modèles
}
return structure