diff --git a/silnlp/alignment/config.py b/silnlp/alignment/config.py index 55a74796..7855acd6 100644 --- a/silnlp/alignment/config.py +++ b/silnlp/alignment/config.py @@ -67,9 +67,10 @@ "clear3_fa": (ClearAligner, "Clear-3-FA"), "clear3_hmm": (ClearAligner, "Clear-3-HMM"), "clab_fast_align": (FastAlign, "clab-FastAlign"), - "eflomal": (EflomalAligner, "Eflomal"), } +if is_eflomal_available(): + ALIGNERS["eflomal"] = (EflomalAligner, "Eflomal") STEMMERS: Dict[str, Type[Stemmer]] = { "snowball": SnowballStemmer,