docstr: Load the CoNLL-U format data from file or string into lists of dictionaries.
          
docstr_tok: ["Load","the","CoNLL-U","format","data","from","file","or","string","into","lists","of","dictionaries","."]
code: def conll2dict(
      input_file=None,
      input_str=None,
      ignore_gapping=True,
      zip_file=None,
  ):
      """Load the CoNLL-U format data from file or string into lists of dictionaries."""
      assert any([input_file, input_str]) and not all(
          [input_file, input_str]
      ), "either use input file or input string"
      if zip_file:
          assert (
              input_file
          ), "must provide input_file if zip_file is set"
  
      if input_str:
          infile = io.StringIO(input_str)
          doc_conll, doc_comments = CoNLL.load_conll(
              infile, ignore_gapping
          )
      elif zip_file:
          with ZipFile(zip_file) as zin:
              with zin.open(input_file) as fin:
                  doc_conll, doc_comments = CoNLL.load_conll(
                      io.TextIOWrapper(fin, encoding="utf-8"),
                      ignore_gapping,
                  )
      else:
          with open(input_file, encoding="utf-8") as fin:
              doc_conll, doc_comments = CoNLL.load_conll(
                  fin, ignore_gapping
              )
  
      doc_dict, doc_empty = CoNLL.convert_conll(doc_conll)
      return doc_dict, doc_comments, doc_empty
  
file_path: stanza/stanza/utils/conll.py
imports: import os
  import io
  from zipfile import ZipFile
  from stanza.models.common.doc import Document
  from stanza.models.common.doc import ID, TEXT, LEMMA, UPOS, XPOS, FEATS, HEAD, DEPREL, DEPS, MISC, NER, START_CHAR, END_CHAR
  from stanza.models.common.doc import FIELD_TO_IDX, FIELD_NUM
label_desc: Use image node_id 4 for calling the CoNLL obj's underlying member method code with example usage: obj.conll2dict(input_file, input_str, ignore_gapping, zip_file) and returns: doc_dict,  doc_comments,  doc_empty