transZ commited on
Commit
96aa1b1
1 Parent(s): ce1312c

Customize model for similarity

Browse files
Files changed (1) hide show
  1. test_parascore.py +2 -2
test_parascore.py CHANGED
@@ -121,10 +121,10 @@ class test_parascore(evaluate.Metric):
121
  diversity.append(ss)
122
  return diversity
123
 
124
- def _compute(self, predictions, references, lang='en'):
125
  """Returns the scores"""
126
 
127
- score = self.score.compute(predictions=predictions, references=references, lang=lang)
128
  bert_score = [round(v, 2) for v in score['f1']]
129
  diversity = self._diverse(predictions, references, lang)
130
 
 
121
  diversity.append(ss)
122
  return diversity
123
 
124
+ def _compute(self, predictions, references, model_type='microsoft/deberta-xlarge-mnli', lang='en'):
125
  """Returns the scores"""
126
 
127
+ score = self.score.compute(predictions=predictions, references=references, lang=lang, model_type=model_type)
128
  bert_score = [round(v, 2) for v in score['f1']]
129
  diversity = self._diverse(predictions, references, lang)
130