class_docstr: OneCommon teacher that loads the data from https://github.com/Alab-NII/Reference-
  Resolution.
class_docstr_tok: ["OneCommon","teacher","that","loads","the","data","from","https",":","\/\/github.com\/Alab-NII\/Reference-","Resolution","."]
code: def _setup_data(self, data_path):
      print("loading: " + data_path)
      with PathManager.open(data_path) as data_file:
          raw_data = data_file.readlines()
  
      self.episodes = []
      for data in raw_data:
          words = data.strip().split()
          context = list(map(float, get_tag(words, INPUT_TAG)))
          dialogue, spans = self._split_dialogue(
              get_tag(words, DIALOGUE_TAG)
          )
          referents = self._split_referents(
              get_tag(words, REFERENTS_TAG), spans
          )
          output = int(get_tag(words, OUTPUT_TAG)[0])
          self.episodes.append(
              {
                  "context": context,
                  "dialogue": dialogue,
                  "referents": referents,
                  "output": output,
              }
          )
  
file_path: ParlAI/parlai/tasks/onecommon/agents.py
imports: from parlai.core.teachers import FixedDialogTeacher
  from parlai.utils.io import PathManager
  from .build import build
  import os
label_desc: Use image node_id 8 for calling the OneCommonTeacher obj's underlying member method code with example usage: obj._setup_data(data_path) without return types