Skip to content

Commit 8ba5819

Browse files
committed
Update docs
1 parent 7a4b81f commit 8ba5819

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

pythainlp/spell/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def spell(word: str, engine: str = "pn") -> List[str]:
2222
* *pn* - Peter Norvig's algorithm [#norvig_spellchecker]_ (default)
2323
* *phunspell* - A spell checker utilizing spylls a port of Hunspell.
2424
* *symspellpy* - symspellpy is a Python port of SymSpell v6.5.
25-
* *tltk* - wrapper for `TLTK <https://pypi.org/project/tltk/>`_.,
25+
* *tltk* - wrapper for `TLTK <https://pypi.org/project/tltk/>`_.
2626
2727
:return: list of possible correct words within 1 or 2 edit distance and
2828
sorted by frequency of word occurrences in the spelling dictionary

pythainlp/tag/pos_tag.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ def pos_tag(
1717
it will convert list word to a string.
1818
* *tltk* - TLTK: Thai Language Toolkit (support TNC corpus only.\
1919
if you choose other corpus, It's change to TNC corpus.)
20-
:param str corpus:
21-
the corpus that used to create the language model for tagger
20+
:param str corpus: the corpus that used to create the language model for tagger
2221
* *lst20* - `LST20 <https://aiforthai.in.th/corpus.php>`_ corpus \
2322
by National Electronics and Computer Technology Center, Thailand
2423
* *lst20_ud* - LST20 text, with tags mapped to Universal POS tag \
@@ -132,8 +131,7 @@ def pos_tag_sents(
132131
* *wangchanberta* - wangchanberta model (support lst20 corpus only)
133132
* *tltk* - TLTK: Thai Language Toolkit (support TNC corpus only.\
134133
if you choose other corpus, It's change to TNC corpus.)
135-
:param str corpus:
136-
the corpus that used to create the language model for tagger
134+
:param str corpus: the corpus that used to create the language model for tagger
137135
* *lst20* - `LST20 <https://aiforthai.in.th/corpus.php>`_ corpus \
138136
by National Electronics and Computer Technology Center, Thailand
139137
* *lst20_ud* - LST20 text, with tags mapped to Universal POS tags \

pythainlp/tokenize/sefr_cut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ def segment(text: str, engine: str = 'ws1000') -> List[str]:
2121
if engine != DEFAULT_ENGINE:
2222
DEFAULT_ENGINE = engine
2323
sefr_cut.load_model(engine=DEFAULT_ENGINE)
24-
return sefr_cut.tokenize(text)[0]
24+
return sefr_cut.tokenize(text)[0]

0 commit comments

Comments
 (0)