Abdulmohsena commited on
Commit
10e79e6
·
verified ·
1 Parent(s): c104f27

Update Fluency_Score.py

Browse files
Files changed (1) hide show
  1. Fluency_Score.py +5 -1
Fluency_Score.py CHANGED
@@ -3,6 +3,10 @@ import datasets
3
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
4
  import torch
5
 
 
 
 
 
6
  class Fluency_Score(evaluate.Metric):
7
 
8
  def _info(self):
@@ -15,7 +19,7 @@ class Fluency_Score(evaluate.Metric):
15
  "texts": datasets.Value("string", id="sequence"),
16
  }
17
  ),
18
- reference_urls=[],
19
  )
20
 
21
  def _download_and_prepare(self, dl_manager, device=None):
 
3
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
4
  import torch
5
 
6
+ _description = """Fluency Score is a metric to score an Arabic sentence based on its "Fluency". That means is it closer to the eloquent classical Arabic (1) or not (0).
7
+ Examples of the sentences can be found in the evaluation metric's model card (https://huggingface.co/Baleegh/Fluency_Score)[Here].
8
+ """
9
+
10
  class Fluency_Score(evaluate.Metric):
11
 
12
  def _info(self):
 
19
  "texts": datasets.Value("string", id="sequence"),
20
  }
21
  ),
22
+ reference_urls=['https://huggingface.co/Baleegh/Fluency_Score'],
23
  )
24
 
25
  def _download_and_prepare(self, dl_manager, device=None):