class_docstr: Class for loading a base with text responses (and contexts) and their vector representations.
code: def load(self):
      if self.load_path is not None:
          resp_file = self.load_path / "responses.csv"
          if resp_file.exists():
              with open(resp_file) as f:
                  responses = f.readlines()
                  self.resps = [el.strip("#\n") for el in responses]
          else:
              logger.error(
                  "Please provide responses.csv file to the {} directory".format(
                      self.load_path
                  )
              )
              sys.exit(1)
          resp_vec_file = self.load_path / "resp_vecs.npy"
          if resp_vec_file.exists():
              self.resp_vecs = np.load(resp_vec_file)
          cont_file = self.load_path / "contexts.csv"
          if cont_file.exists():
              with open(cont_file) as f:
                  contexts = f.readlines()
                  self.conts = [el.strip("#\n") for el in contexts]
          else:
              logger.error(
                  "Please add contexts.csv file to the {} directory".format(
                      self.load_path
                  )
              )
              sys.exit(1)
          cont_vec_file = self.load_path / "cont_vecs.npy"
          if cont_vec_file.exists():
              self.cont_vecs = np.load(cont_vec_file)
  
file_path: DeepPavlov/deeppavlov/models/preprocessors/response_base_loader.py
imports: import sys
  from logging import getLogger
  import numpy
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.serializable import Serializable
label_desc: Use image node_id 2 for calling the ResponseBaseLoader obj's underlying member method code with example usage: obj.load() without return types