diff --git a/pythainlp/util/morse.py b/pythainlp/util/morse.py index 286edcb6a..49e1dc5a4 100644 --- a/pythainlp/util/morse.py +++ b/pythainlp/util/morse.py @@ -143,6 +143,7 @@ def morse_encode(text: str, lang: str = "th") -> str: :Example: :: + from pythainlp.util.morse import morse_encode print(morse_encode("แมว", lang="th")) # output: .-.- -- .-- @@ -176,6 +177,7 @@ def morse_decode(morse_text: str, lang: str = "th") -> str: :Example: :: + from pythainlp.util.morse import morse_decode print(morse_decode(".-.- -- .--", lang="th")) # output: แมว