akki2825 commited on
Commit
3c4a41b
·
verified ·
1 Parent(s): 5ae646e

fix mismatch

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -7,6 +7,9 @@ def get_mismatched_sentences(reference, hypothesis):
7
  """
8
  Get mismatched sentences between reference and hypothesis.
9
  """
 
 
 
10
  mismatched = []
11
  for ref, hyp in zip(reference, hypothesis):
12
  if ref != hyp:
 
7
  """
8
  Get mismatched sentences between reference and hypothesis.
9
  """
10
+ reference = reference.split()
11
+ hypothesis = hypothesis.split()
12
+
13
  mismatched = []
14
  for ref, hyp in zip(reference, hypothesis):
15
  if ref != hyp: