class_docstr: Encoder based on a user-supplied vocabulary (file or list).
docstr: Initialize tokens from a list of tokens.
  
  It is ok if reserved tokens appear in the vocab list. They will be
  removed. The set of tokens in vocab_list should be unique.
  
  Args:
  vocab_list: A list of tokens.
code: def _init_vocab_from_list(self, vocab_list):
      """Initialize tokens from a list of tokens.
  
      It is ok if reserved tokens appear in the vocab list. They will be
      removed. The set of tokens in vocab_list should be unique.
  
      Args:
      vocab_list: A list of tokens.
      """
  
      def token_gen():
          for token in vocab_list:
              if token not in RESERVED_TOKENS:
                  yield token
  
      self._init_vocab(token_gen())
  
imports: import re
  import six
label_desc: Use image node_id 9 for calling the TokenTextEncoder obj's underlying member method code with example usage: obj._init_vocab_from_list(vocab_list) without return types