class_docstr: CER and WER
code: def __init__(self, wordChars=r"\w"):
      self.numWords = 0
      self.numChars = 0
  
      self.edWords = 0
      self.edChars = 0
  
      self.pattern = "[" + wordChars + "]+"
  
file_path: calamari/calamari_ocr/thirdparty/ctcwordbeamsearch/Metrics.py
imports: from __future__ import division
  from __future__ import print_function
  import re
  import editdistance
label_desc: Use image node_id 1 to create a new Metrics object  with example: obj = Metrics(wordChars)