class_docstr: Base class for all text based default handler.
  Contains various text based utility methods
class_docstr_tok: ["Base","class","for","all","text","based","default","handler",".","Contains","various","text","based","utility","methods"]
docstr: Summarises the attribution across multiple runs
docstr_tok: ["Summarises","the","attribution","across","multiple","runs"]
code: def summarize_attributions(self, attributions):
      """
      Summarises the attribution across multiple runs
      """
      attributions = F.softmax(attributions)
      attributions_sum = attributions.sum(dim=-1)
      logger.info("attributions sum shape %d", attributions_sum.shape)
      attributions = attributions / torch.norm(attributions_sum)
      return attributions
  
imports: import logging
  import os
  import re
  import string
  import unicodedata
  from abc import ABC
  import torch
  import torch.nn.functional
  from captum.attr import LayerIntegratedGradients
  from torchtext.data.utils import get_tokenizer
  from ..utils.util import CLEANUP_REGEX
  from .base_handler import BaseHandler
  from .contractions import CONTRACTION_MAP
label_desc: Use image node_id 11 for calling the TextHandler obj's underlying member method code with example usage: obj.summarize_attributions(attributions) and returns: attributions