code: def __init__(self, params, codec):
      super().__init__(params, codec)
      word_chars = set(codec.charset).difference(
          set(params.non_word_chars)
      )
      word_chars = [c for c in word_chars if len(c) > 0]
      self.language_model = LanguageModel(
          " ".join(params.dictionary),
          "".join(codec.charset),
          "".join(word_chars),
      )
  
imports: from .ctc_decoder import CTCDecoder
  import numpy
  from calamari_ocr.thirdparty.ctcwordbeamsearch.WordBeamSearch import wordBeamSearch, LanguageModel
label_desc: Use image node_id 1 to create a new WordBeamSearchCTCDecoder object from inherited base classes: CTCDecoder with example: obj = WordBeamSearchCTCDecoder(params, codec)