class_docstr: This class can read Abbyy documents out of a directory
docstr: Constructs an XMLReader class with the :param directory
  
  :param directory: Absolute or relative path of the directory there the abbyy documents are located
code: def __init__(self, imgfiles: [], abbyfiles: [], skip_invalid: bool):
      """
      Constructs an XMLReader class with the :param directory
  
      :param directory: Absolute or relative path of the directory there the abbyy documents are located
      """
      assert len(imgfiles) == len(abbyfiles)
      self.imgfiles = imgfiles
      self.xmlfiles = abbyfiles
      self.skip_invalid = skip_invalid
  
file_path: calamari/calamari_ocr/ocr/dataset/datareader/abbyy/xml/reader.py
imports: import os
  from lxml import etree
  from .data import Book, Page, Block, Format, Line, Par, Rect
  from .exceptions import XMLParseError
  from tqdm import tqdm
  import logging
label_desc: Use image node_id 1 to create a new XMLReader object  with example: obj = XMLReader(imgfiles, abbyfiles, skip_invalid)