Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to reduce the size of the Spacy installation?

I'm using Spacy in a project and noticed that my Docker images are pretty big. A bit of research led me to find out that just the Spacy installation itself (in /usr/local/lib/python3.6/site-packages/spacy) accounts for 267MB, so I was wondering if there's anything that can be done to reduce that footprint?

like image 379
alexvy86 Avatar asked Jun 01 '18 19:06

alexvy86


1 Answers

Out of interest, SpaCy's 2.2 was released yesterday (Oct 2nd, 2019).

One of the product features for this 2.2 is "Smaller disk foot-print, better language resource handling". So, upgrading to SpaCy 2.2. may be one way to reduce the size of a SpaCy installation.

(Although this post doesn't solve your specific problem, I believe it does answer this specific question.)

like image 58
Eric McLachlan Avatar answered Nov 14 '22 04:11

Eric McLachlan