class_docstr: Class to read training datasets in CoNLL-2003 format
class_docstr_tok: ["Class","to","read","training","datasets","in","CoNLL-2003","format"]
code: def read(
      self,
      data_path: str,
      dataset_name: str = None,
      provide_pos: bool = False,
      provide_chunk: bool = False,
      provide_doc_ids: bool = False,
      iob: bool = False,
      iobes: bool = False,
      docstart_token: str = None,
      *args,
      **kwargs,
  ):
      self.provide_pos = provide_pos
      self.provide_chunk = provide_chunk
      self.provide_doc_ids = provide_doc_ids
      self.iob = iob
      self.iobes = iobes
      self.docstart_token = docstart_token
      self.num_docs = 0
      self.x_is_tuple = self.provide_pos or self.provide_doc_ids
      data_path = Path(data_path)
      files = list(data_path.glob("*.txt"))
      if "train.txt" not in {file_path.name for file_path in files}:
          if dataset_name == "conll2003":
              url = "http://files.deeppavlov.ai/deeppavlov_data/conll2003_v2.tar.gz"
          elif dataset_name == "collection_rus":
              url = "http://files.deeppavlov.ai/deeppavlov_data/collection3_v2.tar.gz"
          elif dataset_name == "ontonotes":
              url = "http://files.deeppavlov.ai/deeppavlov_data/ontonotes_ner.tar.gz"
          elif dataset_name == "vlsp2016":
              url = "http://files.deeppavlov.ai/deeppavlov_data/vlsp2016.tar.gz"
          elif dataset_name == "dailydialog":
              url = "http://files.deeppavlov.ai/deeppavlov_data/dailydialog.tar.gz"
          elif dataset_name == "collection3":
              url = "http://files.deeppavlov.ai/deeppavlov_data/collection3_anh.tar.gz"
          else:
              raise RuntimeError(
                  'train.txt not found in "{}"'.format(data_path)
              )
          data_path.mkdir(exist_ok=True, parents=True)
          download_decompress(url, data_path)
          files = list(data_path.glob("*.txt"))
      dataset = {}
  
      for file_name in files:
          name = file_name.with_suffix("").name
          dataset[name] = self.parse_ner_file(file_name)
      return dataset
  
file_path: DeepPavlov/deeppavlov/dataset_readers/conll2003_reader.py
imports: from logging import getLogger
  from pathlib import Path
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.data.dataset_reader import DatasetReader
  from deeppavlov.core.data.utils import download_decompress
label_desc: Use image node_id 1 for calling the Conll2003DatasetReader obj's underlying member method code with example usage: obj.read(data_path, dataset_name, provide_pos, provide_chunk, provide_doc_ids, iob, iobes, docstart_token) and returns: dataset