Commits

Jakub Wilk committed 2796db0

hocr-corpus: remove some no-op code.

  • Participants
  • Parent commits 9d83236

Comments (0)

Files changed (1)

misc/xhocr/hocr-corpus

         max_element = None
         welements = {}
         for element in elements:
-            try:
-                del element.attrib['id'] # merging could cause duplicate identifiers
-            except LookupError:
-                pass
             title_pattern, bbox, wconf = hocr.parse_title(element)
             if title_pattern != base_title_pattern:
                 logger.error("error: unable to merge hOCR because attributes differ")