
# BERT-LABR unbalanced
Arabic version bert model fine tuned on LABR dataset

## Data
The model were fine-tuned on ~63000 book reviews in arabic using bert large arabic


## Results
| class    | precision | recall | f1-score | Support |
|----------|-----------|--------|----------|---------|
| 0        | 0.8109    | 0.6832 | 0.7416   | 1670    |
| 1        | 0.9399    | 0.9689 | 0.9542   | 8541    |
| Accuracy |           |        | 0.9221   | 10211   |



## How to use

You can use these models by installing `torch` or `tensorflow` and Huggingface library `transformers`. And you can use it directly by initializing it like this:  

```python
from transformers import AutoModelForSequenceClassification, AutoTokenizer

model_name="mofawzy/bert-labr-unbalanced"
model = AutoModelForSequenceClassification.from_pretrained(model_name,num_labels=2)
tokenizer = AutoTokenizer.from_pretrained(model_name)

```

{"language": ["ar"], "tags": ["labr"], "datasets": ["labr"], "widget": [{"text": "\u0643\u062a\u0627\u0628 \u0645\u0645\u0644 \u062c\u062f\u0627 \u062a\u0636\u064a\u064a\u0639 \u0648\u0642\u062a"}, {"text": "\u0627\u0633\u0644\u0648\u0628 \u0645\u0645\u062a\u0639 \u0648\u0634\u064a\u0642 \u0641\u064a \u0627\u0644\u0643\u062a\u0627\u0628 \u0627\u0633\u062a\u0645\u0639\u062a \u0628\u0627\u0644\u0627\u062d\u062f\u0627\u062b"}]}
transformers pytorch tf bert text-classification labr ar dataset:labr autotrain_compatible endpoints_compatible region:us
TAGS
#transformers #pytorch #tf #bert #text-classification #labr #ar #dataset-labr #autotrain_compatible #endpoints_compatible #region-us 

BERT-LABR unbalanced
====================


Arabic version bert model fine tuned on LABR dataset


Data
----


The model were fine-tuned on ~63000 book reviews in arabic using bert large arabic


Results
-------



How to use
----------


You can use these models by installing 'torch' or 'tensorflow' and Huggingface library 'transformers'. And you can use it directly by initializing it like this:



TAGS
#transformers #pytorch #tf #bert #text-classification #labr #ar #dataset-labr #autotrain_compatible #endpoints_compatible #region-us 

passage: TAGS
#transformers #pytorch #tf #bert #text-classification #labr #ar #dataset-labr #autotrain_compatible #endpoints_compatible #region-us 
