Skip to content
Discussion options

You must be logged in to vote

Because entity ruler phrase patterns run the pipeline (up to the current position in the pipeline), you want to load patterns in initialize rather than __init__ so that the previous components have already been initialized. The entity ruler itself already supports this directly, but you can add whatever additional kwargs to your method that you need for the custom component: https://spacy.io/api/entityruler#initialize

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@NixBiks
Comment options

@NixBiks
Comment options

@adrianeboyd
Comment options

@NixBiks
Comment options

@adrianeboyd
Comment options

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

This discussion was converted from issue #10183 on February 03, 2022 08:36.