diff --git a/detection/nlp_text_splitter/pyproject.toml b/detection/nlp_text_splitter/pyproject.toml index 0e87735..2dd7a1c 100644 --- a/detection/nlp_text_splitter/pyproject.toml +++ b/detection/nlp_text_splitter/pyproject.toml @@ -33,5 +33,9 @@ name = "nlp_text_splitter" version = "9.0" dependencies = [ "spacy>=3.7.4", - "wtpsplit>=1.3.0" + "wtpsplit>=1.3.0", + # Starting with version 8.2.5, thinc will try to compile C extensions during install. + # Restricting the version of thinc is easier than installing a C compiler in every component + # Dockerfile that uses the text splitter. + "thinc>=8.2.2,<8.2.5" ]