Closed JulianGerhard21 closed 3 years ago
Just wanted to let you know, that in addition, I tried the data conversion with:
examples = []
nlp = spacy.blank("de")
for text, annots in train_data_old:
examples.append(Example.from_dict(nlp.make_doc(text), annots))
db = DocBin(docs=[ex.reference for ex in examples])
db.to_disk("train.spacy")
with the same result as mentioned above.
Nevermind, I was able to resolve the problem by reading this post carefully.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
How to reproduce the behaviour
I followed the instructions based on your website to train my own NER model. To do so, I:
[('The F15 aircraft uses a lot of fuel', {'entities': [(4, 7, 'aircraft')]})]
python -m spacy init fill-config base_config.cfg config.cfg
python -m spacy train config.cfg --output ./output --paths.train ./train.spacy --paths.dev ./train.spacy --gpu-id 0
Spacy produced the following output:
and then the following error:
config.txt
Your Environment