Downloads ยท 30 days
17
5% of all-time downloads
khaled-kassem/Arabic-Profanity-Checker
Arabic-Profanity-Checker is a text classification model from khaled-kassem. Use it when you need a label for a piece of text. It is set up for transformers.
Profanity/Toxic word checker with percentage telling how much a word is profane or normal
Downloads ยท 30 days
17
5% of all-time downloads
All-time downloads
377
Public
Parameters
135M
541 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors541 MB ยท 100%
From the Hugging Face model README
Profanity/Toxic word checker with percentage telling how much a word is profane or normal
Model trained on vast amount of data including normal humamn male/female names up to 10,000 names, and Profane/Toxic words up to 12,000 words including fuzzied words and expressions
Model target is to check for a given 'Single' word (exactly one token) whether this input is a Profane/Toxic (very inappropriate) word or not with output LABEL_0 for a positive word(non profane) and LABEL_1 as negative word(profane) along side with the percentage of how much this word is profane
This is the model card of a ๐ค transformers model that has been pushed on the Hub. This model card has been automatically generated.
How to use? Simple, input a word or List of words and the model to predict for each word, whether it is a profane/toxic or not outputting LABEL_0 for positive non profane and LABEL_1 for negative profane
[More Information Needed]
[More Information Needed]
Model will not work well with contexts or semantics, it is used only for single word check, for sentiment analysis I recommend CAMeL-Lab/bert-base-arabic-camelbert-da-sentiment model
[More Information Needed]
[More Information Needed]
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model. !pip install transformers
from transformers import AutoModelForSequenceClassification, AutoTokenizer from transformers import pipeline
model_path = "khaled-kassem/Arabic-Profanity-Checker" model = AutoModelForSequenceClassification.from_pretrained(model_path) tokenizer = AutoTokenizer.from_pretrained(model_path)
nlp_pipeline = pipeline("text-classification", model=model, tokenizer=tokenizer)
example_text = "ูุบุฏ"
profane_result = nlp_pipeline(example_text)
for word in profane_result: if (word['label'] == 'LABEL_1'): print("Negative") print(word['score']*100) else: print("Positive") print(word['score']*100)
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]