code: def __init__(
      self,
      doc_weighted_spans,  # type: DocWeightedSpans
      char_weights,  # type: np.ndarray
      weight_range,  # type: float
  ):
      # type: (...) -> None
      self.doc_weighted_spans = doc_weighted_spans
      self.char_weights = char_weights
      self.weight_range = weight_range
  
file_path: eli5/eli5/formatters/text_helpers.py
imports: from collections import Counter
  from typing import List, Optional
  import numpy
  from eli5.base import TargetExplanation, WeightedSpans, DocWeightedSpans
  from eli5.base_utils import attrs
  from eli5.utils import max_or_0
label_desc: Use image node_id 1 to create a new PreparedWeightedSpans object from inherited base classes: object with example: obj = PreparedWeightedSpans(doc_weighted_spans, char_weights, weight_range)