Closed JohnGiorgi closed 1 year ago
Also worth asking, is there any reason for make_serializable
not to default to True
?
Also worth asking, is there any reason for
make_serializable
not to default toTrue
?
It was added while there was a lot of weirdness with multiprocessing in spacy (https://github.com/allenai/scispacy/pull/368) so I just set it to be false by default just in case if I remember correctly. This is a very funny place to meet again @JohnGiorgi btw.
Also worth asking, is there any reason for
make_serializable
not to default toTrue
?It was added while there was a lot of weirdness with multiprocessing in spacy (#368) so I just set it to be false by default just in case if I remember correctly. This is a very funny place to meet again @JohnGiorgi btw.
Haha good to hear from you again @MichalMalyska!
By default the abbreviation detector pipe is not serializable, so you run into issues when you try to serialize any docs processed with it:
It took me a while to figure out this is easily solved with the
make_serializable
parameter, but it's not documented anywhere so I am proposing to add a short note in the readme about it.