Downloads · 30 days
15
11% of all-time downloads
Tevfik-istanbullu/arabic-text-classifier-fasttext
arabic-text-classifier-fasttext is a text classification model from Tevfik-istanbullu. Use it when you need a label for a piece of text. It is set up for fasttext. The card lists the license as apache-2.0.
This model classifies Arabic text into one of seven categories using FastText’s supervised learning method. It is particularly suitable for tasks requiring rapid text categorization in Arabic.
Downloads · 30 days
15
11% of all-time downloads
All-time downloads
133
Public
Repo size
4.5 GB
Likes
1
Public
Click a slice to open those files.
.bin4.5 GB · 100%
From the Hugging Face model README
This model classifies Arabic text into one of seven categories using FastText’s supervised learning method. It is particularly suitable for tasks requiring rapid text categorization in Arabic.
This model is intended for direct use in text classification tasks within the Arabic language. It can be deployed in applications for organizing news articles, automating customer support categorization, or any other domain-specific categorization tasks.
The model is not designed for tasks outside of the Arabic language or for multi-label classifications where multiple labels are assigned to a single text instance.
This model is trained on publicly available Arabic text data with specific categories (Finance, Sports, Politics, Medical, Tech, Culture, Religion). It may contain biases present in the original dataset and may not perform equally well on all Arabic dialects. Users should test the model in their specific applications to assess accuracy and suitability.
Users 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.
[```python import fasttext
model = fasttext.load_model("path_to_your_model.bin")
label, prob = model.predict("Sample Arabic text") print(f"Predicted Label: {label[0]}, Probability: {prob[0]}")]
Data Size: 194,317 Arabic text samples Categories: 7 categories - Finance, Sports, Politics, Medical, Tech, Culture, Religion
Evaluated on a hold-out test set of 6,428 Arabic text samples, representing the seven categories.