From a8242205733d6df988b2fa04a96ac0779f277972 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Mon, 2 Dec 2024 08:45:49 -0800 Subject: [PATCH] typo in optional dep check (#221) --- python/dolma/taggers/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/dolma/taggers/language.py b/python/dolma/taggers/language.py index 66cb4c6d..121fd5c6 100644 --- a/python/dolma/taggers/language.py +++ b/python/dolma/taggers/language.py @@ -251,7 +251,7 @@ class LinguaTagger(BaseLanguageTagger): def __init__(self) -> None: super().__init__() - if not LANGDETECT_AVAILABLE: + if not LINGUA_AVAILABLE: raise ImportError("langdetect is not installed, please run `pip install dolma[lang]`.") self.detector = LanguageDetectorBuilder.from_languages(*Language.all()).build()