You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We strongly advise you to do the remaining steps in a virtual environnement.
@@ -133,6 +135,20 @@ print(example)
133
135
# [':grinning_face:']
134
136
```
135
137
138
+
# Data augmentation <aname="data_augmentation"></a>
139
+
140
+
The augmentation module helps you to **generate new texts** based on your given examples by modifying some words in the initial ones and to **keep associated entities unchanged**, if any, in the case of **NER tasks**. If you want words other than entities to remain unchanged, you can specify it within the `stopwords` argument. Modifications depend on the chosen method, the ones currently supported by the module are **substitutions with synonyms** using Wordnet or BERT from the [`nlpaug`](https://github.com/makcedward/nlpaug) library.
141
+
142
+
```python
143
+
from nlpretext.augmentation.text_augmentation import augment_text
144
+
example ="I want to buy a small black handbag please."
0 commit comments