Skip to content

Commit

Permalink
fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
pavaris-pm committed Dec 5, 2023
1 parent 3ebf721 commit 6338646
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pythainlp/corpus/thai_icu.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
_THAI_ICU = None
_THAI_ICU_FILENAME = "thai_icu.txt"


def thai_icu() -> FrozenSet[str]:
"""
Return a frozenset of words from the International Components for Unicode (ICU) dictionary.
Expand All @@ -19,11 +20,11 @@ def thai_icu() -> FrozenSet[str]:
The word list has beed prepared by the code at:
https://github.com/unicode-org/icu/blob/main/icu4c/source/data/brkitr/dictionaries/thaidict.txt
:return: :class:`frozenset` containing words in the International Components for Unicode (ICU) dictionary.
:return: :class:`frozenset` containing words in the Thai ICU dictionary.
:rtype: :class:`frozenset`
"""
global _THAI_ICU
if not _THAI_ICU:
_THAI_ICU = get_corpus(_THAI_ICU_FILENAME)

return _THAI_ICU
return _THAI_ICU

0 comments on commit 6338646

Please sign in to comment.