Spaces:
Sleeping
Sleeping
Download jd_parser.py from itsmemauli/My_Job_Buddy: direct link, hf CLI and curl.
- Browser
- Download file 314 Bytes
-
https://huggingface.co/spaces/itsmemauli/My_Job_Buddy/resolve/main/jd_parser.py
- Command line
-
hf download hf://spaces/itsmemauli/My_Job_Buddy/jd_parser.py
-
curl -L -o jd_parser.py https://huggingface.co/spaces/itsmemauli/My_Job_Buddy/resolve/main/jd_parser.py
314 Bytes
| import re | |
| def extract_keywords_from_jd(jd_text): | |
| words = re.findall(r'\b\w+\b', jd_text.lower()) | |
| stopwords = set(['the', 'and', 'to', 'in', 'of', 'for', 'a', 'with', 'is', 'on', 'as', 'an']) | |
| keywords = [word for word in words if word not in stopwords and len(word) > 2] | |
| return list(set(keywords)) | |