class_docstr: Defines the ExplainerManager for explaining a text-based model.
class_docstr_tok: ["Defines","the","ExplainerManager","for","explaining","a","text-based","model","."]
docstr: Load the ExplainerManager from the given path.
  
  :param path: The directory path to load the ExplainerManager from.
  :type path: str
  :param rai_insights: The loaded parent RAIInsights.
  :type rai_insights: RAIInsights
  :return: The ExplainerManager manager after loading.
  :rtype: ExplainerManager
docstr_tok: ["Load","the","ExplainerManager","from","the","given","path",".",":","param","path",":","The","directory","path","to","load","the","ExplainerManager","from",".",":","type","path",":","str",":","param","rai_insights",":","The","loaded","parent","RAIInsights",".",":","type","rai_insights",":","RAIInsights",":","return",":","The","ExplainerManager","manager","after","loading",".",":","rtype",":","ExplainerManager"]
code: def _load(path, rai_insights):
      """Load the ExplainerManager from the given path.
  
      :param path: The directory path to load the ExplainerManager from.
      :type path: str
      :param rai_insights: The loaded parent RAIInsights.
      :type rai_insights: RAIInsights
      :return: The ExplainerManager manager after loading.
      :rtype: ExplainerManager
      """
      # create the ExplainerManager without any properties using the __new__
      # function, similar to pickle
      inst = ExplainerManager.__new__(ExplainerManager)
  
      all_cf_dirs = DirectoryManager.list_sub_directories(path)
      if len(all_cf_dirs) != 0:
          directory_manager = DirectoryManager(
              parent_directory_path=path,
              sub_directory_name=all_cf_dirs[0],
          )
          data_directory = directory_manager.get_data_directory()
  
          with open(data_directory / META_JSON, "r") as meta_file:
              meta = meta_file.read()
          meta = json.loads(meta)
          inst.__dict__["_" + IS_RUN] = meta[IS_RUN]
          inst.__dict__["_" + IS_ADDED] = meta[IS_ADDED]
  
          inst.__dict__[EXPLANATION] = None
          explanation_path = data_directory / ManagerNames.EXPLAINER
          if explanation_path.exists():
              with open(explanation_path, "rb") as f:
                  explanation = pickle.load(f)
              inst.__dict__[EXPLANATION] = explanation
      else:
          inst.__dict__["_" + IS_RUN] = False
          inst.__dict__["_" + IS_ADDED] = False
          inst.__dict__[EXPLANATION] = None
  
      inst.__dict__["_" + MODEL] = rai_insights.model
      inst.__dict__["_" + CLASSES] = rai_insights._classes
      target_column = rai_insights.target_column
      if not isinstance(target_column, list):
          target_column = [target_column]
      test = rai_insights.test.drop(columns=target_column)
      inst.__dict__[U_EVALUATION_EXAMPLES] = test
      inst.__dict__["_" + FEATURES] = list(test.columns)
      inst.__dict__[TASK_TYPE] = rai_insights.task_type
  
      return inst
  
imports: import json
  import pickle
  import warnings
  from pathlib import Path
  from typing import Any, List, Optional
  import numpy
  import pandas
  import shap
  from raiutils.data_processing import convert_to_list
  from responsibleai._interfaces import FeatureImportance, ModelExplanationData, PrecomputedExplanations, TextFeatureImportance
  from responsibleai._internal.constants import ExplainerManagerKeys
  from responsibleai._internal.constants import ListProperties, ManagerNames, Metadata
  from responsibleai._tools.shared.state_directory_management import DirectoryManager
  from responsibleai.exceptions import UserConfigValidationException
  from responsibleai.managers.base_manager import BaseManager
  from responsibleai_text.common.constants import ModelTask, QuestionAnsweringFields, Tokens
  from responsibleai_text.utils.question_answering import QAPredictor
label_desc: Use image node_id 14 for calling the ExplainerManager obj's underlying member method code with example usage: obj._load(path, rai_insights) and returns: inst