docstr: Encode NER tags with one hot encodings 
docstr_tok: ["Encode","NER","tags","with","one","hot","encodings"]
code: def encode_ner_tag(self, ner_tags: List) -> List:
      """Encode NER tags with one hot encodings"""
      enc_ner_tags = []
      for ner_tag in ner_tags:
          ner_tag_one_hot = [0] * len(self.ner2id)
          ner_tag_one_hot[self.ner2id[ner_tag]] = 1
          enc_ner_tags.append(ner_tag_one_hot)
      return enc_ner_tags
  
file_path: DeepPavlov/deeppavlov/models/preprocessors/re_preprocessor.py
imports: from logging import getLogger
  from pathlib import Path
  from typing import Tuple, List, Union
  import numpy
  from transformers import BertTokenizer
  from deeppavlov.core.commands.utils import expand_path
  from deeppavlov.core.common.file import read_json
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.component import Component
label_desc: Use image node_id 3 for calling the REPreprocessor obj's underlying member method code with example usage: obj.encode_ner_tag(ner_tags) and returns: enc_ner_tags