Your Python cache can run the same work twice, even with the GIL. See the check-then-act race, the lru_cache gotcha, and how ...
Our NER pipeline, despite its simplicity in setup, did a pretty good job.