We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c7a02d commit 36389fbCopy full SHA for 36389fb
1 file changed
utilities/AI-Resume-Analyzer/AI-Resume-Analyzer.py
@@ -24,9 +24,17 @@ def analyze_resume(resume_text: str) -> dict:
24
25
resume = resume_text.lower()
26
27
+ # Pre-process to protect C++, C#, and .NET from NLTK tokenization
28
+ PROTECTED = {"c++": "cpplang", "c#": "csharplang", ".net": "dotnetlang"}
29
+ for raw, placeholder in PROTECTED.items():
30
+ resume = resume.replace(raw, placeholder)
31
+
32
# NLP processing
33
words = word_tokenize(resume)
34
35
+ # Restore protected tokens
36
+ words = [PROTECTED.get(w, w) for w in words]
37
38
stop_words = set(stopwords.words('english'))
39
KEEP_AS_IS = {"c++", "c#", ".net"}
40
0 commit comments