Skip to content

Commit 87a2b9b

Browse files
authored
Update spell_words.py
1 parent 3aa3aea commit 87a2b9b

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

pythainlp/util/spell_words.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ def spell_syllable(text: str) -> list[str]:
9999
100100
:Example:
101101
102-
>>> from pythainlp.util.spell_words import spell_syllable # doctest: +SKIP
103-
104-
>>> print(spell_syllable("แมว")) # doctest: +SKIP
102+
>>> from pythainlp.util.spell_words import spell_syllable
103+
>>> spell_syllable("แมว")
105104
['มอ', 'วอ', 'แอ', 'แมว']
106105
"""
107106
tokens = _cut().word_tokenize(_clean(text))
@@ -122,12 +121,10 @@ def spell_word(text: Optional[str]) -> list[str]:
122121
123122
:Example:
124123
125-
>>> from pythainlp.util.spell_words import spell_word # doctest: +SKIP
126-
127-
>>> print(spell_word("คนดี")) # doctest: +SKIP
124+
>>> from pythainlp.util.spell_words import spell_word
125+
>>> spell_word("คนดี")
128126
['คอ', 'นอ', 'คน', 'ดอ', 'อี', 'ดี', 'คนดี']
129-
130-
>>> print(spell_word(None)) # doctest: +SKIP
127+
>>> spell_word(None)
131128
[]
132129
"""
133130
if not text:

0 commit comments

Comments
 (0)