code: def construct(self):
      l = sorted(
          self._freq_dict.keys(), key=lambda x: -self._freq_dict[x]
      )
      if len(l) + len(self._idx2word) < self.vocab_size:
          logging.warning(
              "actual label set smaller than that configured: {}/{}".format(
                  len(l) + len(self._idx2word), self.vocab_size
              )
          )
      for word in ontology.all_domains + ["general"]:
          word = "[" + word + "]"
          self._add_to_vocab(word)
      for word in ontology.all_acts:
          word = "[" + word + "]"
          self._add_to_vocab(word)
      for word in ontology.all_slots:
          self._add_to_vocab(word)
      for word in l:
          if word.startswith("[value_") and word.endswith("]"):
              self._add_to_vocab(word)
      for word in l:
          self._add_to_vocab(word)
      self.vocab_size_oov = len(self._idx2word)
  
imports: import logging
  import json
  import numpy
  from collections import OrderedDict
  from .None import ontology
label_desc: Use image node_id 6 for calling the Vocab obj's underlying member method code with example usage: obj.construct() without return types