danasone commited on
Commit
64c5226
1 Parent(s): a8294c6
Files changed (1) hide show
  1. ru_errant.py +2 -2
ru_errant.py CHANGED
@@ -155,8 +155,8 @@ class RuErrant(evaluate.Metric):
155
  best_dict = Counter({"tp": 0, "fp": 0, "fn": 0})
156
  best_cats = {}
157
  sents = zip(sources, corrections, answers)
158
- pb = tqdm(sents, desc="Calculating errant metric", total=len(sources))
159
- for sent_id, sent in enumerate(pb):
160
  src = self.annotator.parse(sent[0])
161
  ref = self.annotator.parse(sent[1])
162
  hyp = self.annotator.parse(sent[2])
 
155
  best_dict = Counter({"tp": 0, "fp": 0, "fn": 0})
156
  best_cats = {}
157
  sents = zip(sources, corrections, answers)
158
+
159
+ for sent_id, sent in enumerate(sents):
160
  src = self.annotator.parse(sent[0])
161
  ref = self.annotator.parse(sent[1])
162
  hyp = self.annotator.parse(sent[2])