From cfc9f9dbdb10aedf1862f19aee4d7e84341a0d53 Mon Sep 17 00:00:00 2001 From: Noam Bressler Date: Wed, 10 May 2023 21:57:37 +0300 Subject: [PATCH] fix fasttext file path issue (#2518) --- deepchecks/nlp/utils/text_properties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepchecks/nlp/utils/text_properties.py b/deepchecks/nlp/utils/text_properties.py index bb86b35aa2..833d1ab1a3 100644 --- a/deepchecks/nlp/utils/text_properties.py +++ b/deepchecks/nlp/utils/text_properties.py @@ -225,7 +225,7 @@ def language(raw_text: Sequence[str], # This weird code is to suppress a warning from fasttext about a deprecated function try: fasttext.FastText.eprint = lambda *args, **kwargs: None - model = fasttext.load_model(model_path) + model = fasttext.load_model(str(model_path)) except Exception as exp: raise exp