class_docstr: Confidence Mixin class.
  
  It is responsible for confidence estimation method initialization and high-level confidence score calculation.
class_docstr_tok: ["Confidence","Mixin","class",".","It","is","responsible","for","confidence","estimation","method","initialization","and","high-level","confidence","score","calculation","."]
docstr: Implemented by subclass in order to aggregate token confidence to a word-level confidence.
  
  Args:
      hypothesis: Hypothesis
  
  Returns:
      A list of word-level confidence scores.
docstr_tok: ["Implemented","by","subclass","in","order","to","aggregate","token","confidence","to","a","word-level","confidence",".","Args",":","hypothesis",":","Hypothesis","Returns",":","A","list","of","word-level","confidence","scores","."]
code: def _aggregate_token_confidence(
      self, hypothesis: Hypothesis
  ) -> List[float]:
      """Implemented by subclass in order to aggregate token confidence to a word-level confidence.
  
      Args:
          hypothesis: Hypothesis
  
      Returns:
          A list of word-level confidence scores.
      """
      raise NotImplementedError()
  
imports: import math
  from abc import ABC, abstractmethod
  from dataclasses import dataclass, field
  from functools import partial
  from typing import List, Optional
  import torch
  from omegaconf import DictConfig, OmegaConf
  from nemo.collections.asr.parts.utils.rnnt_utils import Hypothesis
  from nemo.utils import logging
label_desc: Use image node_id 3 for calling the ConfidenceMixin obj's underlying member method code with example usage: obj._aggregate_token_confidence(hypothesis) without return types