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
abusify-id-0.12.tar.gz
(464.1 kB
view hashes)
Built Distribution
abusify_id-0.12-py3-none-any.whl
(464.0 kB
view hashes)
Close
Hashes for abusify_id-0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fa17d2216fa2991ae011b3856a901d31ee5d66c00c78a328e97dbe0165861fc |
|
MD5 | 97183bfd861b7c387dd7a2b7dabef467 |
|
BLAKE2b-256 | 83fc820d0a1ee2721fd781004a1edb95f568caf598e50d58fb6cb29e50689509 |