class_docstr: Simple vocabulary wrapper, see create_vocab().
  
  Parameters
  ------------
  vocab : dictionary
      A dictionary that maps word to ID.
  unk_id : int
      The ID for 'unknown' word.
class_docstr_tok: ["Simple","vocabulary","wrapper",",","see","create_vocab","(",")",".","Parameters","--","--","--","--","--","--","vocab",":","dictionary","A","dictionary","that","maps","word","to","ID",".","unk_id",":","int","The","ID","for","'unknown","'","word","."]
docstr: Initialize the vocabulary.
docstr_tok: ["Initialize","the","vocabulary","."]
code: def __init__(self, vocab, unk_id):
      """Initialize the vocabulary."""
      self._vocab = vocab
      self._unk_id = unk_id
  
imports: import collections
  import os
  import random
  import re
  import subprocess
  import tempfile
  import warnings
  from collections import Counter
  import numpy
  import six
  import tensorflow
  from six.moves import urllib, xrange
  from tensorflow.python.platform import gfile
  import tensorlayer
  from tensorlayer.lazy_imports import LazyImport
label_desc: Use image node_id 1 to create a new SimpleVocabulary object from inherited base classes: object with example: obj = SimpleVocabulary(vocab, unk_id)