From 6338646770bed5e2b071ffe8fcf2abcfd23aa3f3 Mon Sep 17 00:00:00 2001 From: Pavarissy Date: Tue, 5 Dec 2023 05:38:41 +0000 Subject: [PATCH] fix pep8 --- pythainlp/corpus/thai_icu.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pythainlp/corpus/thai_icu.py b/pythainlp/corpus/thai_icu.py index fecaf3427..e84f3b895 100644 --- a/pythainlp/corpus/thai_icu.py +++ b/pythainlp/corpus/thai_icu.py @@ -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. @@ -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 \ No newline at end of file + return _THAI_ICU