|
1 | 1 | .. currentmodule:: pythainlp.augment
|
2 | 2 |
|
3 |
| -pythainlp.augment |
4 |
| -================= |
| 3 | +pythainlp.augment Module |
| 4 | +======================= |
5 | 5 |
|
6 |
| -The :class:`textaugment` is Thai text augment. This function for text augment task. |
| 6 | +Introduction |
| 7 | +------------ |
7 | 8 |
|
8 |
| -Modules |
9 |
| -------- |
| 9 | +The `pythainlp.augment` module is a powerful toolset for text augmentation in the Thai language. Text augmentation is a process that enriches and diversifies textual data by generating alternative versions of the original text. This module is a valuable resource for improving the quality and variety of Thai language data for NLP tasks. |
| 10 | + |
| 11 | +TextAugment Class |
| 12 | +----------------- |
| 13 | + |
| 14 | +The central component of the `pythainlp.augment` module is the `TextAugment` class. This class provides various text augmentation techniques and functions to enhance the diversity of your text data. It offers the following methods: |
| 15 | + |
| 16 | +.. autoclass:: pythainlp.augment.TextAugment |
| 17 | + :members: |
| 18 | + |
| 19 | +WordNetAug Class |
| 20 | +---------------- |
| 21 | + |
| 22 | +The `WordNetAug` class is designed to perform text augmentation using WordNet, a lexical database for English. This class enables you to augment Thai text using English synonyms, offering a unique approach to text diversification. The following methods are available within this class: |
| 23 | + |
| 24 | +.. autoclass:: pythainlp.augment.WordNetAug |
| 25 | + :members: |
| 26 | + |
| 27 | +Word2VecAug, Thai2fitAug, LTW2VAug Classes |
| 28 | +------------------------------------------ |
| 29 | + |
| 30 | +The `pythainlp.augment.word2vec` package contains multiple classes for text augmentation using Word2Vec models. These classes include `Word2VecAug`, `Thai2fitAug`, and `LTW2VAug`. Each of these classes allows you to use Word2Vec embeddings to generate text variations. Explore the methods provided by these classes to understand their capabilities. |
10 | 31 |
|
11 |
| -.. autoclass:: WordNetAug |
12 |
| - :members: |
13 |
| -.. autofunction:: postype2wordnet |
14 | 32 | .. autoclass:: pythainlp.augment.word2vec.Word2VecAug
|
15 |
| - :members: |
| 33 | + :members: |
| 34 | + |
16 | 35 | .. autoclass:: pythainlp.augment.word2vec.Thai2fitAug
|
17 |
| - :members: |
| 36 | + :members: |
| 37 | + |
18 | 38 | .. autoclass:: pythainlp.augment.word2vec.LTW2VAug
|
19 |
| - :members: |
| 39 | + :members: |
| 40 | + |
| 41 | +FastTextAug and Thai2transformersAug Classes |
| 42 | +-------------------------------------------- |
| 43 | + |
| 44 | +The `pythainlp.augment.lm` package offers classes for text augmentation using language models. These classes include `FastTextAug` and `Thai2transformersAug`. These classes allow you to use language model-based techniques to diversify text data. Explore their methods to understand their capabilities. |
| 45 | + |
20 | 46 | .. autoclass:: pythainlp.augment.lm.FastTextAug
|
21 |
| - :members: |
| 47 | + :members: |
| 48 | + |
22 | 49 | .. autoclass:: pythainlp.augment.lm.Thai2transformersAug
|
23 |
| - :members: |
| 50 | + :members: |
| 51 | + |
| 52 | +BPEmbAug Class |
| 53 | +-------------- |
| 54 | + |
| 55 | +The `pythainlp.augment.word2vec.bpemb_wv` package contains the `BPEmbAug` class, which is designed for text augmentation using subword embeddings. This class is particularly useful when working with subword representations for Thai text augmentation. |
| 56 | + |
24 | 57 | .. autoclass:: pythainlp.augment.word2vec.bpemb_wv.BPEmbAug
|
25 |
| - :members: |
| 58 | + :members: |
| 59 | + |
| 60 | +Additional Functions |
| 61 | +------------------- |
| 62 | + |
| 63 | +To further enhance your text augmentation tasks, the `pythainlp.augment` module offers the following functions: |
| 64 | + |
| 65 | +- `postype2wordnet`: This function maps part-of-speech tags to WordNet-compatible POS tags, facilitating the integration of WordNet augmentation with Thai text. |
| 66 | + |
| 67 | +These functions and classes provide diverse techniques for text augmentation in the Thai language, making this module a valuable asset for NLP researchers, developers, and practitioners. |
| 68 | + |
| 69 | +For detailed usage examples and guidelines, please refer to the official PyThaiNLP documentation. The `pythainlp.augment` module opens up new possibilities for enriching and diversifying Thai text data, leading to improved NLP models and applications. |
0 commit comments