Skip to content
Discussion options

You must be logged in to vote

The decorator is registering an "entry point" - it's an easy to understand and simple way to do that, but there are actually a couple of other ways you could do it. In official spaCy packages we sometimes specify entry points via setup.cfg instead, which is what we do for spacy-loggers. You can see the source here:

https://github.com/explosion/spacy-loggers/blob/main/setup.cfg

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by dhirajsuvarna
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
loggers Loggers and spacy-loggers
2 participants