Commit d3261119 authored by Chamila Dilshan's avatar Chamila Dilshan

Update README.md

parent 9a1a3684
Pipeline #5467 failed with stages
# Automate CV Processing Code # Automate CV Processing Code
#import the Libraries
from pyresparser import ResumeParser
import os
from docx import Document
# input the resume (can be in .txt, .docx or .pdf formats)
cv=input()
# read the resume and save it as a.docx file then pass that file to the pyresparser loibrary to extract the features from the .docx file text.
try:
doc = Document()
with open(cv, 'r') as file:
doc.add_paragraph(file.read())
doc.save("text.docx")
data = ResumeParser('text.docx').get_extracted_data()
except:
data = ResumeParser(cv).get_extracted_data()
# display the extracted features
data
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment