class_docstr: Salience map clustering.
class_docstr_tok: ["Salience","map","clustering","."]
code: def __init__(
      self, salience_mappers: dict[str, lit_components.Interpreter]
  ):
      self.salience_mappers = salience_mappers
      self.kmeans = {}
      self.vocab_lookup = {}
      self.vocab = []
  
file_path: lit/lit_nlp/components/salience_clustering.py
imports: from collections.abc import Sequence
  from typing import Optional
  from lit_nlp.api import components
  from lit_nlp.api import dataset
  from lit_nlp.api import model
  from lit_nlp.api import types
  import numpy
  from sklearn import cluster
label_desc: Use image node_id 1 to create a new SalienceClustering object from inherited base classes: lit_components with example: obj = SalienceClustering(salience_mappers)