srbhr / Resume-Matcher

Resume Matcher is an open source, free tool to improve your resume. It works by using language models to compare and rank resumes with job descriptions.
https://www.resumematcher.fyi/
Apache License 2.0
5.1k stars 2.25k forks source link

Modifications needed in extracting phone numbers from resume text. #221

Open pragati2112 opened 1 year ago

pragati2112 commented 1 year ago

Issue Title

Modifications needed in extracting phone numbers from resume text

Type

Description

Tried to extract 10 digit phone number (including country codes) by given regex in extractor.py file but it's is not identifying any.

Expected Behavior

It should pick 10 digit phone number (with or without country codes ) text.

Possible Solution (if you have any in mind)

I modified the regex and replaced with existing. Modified regex---> r'[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}' I removed "^" and "$" characters from start and end of the regex. Now it's working properly.

srbhr commented 1 year ago

Thanks for the fix @pragati2112 , can you create a PR for this fix?

pragati2112 commented 1 year ago

@srbhr Sure.