I don't know if spacy has anything built in for this, but I'd recommend
going in the direction suggested by Flannon and one of the answers on Stack
Overflow, and use your OS to do the limiting, if it supports that.

If your goal is specifically to limit the *number* of CPUs a process can
use, on Linux the commands to look at are numactl and taskset:

good luck


On Fri, May 25, 2018 at 5:50 PM, Eric Lease Morgan <[log in to unmask]> wrote:

> On Stack exchange I asked "How do I limit the number of CPU's used by
> Spacy?", a set of Python-based natural language processing modules. [1] And
> I thought I might ask it here as well. Any ideas?
> [1]
> --
> Eric Morgan