-
Notifications
You must be signed in to change notification settings - Fork 215
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
Added requirements for the project #19
base: master
Are you sure you want to change the base?
Conversation
ERROR:root:Unable to process C:/Users/NISHIT/Desktop/Entity-Recognition-In-Resumes-SpaCy-master/traindata.json File "", line 85, in File "", line 11, in train_spacy TypeError: 'NoneType' object is not iterable |
Has anyone found a solution to this? |
This is just an encoding error.Try inserting an encoding type(encoding="utf-8") when passing a file path.Worked for me |
Hmm, now I have this error: Warning: Unnamed vectors -- this won't allow multiple vectors models to be loaded. (Shape: (0, 0)) Process finished with exit code -1073741819 (0xC0000005) |
Just copy paste the following code.Let me know if it helps. //Modification done to original code// 1.added method trim_entity_spans import json
except Exception as e: Args: Returns: cleaned_data = [] return cleaned_data TRAIN_DATA = convert_dataturks_to_spacy("Your path where the traindata.json file is located/traindata.json",encoding="utf-8) create the built-in pipeline components and add them to the pipelinenlp.create_pipe works for built-ins that are registered with spaCyif 'ner' not in nlp.pipe_names: add labelsfor _, annotations in TRAIN_DATA: get names of other pipes to disable them during trainingother_pipes = [pipe for pipe in nlp.pipe_names if pipe != 'ner'] ta=0
for i in d: |
When I use the trim_entity_spans method I get a blank [] value for TRAIN_DATA |
No description provided.