code: def format_raw_data(self, tpe, raw_data):
          
          
          if tpe == 'text':
              formatted_raw_data = self.parse_text_to_dict(raw_data)
          elif tpe == 'file':
              formatted_raw_data = self.parse_file_to_dict(raw_data)
          else:
              formatted_raw_data = {'ERROR':'unknown data type', 'data':[raw_data]}
          return formatted_raw_data
docs: uses type to format the raw information to a dictionary
          usable by the mapper