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
An open source Python library for text formatting, augmentation, and similarity calculation tasks in NLP, the package now also includes additional methods for image augmentation.
9
9
10
-
## Changes to DupliPy 0.2.0
10
+
## Changes to DupliPy 0.2.1
11
11
12
-
DupliPy now includes useful method descriptions in docstrings, allowing anyone to quickly see what a method does and why it is used. DupliPy also now includes a few extra methods in `replication` and `similarity`, including `shuffle_words()` and `jaccard_similarity_score()`.
12
+
Duplipy now utilizes another one of our Python packages, called ValX, which provides quick methods we can use to clean and format our text data before training in preprocessing steps.
13
13
14
14
## Installation
15
15
@@ -29,7 +29,7 @@ DupliPy supports the following Python versions:
29
29
- Python 3.9
30
30
- Python 3.10
31
31
- Python 3.11
32
-
- Python 3.12
32
+
- Python 3.12 or later
33
33
34
34
Please ensure that you have one of these Python versions installed before using DupliPy. DupliPy may not work as expected on lower versions of Python than the supported.
35
35
@@ -40,7 +40,8 @@ Please ensure that you have one of these Python versions installed before using
40
40
- Sentiment Analysis: Find impressions within sentences.
41
41
- Similarity Calculation: Calculate text similarity using various metrics.
42
42
- BLEU Score Calculation: Calculate how well your text-based NLP model performs.
43
-
- Image Augmentation Tasks **(NEW)**
43
+
- Image Augmentation Tasks.
44
+
- Profanity removal, hate speech removal, offensive speech removal, and sensitive information removal.
44
45
45
46
*For full reference documentation view [DupliPy's official documentation](https://infinitode-docs.gitbook.io/documentation/package-documentation/duplipy-package-documentation).*
### Hate speech and Offensive speech removal using AI
162
+
163
+
```python
164
+
from duplipy.formatting import remove_hate_speech_from_text
165
+
166
+
text ="I hate all of you bad word! Can't you just bad word leave me alone! Hi, I'm Katy."
167
+
168
+
print(remove_hate_speech_from_text(text))
169
+
170
+
### Output
171
+
# "Hi, I'm Katy."
172
+
```
173
+
160
174
## Contributing
161
175
162
176
Contributions are welcome! If you encounter any issues, have suggestions, or want to contribute to DupliPy, please open an issue or submit a pull request on [GitHub](https://github.com/infinitode/duplipy).
0 commit comments