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
4.92k stars 2.11k forks source link

punkt Error while running the app #122

Closed munikatoch closed 1 year ago

munikatoch commented 1 year ago

Issue Title

Type

Description

I am getting error while running the app on local. [nltk_data] Error loading punkt: <urlopen error [WinError 10061] No [nltk_data] connection could be made because the target machine [nltk_data] actively refused it> 2023-08-27 08:35:27.022 Uncaught app exception Traceback (most recent call last): File "D:\Git\Resume-Matcher\env\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script exec(code, module.__dict__) File "D:\Git\Resume-Matcher\streamlit_app.py", line 176, in <module> annotated_text(create_annotated_text( File "D:\Git\Resume-Matcher\streamlit_app.py", line 97, in create_annotated_text tokens = nltk.word_tokenize(input_string) File "D:\Git\Resume-Matcher\env\lib\site-packages\nltk\tokenize\__init__.py", line 129, in word_tokenize sentences = [text] if preserve_line else sent_tokenize(text, language) File "D:\Git\Resume-Matcher\env\lib\site-packages\nltk\tokenize\__init__.py", line 106, in sent_tokenize tokenizer = load(f"tokenizers/punkt/{language}.pickle") File "D:\Git\Resume-Matcher\env\lib\site-packages\nltk\data.py", line 750, in load opened_resource = _open(resource_url) File "D:\Git\Resume-Matcher\env\lib\site-packages\nltk\data.py", line 876, in _open return find(path_, path + [""]).open() File "D:\Git\Resume-Matcher\env\lib\site-packages\nltk\data.py", line 583, in find raise LookupError(resource_not_found) LookupError: Resource punkt not found. Please use the NLTK Downloader to obtain the resource: import nltk nltk.download('punkt')

Expected Behavior

App run without any error and show the ATS score

Current Behavior

App throwing error

Steps to Reproduce

NA

Screenshots / Code Snippets (if applicable)

Environment

Possible Solution (if you have any in mind)

Additional Information

munikatoch commented 1 year ago

image

srbhr commented 1 year ago

You need to download the NLTK package. As mentioned in the console.

munikatoch commented 1 year ago

@srbhr I ran the requirement.txt file again but still got this error. So you mean I have to download it separately?

srbhr commented 1 year ago

Yes

munikatoch commented 1 year ago

@srbhr Its a bit confusing for me but does it show keyword difference also? Like the words that we must add to increase the score