docstr: Return number of available entities for particular domain.
docstr_tok: ["Return","number","of","available","entities","for","particular","domain","."]
code: def oneHotVector(self, domain, num):
      """Return number of available entities for particular domain."""
      vector = [0, 0, 0, 0]
      if num == "":
          return vector
      if domain != "train":
          if num == 0:
              vector = [1, 0, 0, 0]
          elif num == 1:
              vector = [0, 1, 0, 0]
          elif num <= 3:
              vector = [0, 0, 1, 0]
          else:
              vector = [0, 0, 0, 1]
      else:
          if num == 0:
              vector = [1, 0, 0, 0]
          elif num <= 5:
              vector = [0, 1, 0, 0]
          elif num <= 10:
              vector = [0, 0, 1, 0]
          else:
              vector = [0, 0, 0, 1]
      return vector
  
file_path: TextBox/textbox/evaluator/utils/multiwoz/db_ops.py
imports: import json, random, sqlite3
  from .ontology import all_domains, db_domains
label_desc: Use image node_id 2 for calling the MultiWozDB obj's underlying member method code with example usage: obj.oneHotVector(domain, num) and returns: vector, vector