Training a relation extraction component

As per the error, it sounds like you may not be passing the tutorial’s config that creates this component.

Are you running your command like the tutorial does:

python -m spacy train configs/rel_tok2vec.cfg --output training --paths.train train.spacy --paths.dev dev.spacy -c ./scripts/custom_functions.py