Spaces:
Running
Running
Minor
Browse files
tests.py
CHANGED
@@ -411,8 +411,8 @@ class TestSemF1(unittest.TestCase):
|
|
411 |
print(f"Case IV\n{_call_metric(predictions, references, tokenize_sentences, multi_references)}\n")
|
412 |
|
413 |
def test_empty_input(self):
|
414 |
-
predictions = [""]
|
415 |
-
references = ["I go to School. You are stupid."]
|
416 |
scores = self.semf1_metric.compute(
|
417 |
predictions=predictions,
|
418 |
references=references,
|
|
|
411 |
print(f"Case IV\n{_call_metric(predictions, references, tokenize_sentences, multi_references)}\n")
|
412 |
|
413 |
def test_empty_input(self):
|
414 |
+
predictions = ["", ""]
|
415 |
+
references = ["I go to School. You are stupid.", "I am"]
|
416 |
scores = self.semf1_metric.compute(
|
417 |
predictions=predictions,
|
418 |
references=references,
|