diff --git a/kaldi_data_generator/main.py b/kaldi_data_generator/main.py index 69f1f638f0e8b0d54e8a133beb8439c7af72f9a0..8cedec131e3dfd045cb6edf623780a50aafd5d7f 100644 --- a/kaldi_data_generator/main.py +++ b/kaldi_data_generator/main.py @@ -771,10 +771,10 @@ def main(): logger.info( f"Number of skipped pages: {data_generator.skipped_pages_count}" ) - skipped_ratio = data_generator.skipped_vertical_lines_count / ( - data_generator.skipped_vertical_lines_count - + data_generator.accepted_lines_count - ) * 100 + _skipped_vertical_count = data_generator.skipped_vertical_lines_count + _total_count = _skipped_vertical_count + data_generator.accepted_lines_count + skipped_ratio = _skipped_vertical_count / _total_count * 100 + logger.info( f"Skipped {data_generator.skipped_vertical_lines_count} vertical lines ({round(skipped_ratio, 2)}%)" )