KeyError: "[E002] Can't find factory for ''tagger''
See original GitHub issueHi,
I’m trying to train tagger for Serbian from Jupiter notebook based on the process described on https://spacy.io/api/cli.
!python -m spacy debug-data sr {JSON_DIR}/file-train.json {JSON_DIR}/file-dev.json --pipeline ‘tagger’ --verbose and getting error: Training pipeline: ‘tagger’ [x] Pipeline component ‘‘tagger’’ not available in factories
when I try to train the tagger: !python -m spacy train sr {MODEL_DIR} {JSON_DIR}/file-train.json {JSON_DIR}/file-dev.json --pipeline ‘tagger’ --n-iter 2
I’m getting the following error:
KeyError: “[E002] Can’t find factory for ‘‘tagger’’. This usually happens when spaCy calls nlp.create_pipe
with a component name that’s not built in - for example, when constructing the pipeline from a model’s meta.json. If you’re using a custom component, you can write to Language.factories[''tagger'']
or remove it from the model meta and add it via nlp.add_pipe
instead.”
I cannot find anywhere how to add components into the factory. There is no spacy model for Serbian and I haven’t created it before.
Info about spaCy
- spaCy version: 2.3.5
- Platform: Windows-10-10.0.17763-SP0
- Python version: 3.7.6
Thanks and regards, Danka,
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
I tried with a smaller dataset and it worked but only for very small (few senetences on Jupyter) and around 100 in Spyder. Anyway, this training serves for educational purposes and has only 1500 sentences in the dataset and that shouldn’t be a problem. thanks for help!
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.