Skip to content
Discussion options

You must be logged in to vote

Hey @lingvisa - thanks for the question.

I think to get where you need to go, we'll need to refactor your current solution slightly. If I understand your problem right, what you're trying to do is look up some document-specific information within your component. Currently you're doing this by passing a document-specific dictionary to component_cfg, but it doesn't really belong there because the information isn't really a property of the component, but a property of the document -- this just happens to work because you're reconfiguring the component every time it's called to work with the specific doc it's called on.

Typically the way to solve this problem is to attach that information to …

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@pmbaumgartner
Comment options

@lingvisa
Comment options

@pmbaumgartner
Comment options

@lingvisa
Comment options

@lingvisa
Comment options

Answer selected by adrianeboyd
Comment options

You must be logged in to vote
3 replies
@lingvisa
Comment options

@pmbaumgartner
Comment options

@pmbaumgartner
Comment options

Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scaling Scaling, serving and parallelizing spaCy
2 participants