class_docstr: A vocabulary that maps tokens to ints (storing a vocabulary).
  
  Attributes:
      _token_count: A collections.Counter object holding the frequencies of tokens
          in the data used to build the Vocabulary.
      _token2id: A collections.defaultdict instance mapping token strings to
          numerical identifiers.
      _id2token: A list of token strings indexed by their numerical identifiers.
class_docstr_tok: ["A","vocabulary","that","maps","tokens","to","ints","(","storing","a","vocabulary",")",".","Attributes",":","_token_count",":","A","collections.Counter","object","holding","the","frequencies","of","tokens","in","the","data","used","to","build","the","Vocabulary",".","_token2id",":","A","collections.defaultdict","instance","mapping","token","strings","to","numerical","identifiers",".","_id2token",":","A","list","of","token","strings","indexed","by","their","numerical","identifiers","."]
docstr: Get the token_id of given token.
  
  Args:
      token (str): token from vocabulary.
  
  Returns:
      int: int id of token.
docstr_tok: ["Get","the","token_id","of","given","token",".","Args",":","token","(","str",")",":","token","from","vocabulary",".","Returns",":","int",":","int","id","of","token","."]
code: def token_to_id(self, token):
      """Get the token_id of given token.
  
      Args:
          token (str): token from vocabulary.
  
      Returns:
          int: int id of token.
      """
      token = self.process_token(token)
      return self._token2id.get(token, len(self._token2id) - 1)
  
imports: from ....imports import *
label_desc: Use image node_id 9 for calling the Vocabulary obj's underlying member method code with example usage: obj.token_to_id(token) and returns: self