Spaces:
Sleeping
Sleeping
fix mismatch
Browse files
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:
|