diff --git a/docs/api/parse.rst b/docs/api/parse.rst index 52c79300d..15a292151 100644 --- a/docs/api/parse.rst +++ b/docs/api/parse.rst @@ -28,6 +28,7 @@ Example Here's a basic example of how to use the `dependency_parsing` function: :: + from pythainlp.parse import dependency_parsing # Input Thai sentence diff --git a/docs/api/phayathaibert.rst b/docs/api/phayathaibert.rst new file mode 100644 index 000000000..348ab5a24 --- /dev/null +++ b/docs/api/phayathaibert.rst @@ -0,0 +1,18 @@ +.. currentmodule:: pythainlp.phayathaibert + +pythainlp.phayathaibert +======================= +The `pythainlp.phayathaibert` module is built upon the phayathaibert base model. + +Modules +------- + +.. autoclass:: ThaiTextProcessor + :members: +.. autoclass:: ThaiTextAugmenter + :members: +.. autoclass:: PartOfSpeechTagger + :members: +.. autoclass:: NamedEntityTagger + :members: +.. autofunction:: segment \ No newline at end of file diff --git a/pythainlp/morpheme/word_formation.py b/pythainlp/morpheme/word_formation.py index ec9d4c38b..f17dbdad9 100644 --- a/pythainlp/morpheme/word_formation.py +++ b/pythainlp/morpheme/word_formation.py @@ -17,8 +17,8 @@ def nighit(w1: str, w2: str) -> str: :param str w2: A Thai word. :return: Thai word. :rtype: str - :Example: - :: + :Example::: + from pythainlp.morpheme import nighit assert nighit("สํ","คีต")=="สังคีต"