class_docstr: The dashboard class, wraps the dashboard component.
class_docstr_tok: ["The","dashboard","class",",","wraps","the","dashboard","component","."]
docstr: Initialize the Explanation Dashboard for a single sentence.
docstr_tok: ["Initialize","the","Explanation","Dashboard","for","a","single","sentence","."]
code: def __init__(self, explanation):
      """Initialize the Explanation Dashboard for a single sentence."""
      local_importance_values = list(
          explanation._local_importance_values
      )
      classNames = list(explanation._classes)
      text = list(explanation._features)
      prediction = [
          0 if name == explanation._predicted_label else 1
          for name in classNames
      ]
      # ground_truth = explanation._true_label
      self._widget_instance = ExplanationWidget()
      self._widget_instance.value = {
          "text": text,
          "prediction": prediction,
          "classNames": classNames,
          "localExplanations": local_importance_values,
      }
      display(self._widget_instance)
  
imports: from .ExplanationWidget import ExplanationWidget
  from IPython.display import display
label_desc: Use image node_id 1 to create a new ExplanationDashboard object from inherited base classes: object with example: obj = ExplanationDashboard(explanation)