Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
|
@@ -774,7 +774,7 @@ class NormalisationPipeline(Pipeline):
|
|
| 774 |
if a_ref == '' and a_pred == '':
|
| 775 |
covered_pred += 1
|
| 776 |
continue
|
| 777 |
-
a_pred = re.sub(' +', ' ', a_pred).strip()
|
| 778 |
span_ref = [ref_chars[covered_ref], ref_chars[covered_ref + len(a_ref)]]
|
| 779 |
covered_ref += len(a_ref)
|
| 780 |
span_pred = [pred_chars[covered_pred], pred_chars[covered_pred + len(a_pred)]]
|
|
|
|
| 774 |
if a_ref == '' and a_pred == '':
|
| 775 |
covered_pred += 1
|
| 776 |
continue
|
| 777 |
+
#a_pred = re.sub(' +', ' ', a_pred).strip() # removed -> resulted in bug. Leaving commented in case of other problems
|
| 778 |
span_ref = [ref_chars[covered_ref], ref_chars[covered_ref + len(a_ref)]]
|
| 779 |
covered_ref += len(a_ref)
|
| 780 |
span_pred = [pred_chars[covered_pred], pred_chars[covered_pred + len(a_pred)]]
|