detoxifier-0.2
توضیحات
Detoxifier library identifies toxic words in a query and detoxified it by replacing toxic words.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | detoxifier-0.2 |
| نام | detoxifier |
| نسخه کتابخانه | 0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sukanthen.SS |
| ایمیل نویسنده | sukanthen1999@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/detoxifier/ |
| مجوز | - |
# Detoxifier
### " For a Safe, Secure and Positivity enriched Digital World "
### 1) detoxify_text()
Given a input query with toxic comments, this library will exactly spot the toxic words and replace the letters of that particular word with asterisk (*). (eg: moron --> *****)
```console
from detoxifier import detoxify_text
# Dialogue from American Series Silicon Valley (Season 1)
input_text = "Hello, Richard Hendricks. I'm a total fucking retard."
detoxify_text(input_text)
```
Output
```console
Hello, Richard Hendricks. I'm a total ******* ******."
```
### 2) check_textual_toxicity()
Given a input query with toxic comments, this library will check for the presence of toxic words in the query.
```console
from detoxifier import check_textual_toxicity
# Dialogue from American Series Silicon Valley (Season 1)
input_text = "Hello, Richard Hendricks. I'm a total fucking retard."
check_textual_toxicity(input_text)
```
Output
```console
1
## returns 1 if toxic word is present else it returns 0. ##
```
نیازمندی
| مقدار | نام |
|---|---|
| ==2.7 | flashtext |
نحوه نصب
نصب پکیج whl detoxifier-0.2:
pip install detoxifier-0.2.whl
نصب پکیج tar.gz detoxifier-0.2:
pip install detoxifier-0.2.tar.gz