ValueError: Cannot get dimension 'nO' for model 'transformer-listener': value unset when using auto-generated config #11608
-
Error trying to train new ner model using auto generated config file Info about spaCy
[paths]
train = null
dev = null
vectors = null
init_tok2vec = null
[system] [nlp] [components] [components.ner] [components.ner.model] [components.ner.model.tok2vec] [components.parser.model] [components.tagger] [components.tagger.model] [components.tagger.model.tok2vec] [components.transformer.model] [components.transformer.model.get_spans] [components.transformer.model.tokenizer_config] [components.transformer.model.transformer_config] [corpora] [corpora.dev] [corpora.train] [training] [training.batcher] [training.logger] [training.optimizer] [training.optimizer.learn_rate] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For statistical components like To back up a step, are you trying to fine-tune https://github.com/explosion/projects/tree/v3/pipelines/ner_demo_update The script that generates a config can be used to generate a config for fine-tuning |
Beta Was this translation helpful? Give feedback.
For statistical components like
transformer
andtagger
, you can usefrozen_components
for components that have been sourced from another trained pipeline. It doesn't make sense to include and then freeze uninitialized/untrained components as in this config, which is why you're running into errors. (Also a note, there are bugs with freezingtransformer
components, so for now we recommend training in separate pipelines and then usingspacy assemble
to generate your final combined pipeline.)To back up a step, are you trying to fine-tune
ner
from a model likeen_core_web_trf
without modifying the other components? If that's the case, have a look at this demo project:https://github.com/explo…