rbawden commited on
Commit
b885eb2
1 Parent(s): fedd01a

Update pipeline.py

Browse files
Files changed (1) hide show
  1. 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)]]