class_docstr: Computes BLEU Score.
class_docstr_tok: ["Computes","BLEU","Score","."]
code: def extract_output(
      self, accumulator: np.ndarray
  ) -> Dict[metric_types.MetricKey, sacrebleu.metrics.BLEUScore]:
      # TODO(b/299345719): Remove call to protected member
      return {
          self.key: self.bleu_metric._compute_score_from_stats(  # pylint:disable=protected-access
              accumulator.tolist()
          )
      }
  
file_path: model-analysis/tensorflow_model_analysis/metrics/bleu.py
imports: from typing import Dict, Iterable, Optional
  import apache_beam
  import numpy
  import sacrebleu
  from tensorflow_model_analysis.metrics import metric_types
  from tensorflow_model_analysis.metrics import metric_util
  from tensorflow_model_analysis.proto import config_pb2
label_desc: Use image node_id 5 for calling the _BleuCombiner obj's underlying member method code with example usage: obj.extract_output(accumulator) and returns: dict