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](https://pypi.org/project/scikit-learn/)
[pandas](https://pypi.org/project/pandas/)
[nltk](https://pypi.org/project/nltk/)
[pymysql](https://pypi.org/project/pymysql/)
[python-decouple](https://pypi.org/project/python-decouple/)
[fuzzywuzzy](https://pypi.org/project/fuzzywuzzy/)
[python-Levenshtein](https://pypi.org/project/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
Hashes for abusify_id-0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7feeeabff5e7de1af02f5d459b931137432fcc9b69178af3fa356c275ec16b1a |
|
MD5 | ba925bb691981fed6f23d36fe4a902f7 |
|
BLAKE2b-256 | 6c92497664b442592686b352a363fc2b2b21cea35a5200e2bb24d6e45a600119 |