code: def __init__(
      self, embeddings_resolver, tag2id={"O": 0}, piece_tag="[X]"
  ):
      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/tensorflow/lib/ner/dataset_encoder.py
imports: import numpy
  import os
  import tensorflow
  import string
  import random
  import math
  import sys
label_desc: Use image node_id 1 to create a new DatasetEncoder object  with example: obj = DatasetEncoder(embeddings_resolver, tag2id, piece_tag)