class_docstr: Builds and/or loads a dictionary.
  
  The dictionary provides access to the frequency of each token, functions to
  translate sentences from tokens to their vectors (list of ints, each int is the
  index of a token in the dictionary) and back from vectors to tokenized text.
class_docstr_tok: ["Builds","and\/or","loads","a","dictionary",".","The","dictionary","provides","access","to","the","frequency","of","each","token",",","functions","to","translate","sentences","from","tokens","to","their","vectors","(","list","of","ints",",","each","int","is","the","index","of","a","token","in","the","dictionary",")","and","back","from","vectors","to","tokenized","text","."]
docstr: Add additional special tokens to the dictionary.
  
  Should only be called after initialization of the existing dictionary.
code: def add_additional_special_tokens(
      self, additional_special_tokens: List[str]
  ):
      """
      Add additional special tokens to the dictionary.
  
      Should only be called after initialization of the existing dictionary.
      """
      self.additional_special_tokens = additional_special_tokens
  
      for tok in self.additional_special_tokens:
          self.add_token(tok)
  
      for i, tok in enumerate(self.additional_special_tokens):
          self.freq[tok] = 1000000000 + 4 + i
  
      if hasattr(self, "bpe"):
          self.bpe.add_special_tokens(
              self, self.additional_special_tokens
          )
      elif self.tokenizer in ("split", "re", "space"):
          pass
      else:
          raise NotImplementedError(
              f"Special Tokens are not supported with this tokenizer. "
              f"(--dict-tokenizer {self.tokenizer}). File a github issue or "
              f"pull request if you need others extended. "
              f"https://github.com/facebookresearch/ParlAI"
          )
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.core.build_data import modelzoo_path
  from parlai.utils.bpe import bpe_factory, BPEHelper
  from .agents import Agent
  from .build_data import make_dir
  from collections import defaultdict
  import copy
  import numpy
  import os
  import json
  import re
  import parlai.utils.logging
  from parlai.utils.io import PathManager
  from typing import List
  import enum
label_desc: Use image node_id 3 for calling the DictionaryAgent obj's underlying member method code with example usage: obj.add_additional_special_tokens(additional_special_tokens) without return types