Skip to content
Discussion options

You must be logged in to vote

For spaCy components, we typically put the factory decorator on a function instead of directly on the class. If you follow the same pattern, you can use a kwargs glob in the function and pass it to the class as a dict, which should allow your users flexibility while keeping the type checking machinery happy too.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by BramVanroy
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
3 participants