'How to parse the resume data?

I have applied this code to extract data from Resume by using python, but my code isn't working. My objective is to parse the resume or extract data from resume, then applied algorithm to predict the label. My target is to "Ranking the candidate resume based on the skills and their resume content" in python.

Can anybody help me regarding this?

pip install python-docx
pip install docx
pip install pyresparser
from pyresparser import ResumeParser

import os

from docx import Document

# file format should be in .txt, .pdf, .docx
filed= input()

# below line is used to read the file from this path **D:/CV/Updated_CV.docx**

try:
    doc= Document()
    with open(filed,'r') as file:
        doc.add_paragraph(file.read())
        doc.save("text.docx")
        data= ResumeParser('text.docx').get_extracted_data()
        print(data['Skills'])
except:
        data= ResumeParser(filed).get_extracted_data() 
        print(data['Skills'])

I think the way I defined path is not correct D:/CV/Updated_CV.docx



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source