File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 \
Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments