ManivannanMurugavel / spacy-ner-annotator

Train Spacy ner with custom dataset
https://medium.com/@manivannan_data/how-to-train-ner-with-custom-training-data-using-spacy-188e0e508c6
182 stars 111 forks source link

Error : object of type 'NoneType' has no len() #5

Open ankitbbisht opened 4 years ago

ankitbbisht commented 4 years ago

i have used the code exactly as written, changed the TRAIN_DATA, used your ner annotator to get the data but still the error thrown as soon as train_spacy function is called. it's returning null I guess hence the error. Please help.

ManivannanIkomet commented 4 years ago

Tell me the which line thrown the error. Check if any json is empty, delete the json from list

ankitbbisht commented 4 years ago

thanks for quick response, i made a small error while putting in train_data. However i came across one more issue, when i am training the data, iterations are quite up and down. how can i call the best iterated model ?