Skip to content
Discussion options

You must be logged in to vote

I think the problem is that your initialize method is only storing the patterns as an attribute and not processing them further. For a cleaner design with v3 (some of the entity ruler design is a holdover from v2), I'd recommend removing patterns as a kwarg from __init__ and moving the pattern loading to a separate add_patterns-type method that you can call with initialize. Or if you never need to support adding more patterns later, you can put the pattern loading directly in initialize if you want.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@riccardopinosio
Comment options

@adrianeboyd
Comment options

@riccardopinosio
Comment options

@adrianeboyd
Comment options

Answer selected by riccardopinosio
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 feat / matcher Feature: Token, phrase and dependency matcher
2 participants