DataTurks-Engg / Entity-Recognition-In-Resumes-SpaCy

Automatic Summarization of Resumes with NER -> Evaluate resumes at a glance through Named Entity Recognition
https://medium.com/@dataturks/automatic-summarization-of-resumes-with-ner-8b97a5f562b
442 stars 215 forks source link

ERROR:root:Unable to process traindata.json #12

Closed RAJANAGORI closed 4 years ago

RAJANAGORI commented 5 years ago

error = 'NoneType' object is not iterable Traceback (most recent call last): File "", line 22, in convert_dataturks_to_spacy for annotation in data['annotation']: TypeError: 'NoneType' object is not iterable

TypeError Traceback (most recent call last)

in ----> 1 train_spacy() in train_spacy() 51 52 # add labels ---> 53 for _, annotations in TRAIN_DATA: 54 for ent in annotations.get('entities'): 55 ner.add_label(ent[2]) TypeError: 'NoneType' object is not iterable _**getting this error after function calling**_
skanda44 commented 5 years ago

what is the solution for this?

karthikgauti commented 4 years ago

anyone has solution for this?

akj2784 commented 4 years ago

Same error at my end

rahulsarkar906 commented 4 years ago

same error at my end.

SafiaKhaleel commented 3 years ago

@RAJANAGORI Did you solve the issue? I'm also getting the same error

Marisamy01 commented 2 years ago

Replace "with open(dataturks_JSON_FilePath, 'r') as f:" this line with open(dataturks_JSON_FilePath, 'r',encoding='utf-8') as f:

It works for me