code: def read_data(
      source_path,
      word_vocab,
      char_vocab,
      ner_vocab,
      normalize_digits=True,
  ):
      data = []
      print("Reading data from %s" % source_path)
      counter = 0
      reader = CoNLLReader(
          source_path, word_vocab, char_vocab, ner_vocab
      )
      inst = reader.getNext(normalize_digits)
      while inst is not None:
          counter += 1
          sent = inst.sentence
          data.append([sent.word_ids, sent.char_id_seqs, inst.ner_ids])
          inst = reader.getNext(normalize_digits)
  
      reader.close()
      print("Total number of data: %d" % counter)
      return data
  
imports: import re
  from collections import defaultdict
  import numpy
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: read_data(source_path, word_vocab, char_vocab, ner_vocab, normalize_digits) and returns: data