class_docstr: beam with text, optical and textual score
docstr: merge probabilities of two beams with same text
docstr_tok: ["merge","probabilities","of","two","beams","with","same","text"]
code: def mergeBeam(self, beam):
      "merge probabilities of two beams with same text"
  
      if self.getText() != beam.getText():
          raise Exception("mergeBeam: texts differ")
  
      self.optical.prNonBlank += beam.getPrNonBlank()
      self.optical.prBlank += beam.getPrBlank()
  
imports: from __future__ import division
  from __future__ import print_function
  import copy
label_desc: Use image node_id 2 for calling the Beam obj's underlying member method code with example usage: obj.mergeBeam(beam) without return types