class_docstr: A `SaliencyInterpreter` interprets an AllenNLP Predictor's outputs by assigning a saliency
  score to each input token.
class_docstr_tok: ["A","`","SaliencyInterpreter","`","interprets","an","AllenNLP","Predictor","'s","outputs","by","assigning","a","saliency","score","to","each","input","token","."]
code: def __init__(self, predictor: Predictor) -> None:
      self.predictor = predictor
  
file_path: allennlp/allennlp/interpret/saliency_interpreters/saliency_interpreter.py
imports: from typing import List
  import numpy
  import torch
  from allennlp.common import Registrable
  from allennlp.common.util import JsonDict
  from allennlp.nn import util
  from allennlp.predictors import Predictor
label_desc: Use image node_id 1 to create a new SaliencyInterpreter object from inherited base classes: Registrable with example: obj = SaliencyInterpreter(predictor)