code: def __init__(self, embeddings_resolver, tag2id=None, piece_tag="[X]"):
      if tag2id is None:
          tag2id = {"O": 0}
      self.char2id = {c: i + 1 for i, c in enumerate(string.printable)}
      self.tag2id = tag2id
      self.embeddings_resolver = embeddings_resolver
      self.piece_tag = piece_tag
  
file_path: spark-nlp/python/sparknlp/training/_tf_graph_builders_1x/ner_dl/dataset_encoder.py
imports: import random
  import string
  import numpy
label_desc: Use image node_id 1 to create a new DatasetEncoder object  with example: obj = DatasetEncoder(embeddings_resolver, tag2id, piece_tag)