Abusiveness Verification in Bahasa Indonesia
Project description
AbusifyID
Abusiveness Verification in Bahasa Indonesia. Predict the abusiveness level of a sentence, detect abusive words, and filter abusive words.
Live Demo: https://abusifyid.streamlit.app/
Requirements
All requirements below have been installed automatically. Install manually if there are problems:
- [Python 2.6 or higher]
- scikit-learn
- pandas
- nltk
- pymysql
- python-decouple
- fuzzywuzzy
- python-Levenshtein
Installation
Install using pip.
pip install abusify-id
How to Use
Predict Abusiveness
Predict the abusiveness level of a sentence, using text input or .txt file input.
import abusify_id as ai
text = "Anjing, lu tolol ya!"
level = ai.predict_abusiveness(text)
print(level)
... 99.59%
import abusify_id as ai
ai.predict_abusiveness_file("input.txt", "output.txt")
... The results have been saved in a file: output.txt
with decimal_places:
import abusify_id as ai
text = "Anjing, lu tolol ya!"
level = ai.predict_abusiveness(text, decimal_places=5)
print(level)
... 99.59093%
import abusify_id as ai
ai.predict_abusiveness_file("input.txt", "output.txt", decimal_places=4)
... The results have been saved in a file: output.txt
Abusive Word Detector
import abusify_id as ai
text = "Anjing, lu tolol ya!"
detect = ai.abusiveword_detector(text)
print(detect)
... [Anjing](https://stopucapkasar.com/detail.php?id=9), [Tolol](https://stopucapkasar.com/detail.php?id=95)
Abusive Word Filter
import abusify_id as ai
text = "Anjing, lu tolol ya!"
filter = ai.abusiveword_filter(text)
print(filter)
... Sialan, lu bebal ya!
Website
Visit our website: https://stopucapkasar.com/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abusify-id-0.13.tar.gz.
File metadata
- Download URL: abusify-id-0.13.tar.gz
- Upload date:
- Size: 464.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
291887a916f2170e9d24be4af3f4823c87f387f7b198a9fc8ee071447121e7d1
|
|
| MD5 |
baa2c2ba7d5e89c8fa300d5b63caf897
|
|
| BLAKE2b-256 |
11b25ba22f8182b4167c40c7241651854d539e5c54382cab44266175dd468730
|
File details
Details for the file abusify_id-0.13-py3-none-any.whl.
File metadata
- Download URL: abusify_id-0.13-py3-none-any.whl
- Upload date:
- Size: 464.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c64171e4b31a646aeda2a91c71d18003045f38a8db3daa4b45b14cb8f413cf1b
|
|
| MD5 |
0130446e42290af884949c072e9b133b
|
|
| BLAKE2b-256 |
2bb6d5e8ad7a85ee52270ab4abd971d491267d44dd5cd65e986faf1faebfc575
|