From 3a9598de4df723ce0857c7c6491d9ef678172f9c Mon Sep 17 00:00:00 2001
From: Vit Novotny <witiko@mail.muni.cz>
Date: Tue, 30 Aug 2022 22:16:39 +0200
Subject: [PATCH] Make `*.ground-truth` files more human-readable

---
 scripts/combine_tesseract_with_pero_ocr_docker.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/combine_tesseract_with_pero_ocr_docker.py b/scripts/combine_tesseract_with_pero_ocr_docker.py
index 2b326eb0..98c0ffae 100644
--- a/scripts/combine_tesseract_with_pero_ocr_docker.py
+++ b/scripts/combine_tesseract_with_pero_ocr_docker.py
@@ -50,11 +50,11 @@ def main() -> None:
         if is_multicolumn(input_tesseract_filename.with_suffix('.hocr')):
             shutil.copy(input_tesseract_filename, output_filename)
             with decision_filename.open('wt') as f:
-                print('hocr', file=f)
+                print('tesseract', file=f)
         else:
             shutil.copy(input_pero_ocr_filename, output_filename)
             with decision_filename.open('wt') as f:
-                print('txt', file=f)
+                print('pero', file=f)
 
 
 if __name__ == '__main__':
-- 
GitLab