Skip to content
Discussion options

You must be logged in to vote

You need to use Language.factory instead of Language.component for components that go beyond a simple function (and then also add name as one the required arguments for __init__):

See: https://spacy.io/usage/processing-pipelines#custom-components

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ali3assi
Comment options

Answer selected by adrianeboyd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / pipeline Feature: Processing pipeline and components
2 participants
Converted from issue

This discussion was converted from issue #11180 on July 22, 2022 07:35.