Downloads · 30 days
28
3% of all-time downloads
parsi-ai-nlpclass/ParsBERT-nli-FarsTail-FarSick
ParsBERT-nli-FarsTail-FarSick is a text classification model from parsi-ai-nlpclass. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
28
3% of all-time downloads
All-time downloads
849
Public
Parameters
118M
473 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors473 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of HooshvareLab/bert-fa-zwnj-base on the FarsTail and FarSick datasets. It achieves the following results on the evaluation set:
import torch
import transformers
model_name_or_path = "parsi-ai-nlpclass/ParsBERT-nli-FarsTail-FarSick"
config = transformers.AutoConfig.from_pretrained(model_name_or_path)
tokenizer_pb = transformers.AutoTokenizer.from_pretrained(model_name_or_path)
model_pb = transformers.AutoModelForSequenceClassification.from_pretrained(model_name_or_path,
num_labels=3)
premise = "سلام خوبی؟"
hypothesis = "آره خوبم"
print(model_pb(**tokenizer_pb(premise, hypothesis, return_tensors='pt')))
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision (macro) | Precision (micro) | Recall (macro) | Recall (micro) | F1 (macro) | F1 (micro) |
|---|---|---|---|---|---|---|---|---|---|---|
| 0.6248 | 1.0 | 1137 | 0.5391 | 0.7768 | 0.7677 | 0.7768 | 0.7728 | 0.7728 | 0.7647 | 0.7768 |
| 0.4449 | 2.0 | 2274 | 0.5017 | 0.8055 | 0.7909 | 0.8055 | 0.7963 | 0.7963 | 0.7932 | 0.8055 |
| 0.304 | 3.0 | 3411 | 0.5851 | 0.8125 | 0.8006 | 0.8125 | 0.7979 | 0.7979 | 0.7985 | 0.8125 |
| 0.1844 | 4.0 | 4548 | 0.7549 | 0.8140 | 0.8010 | 0.8140 | 0.7982 | 0.7982 | 0.7993 | 0.8140 |
| 0.1224 | 5.0 | 5685 | 0.8730 | 0.8055 | 0.7900 | 0.8055 | 0.7926 | 0.7926 | 0.7909 | 0.8055 |