Skip to content

Commit

Permalink
typo in optional dep check (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
soldni authored Dec 2, 2024
1 parent 0c0f10c commit a824220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dolma/taggers/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit a824220

Please sign in to comment.