yzha commited on
Commit
9af909b
·
1 Parent(s): de3957d
Files changed (1) hide show
  1. ctc_eval.py +3 -1
ctc_eval.py CHANGED
@@ -45,7 +45,7 @@ Returns:
45
  ctc_score: The CTC score
46
  Examples:
47
  >>> ctc_score = evaluate.load("yzha/ctc_eval")
48
- >>> results = ctc_score.compute(references=['hello world'], predictions='hi world')
49
  >>> print(results)
50
  {'ctc_score': 0.5211202502250671}
51
  """
@@ -93,6 +93,8 @@ class CTC_Eval(evaluate.EvaluationModule):
93
  from ctc_score import StyleTransferScorer, SummarizationScorer, DialogScorer
94
  self.scorer = SummarizationScorer(align='D-cnndm')
95
 
 
 
96
  def _compute(self, predictions, references):
97
  """Returns the scores"""
98
  # TODO: Compute the different scores of the module
 
45
  ctc_score: The CTC score
46
  Examples:
47
  >>> ctc_score = evaluate.load("yzha/ctc_eval")
48
+ >>> results = ctc_score.compute(references=['hello world'], predictions=['hi world'])
49
  >>> print(results)
50
  {'ctc_score': 0.5211202502250671}
51
  """
 
93
  from ctc_score import StyleTransferScorer, SummarizationScorer, DialogScorer
94
  self.scorer = SummarizationScorer(align='D-cnndm')
95
 
96
+ self.compute(references=['hello world'], predictions=['hi world'])
97
+
98
  def _compute(self, predictions, references):
99
  """Returns the scores"""
100
  # TODO: Compute the different scores of the module