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 _iob2_to_iob(tags):
      iob_tags = []
  
      for n, tag in enumerate(tags):
          if tag.startswith("B-") and (
              not n or (tags[n - 1][2:] != tag[2:])
          ):
              tag = tag.replace("B-", "I-")
          iob_tags.append(tag)
  
      return iob_tags
  
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 3 for calling the Conll2003DatasetReader obj's underlying member method code with example usage: obj._iob2_to_iob(tags) and returns: iob_tags