mirror of
https://github.com/allenai/olmocr.git
synced 2025-11-11 07:58:10 +00:00
Fix
This commit is contained in:
parent
180dde03c5
commit
ffe470bf0e
@ -151,10 +151,10 @@ class TestDataprep(unittest.TestCase):
|
|||||||
|
|
||||||
print(zero_count, full_count)
|
print(zero_count, full_count)
|
||||||
|
|
||||||
self.assertTrue(0.05 <= zero_ratio <= 0.15,
|
self.assertTrue(0.45 <= zero_ratio <= 0.55,
|
||||||
f"Expected zero-length ratio around 0.10, got {zero_ratio:.2f}")
|
f"Expected zero-length ratio around 0.5, got {zero_ratio:.2f}")
|
||||||
self.assertTrue(0.85 <= full_ratio <= 0.95,
|
self.assertTrue(0.45 <= full_ratio <= 0.55,
|
||||||
f"Expected full-length ratio around 0.90, got {full_ratio:.2f}")
|
f"Expected full-length ratio around 0.5, got {full_ratio:.2f}")
|
||||||
|
|
||||||
# Verify total adds up to 100%
|
# Verify total adds up to 100%
|
||||||
self.assertEqual(zero_count + full_count, num_iterations,
|
self.assertEqual(zero_count + full_count, num_iterations,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user