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","."]
docstr: This function finds saliency values for each input token.
  
  # Parameters
  
  inputs : `JsonDict`
      The input you want to interpret (the same as the argument to a Predictor, e.g., predict_json()).
  
  # Returns
  
  interpretation : `JsonDict`
      Contains the normalized saliency values for each input token. The dict has entries for
      each instance in the inputs JsonDict, e.g., `{instance_1: ..., instance_2:, ... }`.
      Each one of those entries has entries for the saliency of the inputs, e.g.,
      `{grad_input_1: ..., grad_input_2: ... }`.
docstr_tok: ["This","function","finds","saliency","values","for","each","input","token",".","#","Parameters","inputs",":","`","JsonDict","`","The","input","you","want","to","interpret","(","the","same","as","the","argument","to","a","Predictor",",","e.g.",",","predict_json","(",")",")",".","#","Returns","interpretation",":","`","JsonDict","`","Contains","the","normalized","saliency","values","for","each","input","token",".","The","dict","has","entries","for","each","instance","in","the","inputs","JsonDict",",","e.g.",",","`","{","instance_1",":","...",",","instance_2",":",",","...","}","`",".","Each","one","of","those","entries","has","entries","for","the","saliency","of","the","inputs",",","e.g.",",","`","{","grad_input_1",":","...",",","grad_input_2",":","...","}","`","."]
code: def saliency_interpret_from_json(self, inputs: JsonDict) -> JsonDict:
      """
      This function finds saliency values for each input token.
  
      # Parameters
  
      inputs : `JsonDict`
          The input you want to interpret (the same as the argument to a Predictor, e.g., predict_json()).
  
      # Returns
  
      interpretation : `JsonDict`
          Contains the normalized saliency values for each input token. The dict has entries for
          each instance in the inputs JsonDict, e.g., `{instance_1: ..., instance_2:, ... }`.
          Each one of those entries has entries for the saliency of the inputs, e.g.,
          `{grad_input_1: ..., grad_input_2: ... }`.
      """
      raise NotImplementedError(
          "Implement this for saliency interpretations"
      )
  
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 2 for calling the SaliencyInterpreter obj's underlying member method code with example usage: obj.saliency_interpret_from_json(inputs) without return types