akki2825 commited on
Commit
5ae646e
·
verified ·
1 Parent(s): 0c9415b

fix mismatched

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