Skip to content

Commit

Permalink
fix fasttext file path issue (#2518)
Browse files Browse the repository at this point in the history
  • Loading branch information
noamzbr committed May 10, 2023
1 parent 59535f3 commit cfc9f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepchecks/nlp/utils/text_properties.py
Expand Up @@ -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

Expand Down

0 comments on commit cfc9f9d

Please sign in to comment.