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