fix py
Browse files- 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 |
-
|
| 159 |
-
for sent_id, sent in enumerate(
|
| 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])
|