class_docstr: Defines the top-level RAITextInsights API.
  
  Use RAITextInsights to assess text machine learning models in a
  single API.
class_docstr_tok: ["Defines","the","top-level","RAITextInsights","API",".","Use","RAITextInsights","to","assess","text","machine","learning","models","in","a","single","API","."]
docstr: Load the RAITextInsights from the given path.
  
  :param path: The directory path to load the RAITextInsights from.
  :type path: str
  :return: The RAITextInsights object after loading.
  :rtype: RAITextInsights
docstr_tok: ["Load","the","RAITextInsights","from","the","given","path",".",":","param","path",":","The","directory","path","to","load","the","RAITextInsights","from",".",":","type","path",":","str",":","return",":","The","RAITextInsights","object","after","loading",".",":","rtype",":","RAITextInsights"]
code: def load(path):
      """Load the RAITextInsights from the given path.
  
      :param path: The directory path to load the RAITextInsights from.
      :type path: str
      :return: The RAITextInsights object after loading.
      :rtype: RAITextInsights
      """
      # create the RAITextInsights without any properties using the __new__
      # function, similar to pickle
      inst = RAITextInsights.__new__(RAITextInsights)
  
      manager_map = {
          ManagerNames.EXPLAINER: ExplainerManager,
          ManagerNames.ERROR_ANALYSIS: ErrorAnalysisManager,
      }
  
      # load current state
      RAIBaseInsights._load(
          path, inst, manager_map, RAITextInsights._load_metadata
      )
      inst._wrapped_model = wrap_model(
          inst.model, inst.test, inst.task_type
      )
      return inst
  
imports: import json
  import logging
  import pickle
  import warnings
  from enum import Enum
  from pathlib import Path
  from typing import Any, List, Optional, Union
  import numpy
  import pandas
  from ml_wrappers import wrap_model
  from erroranalysis._internal.cohort_filter import FilterDataWithCohortFilters
  from raiutils.data_processing import convert_to_list, serialize_json_safe
  from raiutils.models import SKLearn, is_classifier
  from responsibleai._interfaces import Dataset, RAIInsightsData
  from responsibleai._internal.constants import ManagerNames, Metadata, SerializationAttributes
  from responsibleai.exceptions import UserConfigValidationException
  from responsibleai.feature_metadata import FeatureMetadata
  from responsibleai.rai_insights.rai_base_insights import RAIBaseInsights
  from responsibleai_text.common.constants import ModelTask
  from responsibleai_text.managers.error_analysis_manager import ErrorAnalysisManager
  from responsibleai_text.managers.explainer_manager import ExplainerManager
  from responsibleai_text.utils.feature_extractors import extract_features, get_text_columns
label_desc: Use image node_id 22 for calling the RAITextInsights obj's underlying member method code with example usage: obj.load(path) and returns: inst