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: Returns the integer id of a word string.
docstr_tok: ["Returns","the","integer","id","of","a","word","string","."]
code: def word_to_id(self, word):
      """Returns the integer id of a word string."""
      if word in self._vocab:
          return self._vocab[word]
      else:
          return self._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 2 for calling the SimpleVocabulary obj's underlying member method code with example usage: obj.word_to_id(word) and returns: self, self