Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
5 tasks
pragati2112 opened this issue Nov 15, 2023 · 2 comments
Open
5 tasks

Comments

@pragati2112
Copy link
Contributor

Issue Title

Modifications needed in extracting phone numbers from resume text

Type

  • Big
  • Feature Request
  • ["x"] Info
  • Bug
  • Documentation
  • Other (please specify):

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
Copy link
Owner

srbhr commented Nov 15, 2023

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

@pragati2112
Copy link
Contributor Author

@srbhr Sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants