OmkarPathak / pyresparser

A simple resume parser used for extracting information from resumes
GNU General Public License v3.0
773 stars 394 forks source link

Errors running the program. #51

Open yousafzahid95 opened 3 years ago

yousafzahid95 commented 3 years ago

I'm a newbie at this and I'm doing a university project that includes extraction of information from a resume but when I try to run your parser I experience a lot of errors such as:

data = ResumeParser("C:/Users/yriva/Desktop/NLP/resume.pdf").get_extracted_data() C:\Users\yriva\AppData\Local\Programs\Python\Python39\lib\site-packages\spacy\util.py:717: UserWarning: [W094] Model 'en_training' (0.0.0) specifies an under-constrained spaCy version requirement: >=2.1.4. This can lead to compatibility problems with older versions, or as new spaCy versions are released, because the model may say it's compatible when it's not. Consider changing the "spacy_version" in your meta.json to a version range, with a lower and upper pin. For example: >=3.0.6,<3.1.0 warnings.warn(warn_msg) Traceback (most recent call last): File "", line 1, in File "C:\Users\yriva\Desktop\pyresparser-master\pyresparser\resume_parser.py", line 21, in init custom_nlp = spacy.load(os.path.dirname(os.path.abspath(file))) File "C:\Users\yriva\AppData\Local\Programs\Python\Python39\lib\site-packages\spacy__init__.py", line 50, in load return util.load_model( File "C:\Users\yriva\AppData\Local\Programs\Python\Python39\lib\site-packages\spacy\util.py", line 326, in load_model return load_model_from_path(Path(name), **kwargs) File "C:\Users\yriva\AppData\Local\Programs\Python\Python39\lib\site-packages\spacy\util.py", line 390, in load_model_from_path config = load_config(config_path, overrides=dict_to_dot(config)) File "C:\Users\yriva\AppData\Local\Programs\Python\Python39\lib\site-packages\spacy\util.py", line 547, in load_config raise IOError(Errors.E053.format(path=config_path, name="config.cfg")) OSError: [E053] Could not read config.cfg from C:\Users\yriva\Desktop\pyresparser-master\pyresparser\config.cfg

Please help. Thanks