Is it possible to pass nlp object to registry functions via config? #12118
Unanswered
kinghuang
asked this question in
Help: Coding & Implementations
Replies: 1 comment 2 replies
-
Off the top of my head, I don't think this is possible. What information do you need from |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using a SpanRuler with a custom
spans_filter
. A registry function is used in the config to create the filter function.Is there a way in the config to refer to the nlp (Language) object, so that I can pass it to the registry function as an argument on
make_some_spans_filter
? I tried looking at the confection and spacy code, but couldn't tell if there was some magical variable or keyword that would provide such a reference (the???
below).Beta Was this translation helpful? Give feedback.
All reactions