class_docstr: Wrapper for Scorer.
  
  :param alpha: Language model weight.
  :type alpha: float
  :param beta: Word insertion bonus.
  :type beta: float
  :scorer_path: Path to load scorer from.
  :alphabet: Alphabet
  :type scorer_path: basestring
code: def __init__(
      self, alpha=None, beta=None, scorer_path=None, alphabet=None
  ):
      super(Scorer, self).__init__()
      # Allow bare initialization
      if alphabet:
          assert alpha is not None, "alpha parameter is required"
          assert beta is not None, "beta parameter is required"
          assert scorer_path, "scorer_path parameter is required"
  
          err = self.init(scorer_path.encode("utf-8"), alphabet)
          if err != 0:
              raise ValueError(
                  "Scorer initialization failed with error code 0x{:X}".format(
                      err
                  )
              )
  
          self.reset_params(alpha, beta)
  
imports: from __future__ import absolute_import, division, print_function
  from .None import swigwrapper
label_desc: Use image node_id 1 to create a new Scorer object from inherited base classes: swigwrapper with example: obj = Scorer(alpha, beta, scorer_path, alphabet)