Skip to content

Commit

Permalink
LanguageModel - Fix languages order
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed Feb 23, 2024
1 parent 70e89d3 commit 206171a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion orangecontrib/text/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def __init__(
"""
if languages is None:
# if languages not provided take all available languages
languages = sorted(filter(None, ISO2LANG), key=ISO2LANG.get)
languages = filter(None, ISO2LANG)
languages = sorted(languages, key=ISO2LANG.get)
if include_none:
languages = [None] + languages
super().__init__(iterable=languages)
Expand Down

0 comments on commit 206171a

Please sign in to comment.