Skip to content
Discussion options

You must be logged in to vote

Thanks for your question! If you are using the regular pickle module, shared objects should only be pickled once:

The pickle module keeps track of the objects it has already serialized, so that later references to the same object won’t be serialized again.

So as long as you pickle the whole dictionary at once, there shouldn't be N vocabulary objects.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danieldk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage feat / matcher Feature: Token, phrase and dependency matcher
2 participants