alireza-2003 commited on
Commit
a1d6568
·
verified ·
1 Parent(s): 0dd416a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -2
README.md CHANGED
@@ -8,6 +8,12 @@ tags:
8
  - delivery
9
  - bert
10
  - bert-persian
 
 
 
 
 
 
11
  ---
12
  # Persian Sentiment Analysis for Delivery Complaints
13
 
@@ -15,7 +21,7 @@ tags:
15
  This model is fine-tuned **HooshvareLab/bert-fa-base-uncased** model to classify Persian comments related to delivery complaints. The model predicts whether a comment is about a negative delivery experience or not.
16
 
17
  ## 📊 Dataset
18
- The model was fine-tuned using the **Labeled Persian Comments** dataset from Kaggle:
19
  [📂 Basalam Comments Dataset](https://www.kaggle.com/datasets/alirezaazizkhani/labeled-persian-comments)
20
 
21
  This dataset contains Persian comments labeled as:
@@ -38,7 +44,7 @@ from transformers import AutoModelForSequenceClassification, AutoTokenizer
38
  import torch
39
 
40
  def classify_comment(text):
41
- model_name = "alireza-2003/bert_fa_for_bad_delivery_detection"
42
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
43
  tokenizer = AutoTokenizer.from_pretrained(model_name)
44
 
 
8
  - delivery
9
  - bert
10
  - bert-persian
11
+ language:
12
+ - fa
13
+ metrics:
14
+ - accuracy
15
+ - f1
16
+ pipeline_tag: text-classification
17
  ---
18
  # Persian Sentiment Analysis for Delivery Complaints
19
 
 
21
  This model is fine-tuned **HooshvareLab/bert-fa-base-uncased** model to classify Persian comments related to delivery complaints. The model predicts whether a comment is about a negative delivery experience or not.
22
 
23
  ## 📊 Dataset
24
+ The model was fine-tuned using the ** Basalam comments ** dataset from Kaggle:
25
  [📂 Basalam Comments Dataset](https://www.kaggle.com/datasets/alirezaazizkhani/labeled-persian-comments)
26
 
27
  This dataset contains Persian comments labeled as:
 
44
  import torch
45
 
46
  def classify_comment(text):
47
+ model_name = "alireza-2003/bert_fa_bad_delivery"
48
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
49
  tokenizer = AutoTokenizer.from_pretrained(model_name)
50