Skip to content

Commit

Permalink
Fix code block
Browse files Browse the repository at this point in the history
  • Loading branch information
wannaphong committed Dec 15, 2023
1 parent b3c1143 commit 6812d1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pythainlp/util/morse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: .-.- -- .--
Expand Down Expand Up @@ -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: แมว
Expand Down

0 comments on commit 6812d1b

Please sign in to comment.